2013-01-07 49 views
0

我有一个base.xml观点:如何在android中扩展视图?

<?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> 

我要创建两个观点:

view1.xml与一个TextView和view2.xml一个按钮(包括 “推” base.xml )。

我该怎么做?

+2

您无法扩展,但可以使用''布局。否则:复制并粘贴 – WarrenFaith

回答