![](https://img-blog.csdn.net/20171103100316239?watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQvTG9naXRlY2gxMg==/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70/gravity/Center)
标题布局
<?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="52dp" android:background="#ed4255"> <TextView android:id="@+id/title" android:layout_width="match_parent" android:layout_height="match_parent" android:ellipsize="marquee" android:gravity="center_horizontal|center" android:text="标题" android:textColor=