課程
/移動開發
/Android
/Android攻城獅的第二門課(第1季)
沒有。。
2017-11-26
源自:Android攻城獅的第二門課(第1季) 10-2
正在回答
View linear = View.inflate(this, R.layout.linear_layout, null);View relative = View.inflate(this, R.layout.relative_layout, null);View table = View.inflate(this, R.layout.table_layout, null);View frame = View.inflate(this, R.layout.frame_layout, null);viewList.add(linear);viewList.add(relative);viewList.add(table);viewList.add(frame);
view的添加使用list的add方法 沒有單獨的addView方法
舉報
本課程由淺入深地帶您學會Android的常用控件的開發和使用
Copyright ? 2025 imooc.com All Rights Reserved | 京ICP備12003892號-11 京公網安備11010802030151號
購課補貼聯系客服咨詢優惠詳情
慕課網APP您的移動學習伙伴
掃描二維碼關注慕課網微信公眾號
2017-11-26
View linear = View.inflate(this, R.layout.linear_layout, null);
View relative = View.inflate(this, R.layout.relative_layout, null);
View table = View.inflate(this, R.layout.table_layout, null);
View frame = View.inflate(this, R.layout.frame_layout, null);
viewList.add(linear);
viewList.add(relative);
viewList.add(table);
viewList.add(frame);
view的添加使用list的add方法 沒有單獨的addView方法