Changeset 14844


Ignore:
Timestamp:
05/01/13 18:51:12 (12 years ago)
Author:
ltnguyen
Message:

ADD: pinch zoom and moving feature for gallery.

Location:
issm/trunk-jpl/src/mobile
Files:
3 added
3 edited

Legend:

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

    r14823 r14844  
    3535        </activity>
    3636        <activity
     37            android:name="gov.nasa.jpl.issm.ZoomImageViewActivity"
     38            android:screenOrientation="portrait"
     39            android:label="@string/title_activity_issm" >
     40        </activity>
     41        <activity
    3742            android:name="gov.nasa.jpl.issm.AboutActivity"
    3843            android:screenOrientation="portrait"
  • issm/trunk-jpl/src/mobile/android/ISSM_APP/bin/AndroidManifest.xml

    r14711 r14844  
    3535        </activity>
    3636        <activity
     37            android:name="gov.nasa.jpl.issm.ZoomImageViewActivity"
     38            android:screenOrientation="portrait"
     39            android:label="@string/title_activity_issm" >
     40        </activity>
     41        <activity
    3742            android:name="gov.nasa.jpl.issm.AboutActivity"
    3843            android:screenOrientation="portrait"
  • issm/trunk-jpl/src/mobile/android/ISSM_APP/src/gov/nasa/jpl/issm/GalleryImage.java

    r14711 r14844  
    33import java.util.ArrayList;
    44import java.util.List;
    5 
    65import android.app.Activity;
     6import android.content.Intent;
    77import android.graphics.Bitmap;
    88import android.graphics.drawable.BitmapDrawable;
     
    2020
    2121public class GalleryImage extends Activity {
     22       
    2223        private GalleryDescription description;
    2324        private ImageView selectedImageView;
     
    6263                gallery = (Gallery) findViewById(R.id.gallery);
    6364                description = new GalleryDescription(this);
     65               
     66                selectedImageView.setOnClickListener(new View.OnClickListener()
     67                {
     68                           public void onClick(View view) {
     69                                    Intent i = new Intent(GalleryImage.this, ZoomImageViewActivity.class);
     70                                        i.putExtra("imagePosition", selectedImagePosition);
     71                                startActivity(i);
     72                               
     73                           }
     74                        });   
     75               
    6476                infoState.setOnClickListener(new View.OnClickListener()
    6577                {
Note: See TracChangeset for help on using the changeset viewer.