Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>Intially you need to do is to take the count of the images coming from the json.As you get all the images you can show it to user using the horizondal pages.It helps to change the image in each swipe like in this <a href="http://mobile.tutsplus.com/tutorials/android/android-user-interface-design-horizontal-view-paging/" rel="noreferrer">link</a> .Otherwise you can use two frames and can set two animations and show it like an slider.I think this piece of code will help you.</p> <pre><code>if (imagesetflag == true) { Right_to_left_in = AnimationUtils.loadAnimation(this, R.anim.right_to_left_in); Right_to_left_out = AnimationUtils.loadAnimation(this, R.anim.right_to_left_out); left_to_Right_in = AnimationUtils.loadAnimation(this, R.anim.left_to_right_in); Left_to_Right_out = AnimationUtils.loadAnimation(this, R.anim.left_to_right_out); frame1.setImageBitmapReset(decryptedimage, 0, true); TVpagenum.setText("Page no:" + Currentpage + "/" + countOfPages); frame1.bringToFront(); frame1.setVisibility(View.VISIBLE); frame2.setVisibility(View.INVISIBLE); frame1.setAnimation(Right_to_left_in); frame2.setAnimation(Right_to_left_out); imagesetflag = false; } else { Right_to_left_in = AnimationUtils.loadAnimation(this, R.anim.right_to_left_in); Right_to_left_out = AnimationUtils.loadAnimation(this, R.anim.right_to_left_out); left_to_Right_in = AnimationUtils.loadAnimation(this, R.anim.left_to_right_in); Left_to_Right_out = AnimationUtils.loadAnimation(this, R.anim.left_to_right_out); frame2.setImageBitmapReset(decryptedimage, 0, true); TVpagenum.setText("Page no:" + Currentpage + "/" + countOfPages); frame2.bringToFront(); frame2.setVisibility(View.VISIBLE); frame1.setVisibility(View.INVISIBLE); frame2.setAnimation(Right_to_left_in); frame1.setAnimation(Right_to_left_out); imagesetflag = true; } </code></pre>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload