2011-07-07 8 views

答えて

0

ルックはこちらアンドロイド用link

見ているあなたに感謝助けて、私はXMLではなく、私のクラスから画像のSRCを与えたい も私を助けてdrawbleTop、アンドロイド:drawbleBottom

はここlink

・ホープ、このヘルプでsetCompoundDrawablesWithIntrinsicBoundsを探して...クラスから引き出し可能に設定します。

1

をあなたはこの

Button b=new Button(this); 
b.setText(" Button");  
b.setCompoundDrawablesWithIntrinsicBounds(null, getResources().getDrawable(R.drawable.btn_call), null, null); 
ため Buttonを使用することができます
関連する問題