TA貢獻1777條經(jīng)驗 獲得超10個贊
常用的有TextView EditText Button ImageView Dialog ListView GridView以及用來包含這些的Layout常用的Layout有LinearLayout RelativeLayout FrameLayout單純的創(chuàng)建一般都是采用new XXX(context);這樣的方式,或是在xml里進行配置<Buttonandroid:width = "match_parent"android:height="wrap_content"/>多看一些android的視頻和sdk中自帶的apiDemo會更容易理解
TA貢獻1895條經(jīng)驗 獲得超3個贊
Button,TextView,ImageView,EditText,創(chuàng)建方法可以在代碼中創(chuàng)建例如: Button btn = new Button(Context);或者xml中<Buttonandroid:layout_width="wrap_content"android:layout_height="wrap_content"/>
舉報
Copyright ? 2025 imooc.com All Rights Reserved | 京ICP備12003892號-11 京公網(wǎng)安備11010802030151號
購課補貼聯(lián)系客服咨詢優(yōu)惠詳情
慕課網(wǎng)APP您的移動學(xué)習(xí)伙伴
掃描二維碼關(guān)注慕課網(wǎng)微信公眾號