在android中选项卡的框架中调用其他布局或xml文件

时间:2011-09-27 04:47:43

标签: android xml layout

我的标签的内部框架我正在调用具有first.xml xml文件的活动。在这里我有两个不同的布局。我还有一个xml文件graph.xml。现在我将我的意图传递给另一个活动,其中我有graph.xml的setcontentview但我现在想要的是在我的first.xml文件中显示这个图。

<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"          
    android:layout_height="fill_parent"
    android:orientation="horizontal"          
    android:layout_width="fill_parent">
    <LinearLayout android:layout_width="fill_parent" android:id="@+id/linearfullview" android:layout_height="400sp" android:background="@drawable/background_full_view" android:layout_alignParentTop="true"/> 

    <LinearLayout android:layout_width="wrap_content" android:layout_height="180sp"
    android:layout_alignParentBottom="true" android:layout_marginTop="20sp">              
        <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"                  
        android:layout_height="wrap_content"                  

        android:layout_width="wrap_content"                  
        android:paddingLeft="2dp"                  
        android:paddingRight="2dp"                  
        android:paddingTop="4dp" 
        android:gravity="bottom"                 
        android:layout_marginTop="30dp">                    
        <com.widget.WheelView 
        android:id="@+id/segment"                  
        android:layout_height="wrap_content"                  
        android:layout_width="100dp"/>                            
    </LinearLayout>

    </LinearLayout> 

        </RelativeLayout> 

我想在linearfullview线性布局中使用graph.xml布局。请建议

0 个答案:

没有答案