Changeset 14489
- Timestamp:
- 03/29/13 21:19:25 (12 years ago)
- Location:
- issm/trunk-jpl/src/mobile/android/ISSM_APP
- Files:
-
- 6 added
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified issm/trunk-jpl/src/mobile/android/ISSM_APP/res/layout/issmcore.xml ¶
r14472 r14489 19 19 android:layout_width="wrap_content" 20 20 android:layout_height="wrap_content" 21 android:layout_above="@+id/ solve"21 android:layout_above="@+id/play" 22 22 android:layout_below="@+id/back" 23 23 android:layout_marginBottom="12dp" > 24 24 </FrameLayout> 25 25 26 < Button26 <!-- <Button 27 27 android:id="@+id/solve" 28 28 android:layout_width="wrap_content" … … 33 33 android:layout_marginBottom="18dp" 34 34 android:background="@drawable/custom_button" 35 android:text="Solve" /> 36 37 <Button 38 android:id="@+id/setting" 39 android:layout_width="wrap_content" 40 android:layout_height="wrap_content" 41 android:layout_alignParentRight="true" 42 android:layout_below="@+id/frame" 43 android:layout_marginRight="20dp" 44 android:background="@drawable/custom_button" 45 android:text="Settings" /> 35 android:text="Solve" /> --> 46 36 47 37 <Button … … 58 48 android:layout_height="wrap_content" 59 49 android:layout_alignBottom="@+id/back" 60 android:layout_alignLeft="@+id/setting" 50 android:layout_marginBottom="5dp" 51 android:layout_toRightOf="@+id/play" 61 52 android:background="@drawable/dropdown" 62 android:layout_marginBottom="5dp"63 53 android:entries="@array/colormap_array" 64 54 android:prompt="@string/color_prompt" /> 65 55 56 <Button 57 android:id="@+id/play" 58 android:layout_width="wrap_content" 59 android:layout_height="wrap_content" 60 android:layout_alignParentBottom="true" 61 android:layout_centerHorizontal="true" 62 android:layout_marginBottom="30dp" 63 android:background="@drawable/custom_button" 64 android:text="Play" /> 65 66 66 </RelativeLayout> -
TabularUnified issm/trunk-jpl/src/mobile/android/ISSM_APP/res/layout/issmmapselection.xml ¶
r14472 r14489 3 3 android:layout_width="fill_parent" 4 4 android:layout_height="fill_parent" 5 android:background="@drawable/b ackground" >5 android:background="@drawable/blank_background" > 6 6 7 7 <ImageButton … … 12 12 android:layout_centerHorizontal="true" 13 13 android:layout_marginTop="42dp" 14 android:background="@drawable/greenland " />14 android:background="@drawable/greenland_1" /> 15 15 16 16 <View … … 28 28 android:layout_alignParentBottom="true" 29 29 android:layout_marginBottom="42dp" 30 android:background="@drawable/antarctica " />30 android:background="@drawable/antarctica_1" /> 31 31 32 32 </RelativeLayout> -
TabularUnified issm/trunk-jpl/src/mobile/android/ISSM_APP/res/layout/menupage.xml ¶
r14472 r14489 4 4 android:background="@drawable/mainbackground" > 5 5 6 < ImageButton6 <Button 7 7 android:id="@+id/intro" 8 8 android:layout_width="wrap_content" 9 9 android:layout_height="wrap_content" 10 10 android:layout_marginTop="60dp" 11 android:layout_marginLeft="1 9dp"12 android:background="@ null"13 android: src="@drawable/about_button" />11 android:layout_marginLeft="15dp" 12 android:background="@drawable/snow_button" 13 android:text="About" /> 14 14 15 < ImageButton15 <Button 16 16 android:id="@+id/video" 17 17 android:layout_width="wrap_content" … … 20 20 android:layout_alignParentRight="true" 21 21 android:layout_marginRight="19dp" 22 android:background="@ null"23 android: src="@drawable/video_button" />22 android:background="@drawable/snow_button" 23 android:text="Video" /> 24 24 25 < ImageButton25 <Button 26 26 android:id="@+id/start" 27 27 android:layout_width="wrap_content" … … 30 30 android:layout_alignRight="@+id/intro" 31 31 android:layout_marginBottom="73dp" 32 android:background="@null"33 android: src="@drawable/play_button" />32 android:background="@drawable/snow_button" 33 android:text="Play" /> 34 34 35 < ImageButton35 <Button 36 36 android:id="@+id/visitus" 37 37 android:layout_width="wrap_content" … … 40 40 android:layout_centerHorizontal="true" 41 41 android:layout_marginTop="15dp" 42 android:background="@ null"43 android: src="@drawable/team_button" />42 android:background="@drawable/snow_button" 43 android:text="Team" /> 44 44 45 45 </RelativeLayout> -
TabularUnified issm/trunk-jpl/src/mobile/android/ISSM_APP/res/layout/settingsmenu.xml ¶
r14472 r14489 67 67 android:layout_height="wrap_content" 68 68 android:layout_below="@+id/sealvlBar" 69 android:text=" Set" />69 android:text="Done" /> 70 70 </RelativeLayout> -
TabularUnified issm/trunk-jpl/src/mobile/android/ISSM_APP/src/gov/nasa/jpl/issm/ISSM.java ¶
r14472 r14489 77 77 frame = (FrameLayout)findViewById(R.id.frame); 78 78 viewflipper = (ViewFlipper) findViewById(R.id.flipper); 79 Button solve = (Button) super.findViewById(R.id.solve);80 solve.setOnClickListener(this);79 //Button solve = (Button) super.findViewById(R.id.solve); 80 //solve.setOnClickListener(this); 81 81 Button back = (Button) super.findViewById(R.id.back); 82 82 back.setOnClickListener(this); 83 Button setting = (Button) super.findViewById(R.id.setting);84 setting.setOnClickListener(this);83 Button play = (Button) super.findViewById(R.id.play); 84 play.setOnClickListener(this); 85 85 ImageButton gl = (ImageButton) findViewById(R.id.greenland); 86 86 gl.setOnClickListener(this); … … 103 103 spinner.setOnItemSelectedListener(new OnItemSelectedListener() 104 104 { 105 106 105 @Override 107 106 public void onItemSelected(AdapterView<?> arg0, View arg1, … … 159 158 viewflipper.setOutAnimation(outToLeftAnimation()); 160 159 viewflipper.showNext(); 160 defaultMap.setVisibility(View.VISIBLE); 161 161 //create FemModel in native code and return the size of the model 162 162 this.createModel(); … … 169 169 viewflipper.setOutAnimation(outToLeftAnimation()); 170 170 viewflipper.showNext(); 171 defaultMap.setVisibility(View.VISIBLE); 171 172 //create FemModel in native code and return the size of the model 172 173 this.createModel(); … … 181 182 break; 182 183 } 183 case R.id.solve:184 /*case R.id.solve: 184 185 { 185 186 friction = sliders.getFric(); … … 187 188 new CalculationTask().execute(friction); 188 189 break; 189 } 190 case R.id. setting:190 }*/ 191 case R.id.play: 191 192 { 192 193 final PopupWindow popupWindow = new PopupWindow( sliders, screenWidth*4/5,screenHeight*2/5, true); -
TabularUnified issm/trunk-jpl/src/mobile/android/ISSM_APP/src/gov/nasa/jpl/issm/MenuPage.java ¶
r14472 r14489 8 8 import android.view.View; 9 9 import android.widget.Button; 10 import android.widget.ImageButton;11 10 import android.widget.PopupWindow; 12 11 import android.content.Intent; … … 29 28 } 30 29 //start the core implementation of ISSM 31 ImageButton start = (ImageButton) findViewById(R.id.start);30 Button start = (Button) findViewById(R.id.start); 32 31 start.setOnClickListener(new View.OnClickListener() 33 32 { … … 40 39 }); 41 40 // navigate to youtube video 42 ImageButton video = (ImageButton) findViewById(R.id.video);41 Button video = (Button) findViewById(R.id.video); 43 42 video.setOnClickListener(new View.OnClickListener() 44 43 { … … 52 51 }); 53 52 // pop up a text box that contains information about ISSM 54 final ImageButton intro = (ImageButton) findViewById(R.id.intro);53 final Button intro = (Button) findViewById(R.id.intro); 55 54 intro.setOnClickListener(new View.OnClickListener() 56 55 { … … 72 71 }); 73 72 //navigate to website 74 ImageButton visitus = (ImageButton) findViewById(R.id.visitus);73 Button visitus = (Button) findViewById(R.id.visitus); 75 74 visitus.setOnClickListener(new View.OnClickListener() 76 75 {
Note:
See TracChangeset
for help on using the changeset viewer.