Advertisement
syedrakib

getting width & height dynamically - layout file

Jan 31st, 2012
6,071
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 0.74 KB | None | 0 0
  1. <!--
  2. ################## start of myLayout.XML ################
  3. -->
  4.  
  5. <?xml version="1.0" encoding="utf-8"?>
  6. <LinearLayout
  7.     xmlns:android="http://schemas.android.com/apk/res/android"
  8.     android:layout_width="fill_parent"
  9.     android:layout_height="fill_parent"
  10.     android:orientation="horizontal">
  11.     <FrameLayout
  12.         android:id="@+id/fLayout1"
  13.         android:layout_width="fill_parent"
  14.         android:layout_height="fill_parent"
  15.         android:layout_weight="1"
  16.         android:background="#0f0"
  17.     />
  18.     <FrameLayout
  19.         android:id="@+id/fLayout2"
  20.         android:layout_width="fill_parent"
  21.         android:layout_height="fill_parent"
  22.         android:layout_weight="1"
  23.         android:background="#00f"
  24.     />
  25. </LinearLayout>
  26.  
  27. <!--
  28. ################## end of myLayout.XML ################
  29. -->
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement