質問

「描画可能な左」アイコンをボタンオブジェクトに追加するにはどうすればよいですか?

私はこのようなことを意味します:

Button button = new Button();
button.setDrawableLeft(R.drawable...);
役に立ちましたか?

解決

使用する Button.setCompoundDrawablesWithIntrinsicBounds(..) に関連しています Android:Drawablelefe 属性。

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top