How to display an image in full screen on click in the ImageView?
问题 I need to open an image in full screen upon click in the ImageView, like a gallery with one image! How would I do that? 回答1: this is a basic example: the layout activity_main.xml <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" android:gravity="center"> <ImageView android:id="@+id/imageView1" android:layout_width="wrap_content" android:layout_height="wrap_content" android:adjustViewBounds="true"