简体   繁体   English

带有按钮和滑动的Android View Flow

[英]Android View Flow with buttons and swipe

I have a set of images named a1 to a7 I need to swipe this images as well as i have to add a forward and backward buttons for navigation.Rigt now I am just using a circle view flow I am able to swipe. 我有一组名为a1到a7的图像,我需要滑动此图像,还必须添加一个前进和后退按钮进行导航。现在,我仅使用一个能够滑动的圆形视图流程。 But I don't know how to add buttons. 但是我不知道如何添加按钮。 Any help will be appreciated. 任何帮助将不胜感激。

I'm not sure if I understood fully. 我不确定我是否完全理解。 If you want to swipe left and right, you don't need buttons, that's why you swipe. 如果要左右滑动,则不需要按钮,这就是滑动的原因。 If you need every image to be in separate tabs check: http://developer.android.com/design/patterns/swipe-views.html 如果您需要将每个图像都放在单独的标签中,请检查: http : //developer.android.com/design/patterns/swipe-views.html

If you want some examples of just swiping/scrolling the images horizontally: http://docs.appcelerator.com/titanium/latest/#!/api/Titanium.UI.ScrollableView 如果您需要一些仅水平滑动/滚动图像的示例: http : //docs.appcelerator.com/titanium/latest/#!/api/Titanium.UI.ScrollableView

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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