设计目标
跟据课程教学内容完成类微信的门户页面框架设计,APP最少必须包含4个tab页面。
框架设计需要使用fragment,activity
功能说明
制作类微信界面的框架,后续作业则向界面内丰富其功能
首先制作微信底部控件bottom.xml
并且设计好linearlayout的排列及编号(有条件可以根据自己需要改变图片内容)
代码展示(部分):
<LinearLayout
android:id="@+id/linearlayout1"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_weight="1"
android:orientation="vertical">
<ImageView
android:id="@+id/imageView1"
android:layout_width="match_parent"
android:layout_height="86dp"
app:srcCompat="@drawable/pic1" />
<TextView
android:id="@+id/weixin"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:gravity="center"
android:text="微信" />
其二制作top.xml
<TextView
android:id="@+id/textViewA"
android:layout_width="match_parent"
android:layout_height="wrap_content"
androi