<string name="word_jishibu"> Notepad </string> <string name=" word_accountList "> My account </string> <string Name =" word_myAccount "> myaccount </string> References in the Java code title_tv.settext (getResources().getString(r.string.word_accountList)); 2, custom color resources:  <color name="ssjGrey">#595959</color> <color name="ssjBule">#269ce2</color> <color name="ssjXiaHuaxian">#639fd3</color> ColorBlue= contextCompat.getColor (this, r.color.ssjBule); ColorGrey=ContextCompat.getColor(this,R.color.ssjGrey); 3. Custom layout references in XML: <include layout="@layout/title_layout"></include> 4. Customize drawable as button background <shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="rectangle"> <stroke android:color="#019342" android:width="2dp"></stroke> <corners android:radius="5dp"></corners> <padding android:top="8dp"></padding> <padding android:bottom="8dp"></padding> <padding android:left="8dp"></padding> <padding android:right="8dp"></padding> </shape> Used in XML layout files; android:background="@drawable/bottom_login" 5. <LinearLayout Android :id="@+ ID /ll_wx" style="@style/tab_style"> 6, custom style <style name="tab_style"> <item name="android:gravity">center</item> <item name="android:layout_height">match_parent</item> <item </item> <item name=" Android :layout_weight">1</item> </style> citation:  <LinearLayout style="@style/tab_style">Copy the code