Actionbarsherlock Demo 浅析 :Spilt Action Items 与 Spilt Action Modes

public class SplitActionModes extends ActionModes {}
public class SplitActionItems extends ActionItems

他们继承了前面的ActionModes类和ActionItems类,只是在Android manifest.xml中Activity多定义了一个选项:

<activity android:label="@string/split" android:name=".SplitActionItems" android:uiOptions="splitActionBarWhenNarrow">
            <intent-filter>
                <action android:name="android.intent.action.MAIN"/>
                <category android:name="com.actionbarsherlock.sample.demos.EXAMPLE"/>
            </intent-filter>
        </activity>

android:uiOptions="splitActionBarWhenNarrow”就是调用Split bar 显示 action items。

posted @ 2015-08-06 15:16  黑泡man  阅读(127)  评论(0编辑  收藏  举报