Advertisement
Guest User

RelativeLayoutStackOverflow

a guest
Feb 15th, 2012
296
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 1.16 KB | None | 0 0
  1.  
  2. <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3.    android:layout_width="match_parent"
  4.    android:layout_height="match_parent"
  5.    android:orientation="vertical" >
  6.  
  7.     <TextView
  8.      android:id="@+id/btext"
  9.    android:layout_width="wrap_content"
  10.    android:layout_height="wrap_content"
  11.    android:layout_alignParentRight="true"
  12.    android:layout_alignParentTop="true"
  13.    android:singleLine="true"
  14.    android:text = "BB Looooooooooooooooooooooong Text"/>
  15.    
  16.    <TextView
  17.     android:id="@+id/aonetext"
  18.     android:layout_width="wrap_content"
  19.    android:layout_height="wrap_content"
  20.    android:layout_alignParentLeft="true"
  21.    android:layout_toLeftOf="@id/btext"
  22.    android:layout_alignParentTop="true"
  23.     android:text = "A 1 also a bit of Text"/>
  24.    
  25.    
  26.             <TextView
  27.        android:id="@+id/atwotext"
  28.            android:layout_width="wrap_content"
  29.    android:layout_height="wrap_content"
  30.    android:layout_below="@id/aonetext"
  31.    android:layout_alignRight="@id/aonetext"
  32.    android:layout_alignLeft="@id/aonetext"
  33.    android:text = "A 2 also a bit of Text"/>
  34.    
  35.    
  36.  
  37. </RelativeLayout>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement