In XML it's easy to set listSeparatorTextViewStyle
:
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="Title"
android:textSize="16dp"
style="?android:attr/listSeparatorTextViewStyle"/>
But how do I set the style
attribute in java?