how to make fragments movable in runtime

maddoggzzz

New Member
hey guys i trying to make one of the fragment movable during runtime so that i can work on other fragments by keeping aside.following is my main.xml\[code\]<?xml version="1.0" encoding="utf-8"?><LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_parent" >\[/code\]//this fragment needs to be movable
\[code\] <LinearLayout android:layout_width="wrap_content" android:layout_height="match_parent" android:layout_weight="0.95" android:orientation="vertical" > <fragment android:id="@+id/fragment2" android:name="com.harshal.fragments.Fragment2" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_weight="11.02" > <!-- Preview: layout=@layout/fragment2 --> </fragment> <fragment android:id="@+id/fragment3" android:name="com.harshal.fragments.Fragment3" android:layout_width="fill_parent" android:layout_height="373dp" android:layout_weight="1" > <!-- Preview: layout=@layout/mainchart --> </fragment> </LinearLayout></LinearLayout>\[/code\]
 
Back
Top