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

Untitled

By: a guest on Aug 6th, 2012  |  syntax: None  |  size: 3.68 KB  |  hits: 13  |  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. XML is crazy. It is not showing real position of elements
  2. <ScrollView>
  3.     <LinarLayout>
  4.         <Button/>
  5.         <RelativeLayout>
  6.             <ImageButton/>
  7.             <ImageButton/>
  8.             <ImageButton/>
  9.         </RelativeLayout>
  10.     </LinarLayout>
  11. </ScrollView>
  12.        
  13. IMG1   IMG2   IMG3
  14.        
  15. <?xml version="1.0" encoding="utf-8"?>
  16. <ScrollView
  17.     xmlns:android="http://schemas.android.com/apk/res/android"
  18.     android:layout_width="match_parent"
  19.     android:layout_height="match_parent"
  20.     android:background="@drawable/bugbox_wall_port" >
  21.     <LinearLayout
  22.         android:layout_width="match_parent"
  23.         android:layout_height="wrap_content"
  24.         android:orientation="vertical" >
  25.         <Button
  26.             android:id="@+id/writeNewMsg"
  27.             android:layout_margin="10dp"
  28.             android:layout_width="match_parent"
  29.             android:layout_height="wrap_content"
  30.             android:text="New" />
  31.         <RelativeLayout
  32.             android:layout_width="match_parent"
  33.             android:layout_height="wrap_content"
  34.             android:gravity="center"
  35.             android:padding="10dp" >
  36.             <ImageButton
  37.                 android:id="@+id/spyMsgs"
  38.                 android:layout_width="wrap_content"
  39.                 android:layout_height="wrap_content"
  40.                 android:background="@drawable/msgspy" />
  41.             <ImageButton
  42.                 android:id="@+id/playerMsgs"
  43.                 android:layout_width="wrap_content"
  44.                 android:layout_height="wrap_content"
  45.                 android:layout_marginLeft="10dp"
  46.                 android:layout_marginRight="10dp"
  47.                 android:background="@drawable/msgplyr"
  48.                 android:layout_toRightOf="@+id/spyMsgs" />
  49.             <ImageButton
  50.                 android:id="@+id/allyMsgs"
  51.                 android:layout_width="wrap_content"
  52.                 android:layout_height="wrap_content"
  53.                 android:background="@drawable/msgally"
  54.                 android:layout_toRightOf="@+id/playerMsgs" />
  55.         </RelativeLayout>
  56.     </LinearLayout>
  57. </ScrollView>
  58.        
  59. <?xml version="1.0" encoding="utf-8"?>
  60. <ScrollView
  61.     xmlns:android="http://schemas.android.com/apk/res/android"
  62.     android:layout_width="match_parent"
  63.     android:layout_height="match_parent"
  64.     android:background="#ffffff" >
  65.     <LinearLayout
  66.         android:layout_width="match_parent"
  67.         android:layout_height="wrap_content"
  68.         android:orientation="vertical" >
  69.         <Button
  70.             android:id="@+id/writeNewMsg"
  71.             android:layout_margin="10dp"
  72.             android:layout_width="match_parent"
  73.             android:layout_height="wrap_content"
  74.             android:text="New" />
  75.         <RelativeLayout
  76.             android:layout_width="wrap_content"
  77.             android:layout_height="50dp"
  78.             android:layout_gravity="center"
  79.             android:padding="10dp" >
  80.             <ImageButton
  81.                 android:id="@+id/spyMsgs"
  82.                 android:layout_width="wrap_content"
  83.                 android:layout_height="wrap_content"
  84.                 android:background="@drawable/icon"/>
  85.             <ImageButton
  86.                 android:id="@+id/playerMsgs"
  87.                 android:layout_width="wrap_content"
  88.                 android:layout_height="wrap_content"                
  89.                 android:background="@drawable/icon"
  90.                 android:layout_toRightOf="@id/spyMsgs" />
  91.             <ImageButton
  92.                 android:id="@+id/allyMsgs"
  93.                 android:layout_width="wrap_content"
  94.                 android:layout_height="wrap_content"
  95.                 android:background="@drawable/icon"
  96.                 android:layout_toRightOf="@id/playerMsgs" />
  97.          </RelativeLayout>
  98.     </LinearLayout>
  99. </ScrollView>