Good morning.
I have an image in my layout, by clicking on it it should be shown in full screen. How could I do it? Thank you in advance.
here the activity
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_upload);
ImageView image = (ImageView)findViewById(R.id.imgShow);
Picasso.with(this).load("https://upload.wikimedia.org/wikipedia/en/1/19/Optimus10108pieces.jpg").into(image);
}
here the xml
<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:id="@+id/imgShow"
android:layout_below="@+id/btn_upload"
android:layout_centerHorizontal="true"
android:layout_marginTop="59dp" />