的底部畫我的ImageButton這裏面的代碼創建,ImageButton的佈局
// Create Button
ImageButton imageButton = new ImageButton(mContext);
imageButton.setBackgroundResource(R.drawable.button);
imageButton.setOnClickListener(this);
LayoutParams myParams = new LayoutParams(LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT);
addContentView(imageButton, myParams);
怎樣繪製它在佈局的底部?
你使用哪種佈局包含按鈕? – Snicolas
我有視圖佈局 –