0

I have created a simple button and applied the following style to it

style="?android:attr/buttonBarButtonStyle"

but on checking R.style i did not find any style by this name. rather found this in R.styleable

Can we also use this value to any item in style sheet if yes then kindly update to which attribute.

thanks

user2779311
  • 1,688
  • 4
  • 23
  • 31
  • 1
    `?android:` means it's android **internal**. Not your accessible files. – Phantômaxx Sep 26 '14 at 17:47
  • Read this, u may get some idea http://stackoverflow.com/questions/10869184/how-does-an-androidattr-style-work – Panther Sep 26 '14 at 18:00
  • @Panther yes it helped. another point that is not clear is the difference between R.styleable and R.attr . i have seen a very entries in so but not very clear. if you have any idea kindly do update – user2779311 Sep 27 '14 at 04:13
  • R.styleable is the custom attributes that one set for Views. Like i can extend the `ImageView` to add custom functionalities to it and add `custom attributes to it via xml` and use that in my code. Read about custom attributes here `http://developer.android.com/training/custom-views/create-view.html#customattr` – Panther Sep 27 '14 at 04:18
  • i meant android.R.styleable and android.R.attr. does this mean the R.styleable contains all that is in R.attr – user2779311 Sep 27 '14 at 04:26

0 Answers0