小编And*_*der的帖子

有没有办法在ActionBarSharlock中使用新的DrawerLayout?

我想知道是否有任何方法可以使用ActionBarSherlock支持库中的新DrawerLayout?我找到了ICS +的解决方法,但我需要的是对Android 2.2+的支持问题是ABS仅在ICS +时保留对原始android.view.MenuItem的引用,但对于旧版本,内部实现不能保存原始实现的引用.

android actionbarsherlock

9
推荐指数
2
解决办法
4692
查看次数

是否可以在本机TabWidget上使用ActionBarSherlock样式?

我想知道是否可以在本机TabWidget上应用ActionBarSherlock(v4.2.0)TabWidget主题?因此它会在ICS前机器人上看起来像Holo.如果你知道如何 - 请分享.

我发现的只有:https://gist.github.com/1126843但它似乎不再起作用了.

标准xml布局:

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:orientation="vertical" >

    <TabHost
        android:id="@android:id/tabhost"
        android:layout_width="match_parent"
        android:layout_height="match_parent" >

        <LinearLayout
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            android:orientation="vertical" >

            <TabWidget
                android:id="@android:id/tabs"
                android:layout_width="match_parent"
                android:layout_height="wrap_content" >
            </TabWidget>

            <FrameLayout
                android:id="@android:id/tabcontent"
                android:layout_width="match_parent"
                android:layout_height="match_parent" >
            </FrameLayout>
        </LinearLayout>
    </TabHost>
</LinearLayout>
Run Code Online (Sandbox Code Playgroud)

android styles tabwidget actionbarsherlock

6
推荐指数
1
解决办法
910
查看次数

标签 统计

actionbarsherlock ×2

android ×2

styles ×1

tabwidget ×1