选项​​卡+刷卡Android中所有的API级别 [英] Tabs+Swipe in Android for all API levels

查看:141
本文介绍了选项​​卡+刷卡Android中所有的API级别的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的计划是建立一个活动包括标签+横扫所有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.

请参阅本教程 <一href="http://droidista.blogspot.com/2012/08/making-actionbarsherlock-and.html">http://droidista.blogspot.com/2012/08/making-actionbarsherlock-and.html

和从这里得到的演示code <一href="https://github.com/zmdominguez/vpi-abs-demo">https://github.com/zmdominguez/vpi-abs-demo

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

这篇关于选项​​卡+刷卡Android中所有的API级别的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆