私はAndroid開発の初心者で、小さなAndroidアプリケーションを開発しています。私のアプリケーションでは、ボタンを使用しています。ただし、画像とテキストが含まれています。すべてが正常に機能しています唯一のことは、ボタンの中央にテキストが表示され、ボタンの最後に画像が表示され、画像とテキストの両方が中央に表示されることです..私のボタンコードは次のようになります...
<Button
android:id="@+id/signup_button"
android:layout_width="match_parent"
android:layout_height="48dip"
android:layout_marginTop="15dip"
android:layout_marginLeft="1dip"
android:background="@drawable/help_screen_buttons"
android:text="Sign up"
android:textColor="@color/maroon_font"
android:alpha="0.8"
android:textSize="22dip"
android:drawableLeft="@drawable/tw_br"/>
彼は、画像を左上隅の位置にのみ設定できますが、中央には設定できません..その画像とテキストをボタンの中央に表示する方法...助けが必要です...ありがとう...