I want to use the style of Android libraries. I think I should use @(Case 2) for the attribute style, but I saw a sample from the site it uses ?(Case 1). I do not know why.
Does the Android library have both a named resource listSeparatorTextViewStyle and a listSeparatorTextViewStyle attribute? Yes, I found a style called listSeparatorTextViewStyle in the system android lib attrs.xml, but where can I find the named listSeparatorTextViewStyle resource?
Here is the code and effect
Case 1
<TextView
android:id="@+id/dialog_title"
android:layout_width="match_parent"
android:layout_height="wrap_content"
style="?android:attr/listSeparatorTextViewStyle"
/>

Case 2
<TextView
android:id="@+id/dialog_title"
android:layout_width="match_parent"
android:layout_height="wrap_content"
style="@android:attr/listSeparatorTextViewStyle"
/>

source
share