Android的标签+滑动,我该如何实现ActionBarSherlock?我该、如何实现、标签、Android

由网友(小糖果~)分享简介:我使用的是谷歌的新工具开始,有三个选项卡之间切换的功能的应用程序。 I'm using Google's new tools to start an application that has the ability to switch between three tabs. 这是伟大的,但缺乏对旧设备的支持。 Th...

我使用的是谷歌的新工具开始,有三个选项卡之间切换的功能的应用程序。

I'm using Google's new tools to start an application that has the ability to switch between three tabs.

这是伟大的,但缺乏对旧设备的支持。

This is great, but lacks support for older devices.

1 我加ABS的支持库应用程序。

1. I added ABS with the support library to the application.

2 我改变了公共类MainActivity扩展FragmentActivity实现ActionBar.TabListener {公共类MainActivity扩展SherlockFragmentActivity工具ActionBar.TabListener {

3。我还是留下了一吨的错误,而我甚至不知道这是否会正常工作的旧设备。有没有人对如何实现滑动标签,与2.x和多达兼容任何提示?

3. I'm still left with a ton of errors, and I don't even know if this will work properly on older devices. Does anyone have any tips on how to implement sliding tabs that are compatible with 2.x and up?

我卡上的alextsc的回答步骤6

I'm stuck on step 6 of alextsc's answer

推荐答案

完全相同的方法为我工作。我删除了所有的进口,然后pressed CTRL + SHIFT + O,并选择了兼容性类。它的工作absoulutely罚款。看到帖子这里。

The exact same process worked for me. I removed all the imports and then pressed ctrl+shift+o and selected the compatibility classes. It worked absoulutely fine. see the post here.

阅读全文

相关推荐

最新文章