base.xml視圖:
<?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="horizontal" >
<TextView
android:id="@+id/shown_path"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text=" Test" />
</LinearLayout>
我想創建兩個新視圖:
帶有TextView的view1.xml和帶有Button的view2.xml(兩個都擴展於base.xml)
只能include,不能extend