如图样式,
页面布局
<?xml version="1.0" encoding="utf-8"?>
<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"
tools:context=".ManagerActivity">
<com.example.library.TitleLayout
android:id="@+id/title"
android:layout_width="match_parent"
android:layout_height="wrap_content" />
<LinearLayout
android:layout_width="match_parent"
android:layout_height="38dp"
android:gravity="center"
android:orientation="horizontal">
<TextView
android:id="@+id/tv1"
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="1"
android:text="添加图书"
android:textSize="14sp"
android:textColor="#B9B9B9"
android:gravity="center"/>
<TextView
android:id="@+id/tv2"
android:layout_width="0dp"
android