开发者

call other layout or xml file in frame of a tab in android

开发者 https://www.devze.com 2023-04-07 15:09 出处:网络
Inside frame of my tab i am calling an activity having first.xml xml file. Inside this i have two different layout. I have one more xml file graph.xml. Right now i am passing my intent to another acti

Inside frame of my tab i am calling an activity having first.xml xml file. Inside this i have two different layout. I have one more xml file graph.xml. Right now i am passing my intent to another activity where i have setcontentview of graph.xml but what i want now is to display this graph inside my first.xml file.

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

        </Rel开发者_如何学CativeLayout> 

I want to have graph.xml layout inside linearfullview linear layout. please suggest

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号