android-在视图翻转器中添加选项卡
我正在开发一个Android应用程序,在其中创建了一个TabActivity。对于每个选项卡,我使用单独的活动和单独的布局文件。实际上这个活动是一个显示客户信息的详细信息屏幕。用户可以单击列表视图活动中的项目,以便在选项卡活动中查看客户的详细信息。在那里,他可以使用导航按钮来浏览客户。简而言之,如果列表视图显示 10 条记录,并且用户单击第一个项目,客户详细信息.tabactivity 将打开并显示详细信息。使用导航按钮,用户可以查看下一条或上一条记录。
现在,我想在详细信息屏幕中使用视图翻转器,以便在浏览记录时和最后使用动画。使用快速手势而不是按钮。尽管如此,我还没有找到如何在翻转器中添加 tabhost/tabactivity 的正确示例。我还考虑使用一种布局创建选项卡,以便将其添加到视图翻转器,但我无法在托管视图翻转器的活动内创建选项卡。
任何帮助将不胜感激。先感谢您。
附注如果有帮助的话,我将创建一个我正在谈论的基本应用程序并上传
I am developing an android application in which I have creted a TabActivity. For each tab I am using a separate activity and a separate layout file. Actually this activity is a details screen which shows customer information. The user can click on an item in a listview activity in order to see customer's detailed info in the tab acticity. There he can use navigation buttons to navigate through the customers In a few words, if the listview displays 10 records and the user clicks on the first item the customer details.tabactivity opens and displays detailed info. Using the navigation butons the user can see the next or previous record.
Now, I would like to use a viewflipper in the details screen in order to use animations while navigating through the records and in the end. to use fling gestures instead of buttons. Nevertheless I haven't found a proper example of how to add a tabhost/tabactivity in the flipper. I also thought to create the tabs using one layout in order to add it to the viewflipper but then I have no way to create the tabs inside the activity that hosts the viewfliper.
Any help would be apreciated. Thank you in advance.
ps. I will create a basic app of what I am talking and upload if that would be helpful
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
ViewPager 可能更适合你想做什么。
The ViewPager may be more appropriate for what you are trying to do.