How does splitActionBarWhenNarrow exactly work in Android?

孤者浪人 提交于 2019-12-04 14:48:41

I'm using ActionBarSherlock and the action bar is split when the screen width is below 480dp. This behaviour is defined by the two following resource files :

res/values-w480dp/abs_bools.xml

<resources>
    <bool name="abs__action_bar_embed_tabs">true</bool>
    <bool name="abs__split_action_bar_is_narrow">false</bool>
</resources>

res/values/abs_bools.xml

<resources>
    <bool name="abs__action_bar_embed_tabs">false</bool>
    <bool name="abs__split_action_bar_is_narrow">true</bool>
</resources>

I have not checked if this is the same behaviour as in ICS code but I'm pretty sure it is.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!