i have two layout on starting.1 framelayout will be visible on whole screen.,on textview click framelaout that contain list should be open from right hand side.,i give the weight to the layout then also it opening on whole screen..not taking weight.i dont know where i am going wrong please help to sort it out.
<LinearLayout xmlns:android="http://ift.tt/nIICcg"
xmlns:tools="http://ift.tt/LrGmb4"
android:id="@+id/ListView_layout"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:weightSum="1" >
<FrameLayout
android:id="@+id/frame"
android:layout_width="wrap_content"
android:layout_height="wrap_content" >
<fragment
android:id="@+id/map"
android:layout_width="match_parent"
android:layout_height="match_parent"
class="com.google.android.gms.maps.MapFragment" >
</fragment>
<TextView
android:id="@+id/getdirection"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="top|right"
android:layout_marginTop="20dp"
android:text="Get Directions"
android:textColor="#032FFE"
android:textSize="20sp" />
</FrameLayout>
<View
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="0.5"
android:alpha="0" />
<FrameLayout
android:id="@+id/rl_ListView2"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_gravity="right"
android:layout_weight="0.5"
android:orientation="vertical" >
<TextView
android:id="@+id/hide"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="20dp"
android:text="Hide"
android:textColor="#032FFE"
android:textSize="20sp" />
<ListView
android:id="@+id/list"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="#E2E2E2" />
</FrameLayout>
</LinearLayout>
No comments:
Post a Comment