How to get “?android:attr/actionBarSize” with Compatibility Library

前端 未结 2 1284
长情又很酷
长情又很酷 2021-02-15 17:56

I\'m trying to use Fragments and ActionBar in a Android 2.2 project. There is some error when using \"?android:attr/actionBarSize\", how to get and set that value correctly?

2条回答
  •  悲&欢浪女
    2021-02-15 18:33

    I think the problem is that actionbar comes with android 3.0 and you are using 2.2. But there is a way to skip this by a extension called "actionbarsherlock".

提交回复
热议问题