Skip to content

Commit

Permalink
Update items style
Browse files Browse the repository at this point in the history
  • Loading branch information
chelemen-razvan committed Sep 19, 2021
1 parent 6ba4efe commit bd2ad1a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
1 change: 1 addition & 0 deletions app/src/main/res/layout/activity_main.xml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
android:id="@+id/button1"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:textSize="20sp"
android:text="@string/button_1" />

<com.alanvan.segmented_control.SegmentedControlButton
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,6 @@ class SegmentedControlButton @JvmOverloads constructor(

init {
textAlignment = View.TEXT_ALIGNMENT_CENTER
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {
setTextAppearance(R.style.SegmentedButtonTextAppearance)
} else {
setTextAppearance(context, R.style.SegmentedButtonTextAppearance)
}

}
}

0 comments on commit bd2ad1a

Please sign in to comment.