Get ActionBarSherlock actionBarSize in Android 2.x

后端 未结 2 1941
轻奢々
轻奢々 2021-02-08 16:50

I am using ActionBarSherlock, and this XML line crashes in Android 2.x:

android:layout_height=\"?android:attr/actionBarSize\"

Is there a way to

相关标签:
2条回答
  • 2021-02-08 17:19

    Use ?attr/actionBarSize which will work on all API levels.

    0 讨论(0)
  • 2021-02-08 17:25

    This did the trick:

    android:layout_height="@dimen/abs__action_bar_default_height"
    
    0 讨论(0)
提交回复
热议问题