Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Aug 6th, 2012  |  syntax: None  |  size: 0.90 KB  |  hits: 15  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. 2 RelativeLayouts in one layout
  2. <?xml version="1.0" encoding="utf-8"?>
  3. <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  4.     android:layout_width="fill_parent"
  5.     android:layout_height="fill_parent"
  6.     android:orientation="horizontal" >
  7.  
  8.     <RelativeLayout
  9.         android:layout_width="match_parent"
  10.         android:layout_height="match_parent"
  11.         android:layout_weight="1" >
  12.  
  13.         <Button
  14.             android:layout_width="match_parent"
  15.             android:layout_height="wrap_content"
  16.             android:text="TEST1" />
  17.     </RelativeLayout>
  18.  
  19.     <RelativeLayout
  20.         android:layout_width="match_parent"
  21.         android:layout_height="match_parent"
  22.         android:layout_weight="1" >
  23.  
  24.         <Button
  25.             android:layout_width="match_parent"
  26.             android:layout_height="wrap_content"
  27.             android:text="TEST2" />
  28.     </RelativeLayout>
  29.  
  30. </LinearLayout>