java - OnClickListener display ImageView in Full screen in other Intent/Fragment -


i using fragment, display imageview i've got in thumbnail on fragment in another view or dialog ? or displaying :)

i when tap on imageview, new view displays, , when tap on button, returns on main fragment.

i have implemented onclicklistener, , works don't know how pass data or whatever displaying imageview in full screen...

here code onclicklistener :

    mimagereport.setonclicklistener(new view.onclicklistener() {         @override         public void onclick(view v) {             if (zoomout) {                  zoomout = false;             } else {                  zoomout = true;             }         }     }); 

no need create new window displaying full screen image. can use android default gallery image viewer. set full image path or image uri "mimagereport" tag, inside onclick can retrieve it. use following line of code display full screen image as

startactivity(new intent(intent.action_view, uri.parse("content://media/external/images/media/16"))); /** replace own uri */ 

Comments

Popular posts from this blog

php - failed to open stream: HTTP request failed! HTTP/1.0 400 Bad Request -

java - How to filter a backspace keyboard input -

java - Show Soft Keyboard when EditText Appears -