ImageButton Scale Type fitcenter:没有边框

时间:2017-09-10 12:07:57

标签: android android-layout android-imagebutton

我想在ImageButton中放入一个图像。问题是我的按钮周围有我的图像边框。

enter image description here

enter image description here

2 个答案:

答案 0 :(得分:1)

您可以为此设置透明背景 - x={[1 3 8 9],[2 12 13 17 25]}; v = rand(4,5); y={[1.5 1.6 1.3 3.5,8.1,8.3],[8.4,13.5,14.4,23,23.9,24.2]}; [W I]=lininterpnw(x{:},y{:}); sum(W.*v(I)) interpn(x{:},v,y{:})

答案 1 :(得分:0)

<ImageView android:id="@+id/back_button_credits"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:src="@drawable/backbuttonstatus"
    android:layout_marginStart="8dp"
    android:layout_marginEnd="8dp"
    android:layout_marginTop="8dp"
    android:layout_marginBottom="8dp" />

试试这个