Changeset 14711


Ignore:
Timestamp:
04/22/13 22:33:04 (12 years ago)
Author:
ltnguyen
Message:

ADD: text field for gallery description

Location:
issm/trunk-jpl/src/mobile/android/ISSM_APP
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/src/mobile/android/ISSM_APP/bin/AndroidManifest.xml

    r14710 r14711  
    55    android:installLocation="preferExternal" >
    66    <uses-sdk
    7         android:minSdkVersion="11"
     7        android:minSdkVersion="10"
    88        android:targetSdkVersion="15" />
    99        <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
  • issm/trunk-jpl/src/mobile/android/ISSM_APP/res/layout/gallery.xml

    r14563 r14711  
    2626        android:layout_marginTop="30dip" /> -->
    2727
     28        <TextView
     29            android:id="@+id/description"
     30            android:layout_width="wrap_content"
     31            android:layout_height="wrap_content"
     32            android:layout_centerHorizontal="true"
     33            android:gravity="center_horizontal"
     34            android:layout_below="@+id/container"
     35            android:layout_marginTop="5dip"
     36            android:textSize="13sp"
     37            android:typeface="serif" />
     38       
    2839    <RelativeLayout
    2940        android:id="@+id/gallery_relative_layout"
    3041        android:layout_width="fill_parent"
    31         android:layout_height="150dip"
     42        android:layout_height="130dip"
    3243        android:layout_alignParentBottom="true"
    3344        android:orientation="horizontal" >
     
    4455            android:id="@+id/gallery"
    4556            android:layout_width="0dip"
    46             android:layout_height="150dip"
     57            android:layout_height="130dip"
    4758            android:layout_marginLeft="20dip"
    4859            android:layout_marginRight="20dip"
     
    5970            android:layout_marginRight="15dip"
    6071            android:src="@drawable/arrow_right_enabled" />
     72
    6173    </RelativeLayout>
    6274
  • issm/trunk-jpl/src/mobile/android/ISSM_APP/src/gov/nasa/jpl/issm/GalleryImage.java

    r14661 r14711  
    5151
    5252                selectedImageView = (ImageView) findViewById(R.id.front_view);
    53                 selectedTextView = (TextView) findViewById(R.id.back_view);
    54                 selectedTextView.setVisibility(View.GONE);
     53                //selectedTextView = (TextView) findViewById(R.id.back_view);
     54                selectedTextView = (TextView) findViewById(R.id.description);
     55                //selectedTextView.setVisibility(View.GONE);
    5556                photoState = (ImageView) findViewById(R.id.photo_stage);
    5657                infoState = (ImageView) findViewById(R.id.info_stage);
    5758                photoState.setVisibility(View.GONE);
     59                infoState.setVisibility(View.GONE);
    5860                leftArrowImageView = (ImageView) findViewById(R.id.left_arrow_imageview);
    5961                rightArrowImageView = (ImageView) findViewById(R.id.right_arrow_imageview);
     
    186188                selectedImageView.setImageBitmap(b);
    187189                selectedImageView.setScaleType(ScaleType.FIT_XY);
    188                 selectedTextView.setText(description.getDescription(selectedImagePosition       ));
     190                selectedTextView.setText(description.getDescription(selectedImagePosition ));
    189191        }
    190192       
  • issm/trunk-jpl/src/mobile/android/ISSM_APP/src/gov/nasa/jpl/issm/ISSM.java

    r14710 r14711  
    114114                                        colorMap.setColor(color);
    115115                                        colorBar.setColorMap(colorMap);
    116                                         colorBar.invalidate();
    117116                                        drawFigure();
    118117                                }
     
    177176                        {
    178177                                mapName= "greenland";
     178                                colorBar.setVisibility(View.INVISIBLE);
    179179                                defaultMap.setImageResource(R.drawable.greenland_button);
    180180                                defaultMap.setScaleX(1.12f);
     
    193193                        {
    194194                                mapName= "antarctica";
     195                                colorBar.setVisibility(View.INVISIBLE);
    195196                                defaultMap.setImageResource(R.drawable.antarctica_button);
    196197                                viewflipper.setInAnimation(inFromRightAnimation());
     
    248249        colorBar.setVelocity(velocity.getVmax(), velocity.getVmin());
    249250        colorBar.invalidate();
     251        colorBar.setVisibility(View.VISIBLE);
    250252        frame.addView(mGLView);
    251253    }
Note: See TracChangeset for help on using the changeset viewer.