課程
/移動開發
/Android
/高仿微信5.2.1主界面及消息提醒
三個按鈕設置在底部,一開始在布局文件linearLayout怎么寫啊
2015-05-24
源自:高仿微信5.2.1主界面及消息提醒 1-2
正在回答
<LinearLayout?xmlns:android="http://schemas.android.com/apk/res/android" ????xmlns:tools="http://schemas.android.com/tools" ????android:layout_width="match_parent" ????android:layout_height="match_parent" ????android:orientation="vertical"> ????<include?layout="@layout/top1"?/> ????<android.support.v4.view.ViewPager ????????android:id="@+id/viewPager" ????????android:layout_width="match_parent" ????????android:layout_height="0dp" ????????android:layout_weight="1" ?????/> ????<include?layout="@layout/top2"?/> </LinearLayout>
top2放在viewpager下面
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" ? ?xmlns:tools="http://schemas.android.com/tools" ? ?android:layout_width="match_parent" ? ?android:layout_height="match_parent" ? ?android:orientation="vertical"> ? ?<include layout="@layout/top1" /> ? ?<android.support.v4.view.ViewPager ? ? ? ?android:id="@+id/viewPager" ? ? ? ?android:layout_width="match_parent" ? ? ? ?android:layout_height="0dp" ? ? ? ?android:layout_weight="1" ? ? /> ? ?<include layout="@layout/top2" /></LinearLayout>
舉報
本課程將帶領大家從無到有的實現微信的整體界面
Copyright ? 2025 imooc.com All Rights Reserved | 京ICP備12003892號-11 京公網安備11010802030151號
購課補貼聯系客服咨詢優惠詳情
慕課網APP您的移動學習伙伴
掃描二維碼關注慕課網微信公眾號
2015-08-20
top2放在viewpager下面
2015-08-20
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
? ?xmlns:tools="http://schemas.android.com/tools"
? ?android:layout_width="match_parent"
? ?android:layout_height="match_parent"
? ?android:orientation="vertical">
? ?<include layout="@layout/top1" />
? ?<android.support.v4.view.ViewPager
? ? ? ?android:id="@+id/viewPager"
? ? ? ?android:layout_width="match_parent"
? ? ? ?android:layout_height="0dp"
? ? ? ?android:layout_weight="1"
? ? />
? ?<include layout="@layout/top2" />
</LinearLayout>