textview があります。setCompoundDrawablesWithIntrinsicBounds の textview を設定しました。その後、テキストをテキストフィールドに設定すると、テキストが右にシフトしました。テキストを中央に移動するにはどうすればよいですか。助けてください。
事前に助けてくれてありがとう。
Drawable d =new BitmapDrawable(resizedbitmap);
description.setCompoundDrawablesWithIntrinsicBounds(d,null,null,null);
description.setText("hello");
description.setTypeface(Typeface.DEFAULT_BOLD);
description.setGravity(Gravity.CENTER);