在<LinearLayout>之间加入
<TextView
android:id="@+id/text_view"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="center"
android:textSize="24sp"
android:textColor="#00ff00"
android:text="wenbenneirong"
/>
从上往下依次的功能是
指定唯一的标识
指定宽度,match_parent,意思就是横向铺满屏幕
指定高度,适应文字的大小
指定对齐方式,中心对其,除此以外还有top,bottom,left,right,center
指定大小
指定颜色
指定文本的内容