Reputation: 24308
I am trying to understand the difference between the above 2 styles. It appears after reading various posts the correct way of doing this is assigning the holo theme in the manifest and then doing
style="?android:attr/borderlessButtonStyle"
but it appears you can also do this
style="@android:style/Widget.Holo.Light.Button.Borderless.Small"
which one is correct? Is one an alias for the other?
I must admit the second 1 seems easier to read and understand, its pointing to an internal style - right?
and the 1st one? this is a style or just an attribute within a style?
In the 1st one it also starts with a question mark, what purpose does this have ?
anybody have a good insight into this ?
Upvotes: 0
Views: 71
Reputation: 1006604
which one is correct?
Both/either, depending upon your objective.
Is one an alias for the other?
The first one says "there's an attribute in the theme that will indicate what style to use here". The second one says "use this style".
Upvotes: 2