简体   繁体   中英

Android - Array into ImageView No Loop

I have a main activity with a ListView for my array. The array currently contains 4 items, (it will grow):

- <string-array name="ot_images">
   <item>"file:///android_res/drawable/ot_100.jpg"</item> 
   <item>"file:///android_res/drawable/ot_101.jpg"</item> 
   <item>"file:///android_res/drawable/ot_102.jpg"</item> 
   <item>"file:///android_res/drawable/ot_103.jpg"</item> 

I want to show these images (1 by 1, swipe action, centered, no thumbnails) so after reaching the last one, it will come back to the Main Activity.

What would be the best approach? Cheers.

使用视图寻呼机,您可以对其进行一些自定义,以便当它在最后一张图像时,您将其关闭。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM