Android v7 Support Library attr referencing -
i have been using answer https://stackoverflow.com/a/11253806/2014236 style activity dialog theme looks alertdialog. use 'attr's available in support library. how reference android.support.v7.appcompat.r.attr
version of buttonbarbuttonstyle
instead of android.r.attr
1 used here:
<button style="?android:attr/buttonbarbuttonstyle" android:layout_height="wrap_content" android:layout_weight="wrap_content" android:text="button" />
i have tried use style="?android.support.v7.appcompat:attr/buttonbarbuttonstyle"
returns error:
error: no resource found matches given name (at 'style' value '?android.support.v7.appcompat:attr/buttonbarbuttonstyle')
despite being in specified package shown here: https://developer.android.com/reference/android/support/v7/appcompat/r.attr.html#buttonbarbuttonstyle.
what correct format using non-android attrs/styles?
looks works well.
<button style="?attr/buttonbarbuttonstyle" android:layout_height="wrap_content" android:layout_weight="wrap_content" android:text="button" />
Comments
Post a Comment