选项​​卡+刷卡Android中所有的API级别有的、选项、级别、Android

2023-09-05 07:03:55 作者:长街听风

我的计划是建立一个活动包括标签+横扫所有Android版本。如果我们从一个默认的Andr​​oid项目设置,它刚刚支持至少11 API

My plan is creating an Activity includes Tabs+Swipe for all Android version. If we set it from a default Android project, it has just support for at least API 11.

在夏洛特我们有两个项目命名为:标签导航,标签导航(崩溃),包括标签,但不能刷卡。 他们有他们的样品,有一个bug(刷卡左/右,当标签处于折叠状态(横向)与所选择的项目不会更新)在问题#240。

In Sherlock we have two project named : Tab Navigation, Tab Navigation(collapsed) includes Tabs but not Swipe. They have Issue #240 in their samples that has a bug (swipe left/right when the tabs are in collapsed mode (landscape) and the selected item does not update).

你知道有什么样code,以解决这个问题呢?

Do you know any sample code that solve this problem?

推荐答案

我也正好有同样的情况。按照下面的链接,你会得到一切你所需要的。

I also happened to have same situation. Follow below links and you will get all what you need.

请参阅本教程 http://droidista.blogspot.com/2012/08/making-actionbarsherlock-and.html

和从这里得到的演示code https://github.com/zmdominguez/vpi-abs-demo

And get demo code from here https://github.com/zmdominguez/vpi-abs-demo