Android Coding
Menu item Background 변경 처리
오마로
2017. 9. 20. 13:22
반응형
메뉴 아이템에 대한 배경 처리를 바꾸고 싶다.
어디서 변경해야 할 지 모를 때가 있다 ^^;;
<style name="AppTheme.FullScreen" parent="Theme.AppCompat.Light.NoActionBar">
<!-- Customize your theme here. -->
<item name="windowNoTitle">true</item>
<item name="windowActionBar">false</item>
<!-- To change the background of options menu-->
<item name="android:itemBackground">@color/white</item>
<item name="android:itemTextAppearance">@style/myCustomMenuTextApearance</item>
</style>
해당 Activity에 대한 Theme 지정에서 ItemBackground에 대한 Color를 지정하면 된다
안드로이드 개발의 길은 오늘도 멀고 험하네 ^^
반응형