Android Gallery fullscreen

How to implement a full-screen gallery? that is, the image is stretched to fill the entire screen?

+6
android android-layout android-gallery
source share
2 answers

To make it fullscreen:

<activity android:name="YourActivity" android:theme="@android:style/Theme.NoTitleBar.Fullscreen"> 

In order for images to fill the screen, you must do this on your adapter by creating a View with MATCH_PARENT x MATCH_PARENT, and in your ImageView created on getView, you must fill all the space:

 yourImageView.setScaleType(ImageView.ScaleType.FIT_XY); 
+7
source share

Use this in Activity Manifest.xml

provide a property like this

  android:theme="@android:style/Theme.Black.NoTitleBar.Fullscreen" 

Thanks.

+2
source share

All Articles