android source

toolbar menu width adjust

리오파파 2024. 3. 3. 12:06

AppTheme 에 menu style item 추가 (MyaActionButtonStyle)

<style name="AppTheme" parent="Theme.MaterialComponents.Light.DarkActionBar">
    <!-- Customize your theme here. -->
    <item name="colorPrimary">@color/colorPrimary</item>
    <item name="android:actionButtonStyle">@style/MyActionButtonStyle</item>
</style>

 

 

menu style define

<style name="MyActionButtonStyle" parent="AppTheme">
    <item name="android:minWidth">4dp</item>
    <item name="android:padding">4dp</item>
</style>

'android source ' 카테고리의 다른 글

Menu icon 간격 적게 하는 법  (0) 2024.04.26
text prompted box input  (0) 2024.03.28
imageview with rounded corner  (0) 2023.12.19
Google File Async Download  (0) 2023.12.17
drawable resource를 bitmap으로  (1) 2023.12.17