課程
/移動開發(fā)
/Android
/Android攻城獅的第二門課(第1季)
Fragment動態(tài)加載的main布局怎么寫呀? 就是MainActivity對應(yīng)的布局
2016-05-04
源自:Android攻城獅的第二門課(第1季) 8-4
正在回答
在fragment的name標(biāo)簽的參數(shù)為fragment的class文件
<Fragment
????android:id="@+id/...";
????android:name="com.example.fragment.RightFragment";
????android:layout_width="match_parent";
? ?android:layout_height="match_parent";
/>
舉報
本課程由淺入深地帶您學(xué)會Android的常用控件的開發(fā)和使用
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)微信公眾號
2016-05-04
在fragment的name標(biāo)簽的參數(shù)為fragment的class文件
<Fragment
????android:id="@+id/...";
????android:name="com.example.fragment.RightFragment";
????android:layout_width="match_parent";
? ?android:layout_height="match_parent";
/>