本文为在AS制作类微信相关步骤
一.点击file新建new project并选择Empty Activity
二.
1.在layout中新建top.xml文件编写类微信界面的顶部
代码段
如下
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent">
<TextView
android:id="@+id/textView"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_weight="0"
android:background="@color/black"
android:gravity="center"
android:text="芝士微信"
android:textColor="@color/white"
android:textSize="35sp" />
</LinearLayout>
顶部界面效果如下
2.在layout中新建layout_bottom.xml文件完成编写
代码段如下
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="80dp"
android:baselineAligned="false">
<LinearLayout
android:id="@+id/linearLayout1"
android:lay