androidでアプリを開発していて、画像付きのボタンを作成したのですが、少しボタンから画像がはみ出ています。
ソース自体は問題なく実装できていると思うのですが、解決策を教えていただけないでしょうか。
xml
1<Button 2 android:layout_width="match_parent" 3 android:layout_height="wrap_content" 4 android:id="@+id/button01" 5 android:layout_gravity="center_horizontal" 6 android:background="@drawable/button_background" 7 android:text="Hello" 8 android:drawableStart="@drawable/image"/>
ボタンがどうはみでているのでしょう。もとの画像からどのようにしたいのでしょう。
回答3件
あなたの回答
tips
プレビュー