Changeset 14489


Ignore:
Timestamp:
03/29/13 21:19:25 (12 years ago)
Author:
ltnguyen
Message:

New Layout for button, greenland and Antarctica map

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  
    1919        android:layout_width="wrap_content"
    2020        android:layout_height="wrap_content"
    21         android:layout_above="@+id/solve"
     21        android:layout_above="@+id/play"
    2222        android:layout_below="@+id/back"
    2323        android:layout_marginBottom="12dp" >
    2424    </FrameLayout>
    2525
    26     <Button
     26    <!-- <Button
    2727        android:id="@+id/solve"
    2828        android:layout_width="wrap_content"
     
    3333        android:layout_marginBottom="18dp"
    3434        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" /> -->
    4636
    4737    <Button
     
    5848        android:layout_height="wrap_content"
    5949        android:layout_alignBottom="@+id/back"
    60         android:layout_alignLeft="@+id/setting"
     50        android:layout_marginBottom="5dp"
     51        android:layout_toRightOf="@+id/play"
    6152        android:background="@drawable/dropdown"
    62         android:layout_marginBottom="5dp"
    6353        android:entries="@array/colormap_array"
    6454        android:prompt="@string/color_prompt" />
    6555
     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
    6666</RelativeLayout>
  • TabularUnified issm/trunk-jpl/src/mobile/android/ISSM_APP/res/layout/issmmapselection.xml

    r14472 r14489  
    33        android:layout_width="fill_parent"
    44        android:layout_height="fill_parent"
    5         android:background="@drawable/background" >
     5        android:background="@drawable/blank_background" >
    66
    77        <ImageButton
     
    1212            android:layout_centerHorizontal="true"
    1313            android:layout_marginTop="42dp"
    14             android:background="@drawable/greenland" />
     14            android:background="@drawable/greenland_1" />
    1515
    1616                <View
     
    2828            android:layout_alignParentBottom="true"
    2929            android:layout_marginBottom="42dp"
    30             android:background="@drawable/antarctica" />
     30            android:background="@drawable/antarctica_1" />
    3131
    3232           </RelativeLayout>
  • TabularUnified issm/trunk-jpl/src/mobile/android/ISSM_APP/res/layout/menupage.xml

    r14472 r14489  
    44        android:background="@drawable/mainbackground" >
    55       
    6          <ImageButton
     6         <Button
    77            android:id="@+id/intro"
    88            android:layout_width="wrap_content"
    99            android:layout_height="wrap_content"
    1010            android:layout_marginTop="60dp"
    11             android:layout_marginLeft="19dp"
    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" />
    1414
    15         <ImageButton
     15        <Button
    1616            android:id="@+id/video"
    1717            android:layout_width="wrap_content"
     
    2020            android:layout_alignParentRight="true"
    2121            android:layout_marginRight="19dp"
    22             android:background="@null"
    23             android:src="@drawable/video_button" />
     22            android:background="@drawable/snow_button"
     23            android:text="Video" />
    2424
    25         <ImageButton
     25        <Button
    2626            android:id="@+id/start"
    2727            android:layout_width="wrap_content"
     
    3030            android:layout_alignRight="@+id/intro"
    3131            android:layout_marginBottom="73dp"
    32             android:background="@null"
    33             android:src="@drawable/play_button" />
     32                android:background="@drawable/snow_button"
     33            android:text="Play" />
    3434
    35         <ImageButton
     35        <Button
    3636            android:id="@+id/visitus"
    3737            android:layout_width="wrap_content"
     
    4040            android:layout_centerHorizontal="true"
    4141            android:layout_marginTop="15dp"
    42             android:background="@null"
    43             android:src="@drawable/team_button" />
     42            android:background="@drawable/snow_button"
     43            android:text="Team" />
    4444
    4545    </RelativeLayout>
  • TabularUnified issm/trunk-jpl/src/mobile/android/ISSM_APP/res/layout/settingsmenu.xml

    r14472 r14489  
    6767             android:layout_height="wrap_content"
    6868             android:layout_below="@+id/sealvlBar"
    69              android:text="Set" />
     69             android:text="Done" />
    7070    </RelativeLayout>
  • TabularUnified issm/trunk-jpl/src/mobile/android/ISSM_APP/src/gov/nasa/jpl/issm/ISSM.java

    r14472 r14489  
    7777        frame = (FrameLayout)findViewById(R.id.frame);
    7878        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);
    8181        Button back = (Button) super.findViewById(R.id.back);
    8282        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);
    8585        ImageButton gl = (ImageButton) findViewById(R.id.greenland);           
    8686                gl.setOnClickListener(this);
     
    103103        spinner.setOnItemSelectedListener(new OnItemSelectedListener()
    104104        {
    105 
    106105                        @Override
    107106                        public void onItemSelected(AdapterView<?> arg0, View arg1,
     
    159158                        viewflipper.setOutAnimation(outToLeftAnimation());
    160159                        viewflipper.showNext();
     160                        defaultMap.setVisibility(View.VISIBLE);
    161161                        //create FemModel in native code and return the size of the model
    162162                        this.createModel();
     
    169169                        viewflipper.setOutAnimation(outToLeftAnimation());
    170170                        viewflipper.showNext();
     171                        defaultMap.setVisibility(View.VISIBLE);
    171172                        //create FemModel in native code and return the size of the model
    172173                        this.createModel();
     
    181182                         break;
    182183                }
    183                 case R.id.solve:
     184                /*case R.id.solve:
    184185                {
    185186                        friction = sliders.getFric();
     
    187188                        new CalculationTask().execute(friction);
    188189                        break;
    189                 }
    190                 case R.id.setting:
     190                }*/
     191                case R.id.play:
    191192                {
    192193                        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  
    88import android.view.View;
    99import android.widget.Button;
    10 import android.widget.ImageButton;
    1110import android.widget.PopupWindow;
    1211import android.content.Intent;
     
    2928        }
    3029        //start the core implementation of ISSM
    31             ImageButton start = (ImageButton) findViewById(R.id.start);         
     30            Button start = (Button) findViewById(R.id.start);           
    3231                start.setOnClickListener(new View.OnClickListener()
    3332                {
     
    4039                });
    4140                // navigate to youtube video
    42                 ImageButton video = (ImageButton) findViewById(R.id.video);             
     41                Button video = (Button) findViewById(R.id.video);               
    4342                video.setOnClickListener(new View.OnClickListener()
    4443                {
     
    5251                });
    5352                // 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);
    5554                intro.setOnClickListener(new View.OnClickListener()
    5655                {
     
    7271                });
    7372                //navigate to website
    74                 ImageButton visitus = (ImageButton) findViewById(R.id.visitus);         
     73                Button visitus = (Button) findViewById(R.id.visitus);           
    7574                visitus.setOnClickListener(new View.OnClickListener()
    7675                {
Note: See TracChangeset for help on using the changeset viewer.