Android Project/Extras..
[Kotlin]BottomNavigationView 글자크기 조절
juwon2
2024. 2. 15. 01:27
style에 들어가서 style지정한뒤,
<style name="BottomNavigationView" parent="@style/TextAppearance.AppCompat.Caption">
<item name="android:textSize">13sp</item>
</style>
<style name="BottomNavigationView.Active" parent="@style/TextAppearance.AppCompat.Caption">
<item name="android:textSize">12sp</item>
</style>
BottomNavigationView 레이아웃으로 이동해서 itemTextAppearanceActive를 아까 설정한 스타일로 적용!
<com.google.android.material.bottomnavigation.BottomNavigationView
app:itemTextAppearanceActive="@style/BottomNavigationView.Active"
app:itemTextAppearanceInactive="@style/BottomNavigationView" />