开发者

android resource not found

开发者 https://www.devze.com 2023-03-01 10:49 出处:网络
I put this i开发者_运维知识库n my LinearLayout style=\"?android:attr/buttonBarStyle\" but i got an error like this

I put this i开发者_运维知识库n my LinearLayout

style="?android:attr/buttonBarStyle"

but i got an error like this

No resource found that matches the given name (at 'style' with value '?android:attr/buttonBarStyle').

How to solve this??


which version you are using? as style="?android:attr/buttonBarStyle" is available in Android v3.0

check this for reference: http://developer.android.com/reference/android/R.attr.html


Try using style="@android:style/ButtonBar". This style is available in older version of Android, but android:attr/buttonBarStyle is available only in Android 3.0, like Zoombie has already said.

0

精彩评论

暂无评论...
验证码 换一张
取 消