1
A
回答
1
在XML中,
<RelativeLayout android:id="@+id/container">*
<TextView ...></TextView> <!-- Your A text -->
</RelativeLayout>
在代碼中,
RelativeLayout container = (Rel...) findViewById(R.id.container);
ImageView imgView = new ImageView(this);
// Set Image View params and image and add it programmatically
container.addView(imgView);
+0
感謝的要求,我想有它的一個按鈕。 – user1611248 2013-05-13 15:27:07
相關問題
- 1. 安卓圖像按鈕
- 2. 按鈕圖像排列交叉圖案頂部的文本?
- 3. 安卓雙按鈕提交
- 4. 安卓後退按鈕錯誤
- 5. 按鈕在安卓
- 6. 安卓:錯誤:(20,51)錯誤:無法找到符號變量MESSAGE_TEXT
- 7. 錯誤上按一下按鈕在安卓
- 8. 安卓視圖用按鈕查看
- 9. 安卓:更改按鈕插圖
- 10. 安卓:錯誤
- 11. 設置按鈕看起來像默認的安卓按鈕
- 12. 自定義按鈕安卓像媒體播放器按鈕
- 13. 圖像交換按鈕(jquery)
- 14. 提交按鈕圖像
- 15. 安卓與Eclipse按鈕
- 16. 安卓按鈕問題
- 17. 安卓幻燈片按鈕
- 18. 鈦:安卓選項按鈕
- 19. 安卓按鈕裏面PopupWindow
- 20. 畫布和安卓按鈕
- 21. 在按鈕點擊(安卓)上更改兩個圖像
- 22. 安卓工具欄圖像居中與導航抽屜按鈕
- 23. 錯誤交叉域
- 24. 安卓儘快添加一個按鈕,得到錯誤
- 25. 安卓GPS次活動錯誤時,點擊下一步按鈕
- 26. 科爾多瓦4安卓後退按鈕錯誤
- 27. 長按安卓事件的錯誤
- 28. 安卓alertdialog錯誤
- 29. 圖像按鈕Xml和活動錯誤
- 30. 按鈕圖像更改錯誤
添加一個TextView和ImageView的一個FrameLayout裏內 – JiTHiN 2013-05-08 11:59:29