【发布时间】:2017-05-19 11:07:32
【问题描述】:
我的图标(大小 256*256)不适合按钮的大小,它是居中对齐的,所以小按钮显示为 并且任何人都让我的按钮适合按钮的原始大小并显示为必需图标对于按钮 。
更改图标的大小会使图标超出按钮大小的范围,请帮助我摆脱它。
我的代码是
<br.com.bloder.magic.view.MagicButton
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="10dp"
android:layout_marginLeft="10dp"
app:magic_button_size="50dp"
app:button_icon="@drawable/three"
app:button_icon_width="35dp"
app:button_icon_height="35dp"
app:hide_text="EigthSemester"
app:icon_button_color="#ced0d4"
app:expandable_area_color="#2f83de"/>
【问题讨论】:
-
能否提供布局xml?
-
您是否为此按钮使用任何第三方库?还是这是标准的 android 按钮视图?
-
编辑我的帖子请注意
-
第三方库
-
'com.github.bloder:magic:1.1'
标签: android android-studio button icons