Changeset 14521
- Timestamp:
- 04/08/13 23:03:53 (12 years ago)
- Location:
- issm/trunk-jpl/src/mobile/android/ISSM_APP
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/mobile/android/ISSM_APP/AndroidManifest.xml
r14516 r14521 14 14 <activity android:name="gov.nasa.jpl.issm.ISSMAPP" 15 15 android:screenOrientation="portrait" 16 android:label="@string/title_activity_issm" > 16 android:label="@string/title_activity_issm" 17 android:noHistory="true" > 17 18 <intent-filter> 18 19 <action android:name="android.intent.action.MAIN" /> -
issm/trunk-jpl/src/mobile/android/ISSM_APP/bin/AndroidManifest.xml
r14516 r14521 14 14 <activity android:name="gov.nasa.jpl.issm.ISSMAPP" 15 15 android:screenOrientation="portrait" 16 android:label="@string/title_activity_issm" > 16 android:label="@string/title_activity_issm" 17 android:noHistory="true" > 17 18 <intent-filter> 18 19 <action android:name="android.intent.action.MAIN" /> -
issm/trunk-jpl/src/mobile/android/ISSM_APP/res/layout/issmcore.xml
r14504 r14521 20 20 android:layout_height="wrap_content" 21 21 android:layout_above="@+id/play" 22 android:layout_below="@+id/ back"22 android:layout_below="@+id/spinner" 23 23 android:layout_marginBottom="12dp" > 24 24 </FrameLayout> … … 33 33 android:layout_marginBottom="18dp" 34 34 android:background="@drawable/custom_button" 35 android:text="Solve" /> -->35 android:text="Solve" /> 36 36 37 37 <Button … … 41 41 android:layout_alignParentLeft="true" 42 42 android:layout_alignParentTop="true" 43 android:background="@drawable/back_button"/> 43 android:background="@drawable/back_button"/> --> 44 44 45 45 <Spinner -
issm/trunk-jpl/src/mobile/android/ISSM_APP/src/gov/nasa/jpl/issm/ISSM.java
r14516 r14521 11 11 import android.util.DisplayMetrics; 12 12 import android.view.Gravity; 13 import android.view.KeyEvent; 13 14 import android.view.Menu; 14 15 import android.view.MenuInflater; … … 52 53 private ImageView defaultMap; 53 54 private Spinner spinner; 55 private boolean onSimulationScreen = false; 54 56 //------------------------------------------------------------------------------------------------ 55 57 @Override … … 77 79 //Button solve = (Button) super.findViewById(R.id.solve); 78 80 //solve.setOnClickListener(this); 79 Button back = (Button) super.findViewById(R.id.back);80 back.setOnClickListener(this);81 //Button back = (Button) super.findViewById(R.id.back); 82 //back.setOnClickListener(this); 81 83 Button play = (Button) super.findViewById(R.id.play); 82 84 play.setOnClickListener(this); … … 145 147 return true; 146 148 } 149 //--------------------------------------------------------------------------------- 150 @Override 151 public boolean onKeyDown(int keyCode, KeyEvent event) { 152 if (keyCode == KeyEvent.KEYCODE_BACK && event.getRepeatCount() == 0 && onSimulationScreen) { 153 frame.removeView(mGLView); 154 viewflipper.setInAnimation(inFromLeftAnimation()); 155 viewflipper.setOutAnimation(outToRightAnimation()); 156 viewflipper.showPrevious(); 157 onSimulationScreen = false; 158 return true; 159 } 160 // return to menu screen 161 finish(); 162 return super.onKeyDown(keyCode, event); 163 } 147 164 //--------------------------------------------------------------------------------- 148 165 public void onClick(View view) … … 157 174 viewflipper.showNext(); 158 175 defaultMap.setVisibility(View.VISIBLE); 176 onSimulationScreen = true; 159 177 //create FemModel in native code and return the size of the model 160 178 this.createModel(); … … 168 186 viewflipper.showNext(); 169 187 defaultMap.setVisibility(View.VISIBLE); 188 onSimulationScreen = true; 170 189 //create FemModel in native code and return the size of the model 171 190 this.createModel(); 172 191 break; 173 192 } 174 case R.id.back:193 /*case R.id.back: 175 194 { 176 195 frame.removeView(mGLView); … … 179 198 viewflipper.showPrevious(); 180 199 break; 181 } 200 }*/ 182 201 /*case R.id.solve: 183 202 {
Note:
See TracChangeset
for help on using the changeset viewer.