我们的应用程序使用 Action Bar Sherlock,它的主题如下:
<style name="Theme.MyApp.Default" parent="@style/Theme.Sherlock.Light">
<item name="actionButtonStyle">@style/MyApp.SherlockActionBar.Light.ActionButton</item>
<item name="android:actionButtonStyle">@style/MyApp.SherlockActionBar.Light.ActionButton</item>
</style>
<style name="MyApp.SherlockActionBar.Light.ActionButton" parent="@style/Widget.Sherlock.Light.ActionButton">
<item name="android:maxHeight">20dp</item>
<item name="android:maxWidth">20dp</item>
</style>
Theme.MyApp.Default
应用程序的默认主题 在哪里。
我需要将操作按钮的图标(此图像上的#2 )设置为特定大小。但是,当我设置height/width/scaleX/scaleY/scaleType/padding
属性时,按钮上的图标仍然保持看起来像它们的像素大小。操作按钮的文本部分似乎确实符合设置。它可能只是文本视图上的复合可绘制对象吗?
如何设置操作栏上图标的大小?