[안드로이드 공부]/UI
The style on this component requires your app theme to be Theme.MaterialComponents (or a descendant)
코코모모
2023. 7. 4. 14:41
com.google.android.material.bottomappbar.BottomAppBar
material 을 사용 할 때,
material 테마를 적용 해주시 않으면 아래와 같은 에러가 나온다.
The style on this component requires your app theme to be Theme.MaterialComponents (or a descendant)
layout.xml 과 style.xml에 아래와 같이 수정 해준다.
1. layout
android:theme="@style/MaterialTheme"
2. style
<style name="MaterialTheme" parent="Theme.MaterialComponents.NoActionBar">
</style>