Changeset 14830


Ignore:
Timestamp:
05/01/13 10:08:42 (12 years ago)
Author:
cnpetrie
Message:

updated setAlpha in ISSM.java, uses float for SDK 11+, uses int for sdk 10-

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/src/mobile/android/ISSM_APP/src/gov/nasa/jpl/issm/ISSM.java

    r14823 r14830  
    241241                        {
    242242                                mapName= "greenland";
    243                                 colorBar.setVisibility(View.INVISIBLE);
     243
    244244                                defaultMap.setImageResource(R.drawable.greenland_button);
    245245                                if(Build.VERSION.SDK_INT >= Build.VERSION_CODES.ICE_CREAM_SANDWICH)
     
    247247                                        defaultMap.setScaleX(1.12f);
    248248                                        defaultMap.setScaleY(0.92f);
    249                                 }
     249                                        defaultMap.setAlpha(1.0f);
     250                                }
     251                                else
     252                                {
     253                                        defaultMap.setAlpha(1);
     254                                }
     255                                colorBar.setVisibility(View.INVISIBLE);
    250256                                viewflipper.setInAnimation(inFromRightAnimation());
    251257                        viewflipper.setOutAnimation(outToLeftAnimation());
    252258                        viewflipper.showNext();
    253                         defaultMap.setVisibility(View.VISIBLE);
    254                         defaultMap.setAlpha(1.0f);
    255                         onSimulationScreen = true;
    256                         //create FemModel in native code and return the size of the model
    257                         this.createModel();
    258                         break;
    259                         }
    260                 case R.id.antarctica:
    261                         {
    262                                 mapName= "antarctica";
    263                                 colorBar.setVisibility(View.INVISIBLE);
    264                                 defaultMap.setImageResource(R.drawable.antarctica_button);
    265                                 viewflipper.setInAnimation(inFromRightAnimation());
    266                         viewflipper.setOutAnimation(outToLeftAnimation());
    267                         viewflipper.showNext();
    268                         defaultMap.setAlpha(1.0f);
    269259                        defaultMap.setVisibility(View.VISIBLE);
    270260                        onSimulationScreen = true;
     
    273263                        break;
    274264                        }
     265                case R.id.antarctica:
     266                        {
     267                                mapName= "antarctica";
     268                                defaultMap.setImageResource(R.drawable.antarctica_button);
     269                                if(Build.VERSION.SDK_INT >= Build.VERSION_CODES.ICE_CREAM_SANDWICH)
     270                                {
     271                                defaultMap.setAlpha(1.0f);
     272                                }
     273                                else
     274                                {
     275                                        defaultMap.setAlpha(1);
     276                                }
     277                                colorBar.setVisibility(View.INVISIBLE);
     278                                viewflipper.setInAnimation(inFromRightAnimation());
     279                        viewflipper.setOutAnimation(outToLeftAnimation());
     280                        viewflipper.showNext();
     281                        defaultMap.setVisibility(View.VISIBLE);
     282                        onSimulationScreen = true;
     283                        //create FemModel in native code and return the size of the model
     284                        this.createModel();
     285                        break;
     286                        }
     287                       
    275288                /*case R.id.back:
    276289                {
Note: See TracChangeset for help on using the changeset viewer.