我有一个按钮,里面放了一张图片...我必须尝试调整按钮内部的图片大小...我该怎么做呢?可以直接从xml代码中调整吗?以下是xml代码:
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/layout_root"
android:orientation="vertical"
android:layout_width="250dp"
android:layout_height="180dp"
android:paddingLeft="4dip"
android:paddingRight="4dip"
android:background="@color/white_trasparent"
android:weightSum="1">
<TextView
android:layout_height="wrap_content"
android:id="@+id/text"
android:textColor="@color/grey"
android:textAppearance="?android:attr/textAppearanceLarge"
android:layout_width="wrap_content"
android:layout_marginLeft="15dp">
</TextView>
<Button
android:layout_width="wrap_content"
android:text="Drawable Top"
android:id="@+id/Button03"
android:drawableTop="@drawable/icon"
android:layout_height="wrap_content"
android:textSize="10dp">
</Button>
</LinearLayout>