开发者

android resource not found

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜