imenu icon size를 theme에 정의해서 변경한다
Manifest.xml 에
<application
...
android:theme="@style/Theme.ChatRead"
...
values/themes에 Theme.ChatRead에 actioButtonStyle 추가 (night에도)
<style name="Theme.ChatRead" parent="Theme.AppCompat.DayNight.NoActionBar">
<!-- Customize your theme here. -->
<item name="actionButtonStyle">@style/myActionButtonStyle</item>
</style>
values/style에 myActionButtonStyle 추가하고 min,max width 등 조정
<style name="myActionButtonStyle" parent="Widget.AppCompat.ActionButton">
<item name="android:minWidth">30dp</item>
<item name="android:maxWidth">48dp</item>
<item name="android:width">38dp</item>
</style>
'android source ' 카테고리의 다른 글
startActivityForResult deprecated (0) | 2024.05.12 |
---|---|
image 를 rounding 으로 표시 (0) | 2024.04.28 |
text prompted box input (0) | 2024.03.28 |
toolbar menu width adjust (0) | 2024.03.03 |
imageview with rounded corner (0) | 2023.12.19 |