- XML is crazy. It is not showing real position of elements
- <ScrollView>
- <LinarLayout>
- <Button/>
- <RelativeLayout>
- <ImageButton/>
- <ImageButton/>
- <ImageButton/>
- </RelativeLayout>
- </LinarLayout>
- </ScrollView>
- IMG1 IMG2 IMG3
- <?xml version="1.0" encoding="utf-8"?>
- <ScrollView
- xmlns:android="http://schemas.android.com/apk/res/android"
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:background="@drawable/bugbox_wall_port" >
- <LinearLayout
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:orientation="vertical" >
- <Button
- android:id="@+id/writeNewMsg"
- android:layout_margin="10dp"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:text="New" />
- <RelativeLayout
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:gravity="center"
- android:padding="10dp" >
- <ImageButton
- android:id="@+id/spyMsgs"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:background="@drawable/msgspy" />
- <ImageButton
- android:id="@+id/playerMsgs"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_marginLeft="10dp"
- android:layout_marginRight="10dp"
- android:background="@drawable/msgplyr"
- android:layout_toRightOf="@+id/spyMsgs" />
- <ImageButton
- android:id="@+id/allyMsgs"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:background="@drawable/msgally"
- android:layout_toRightOf="@+id/playerMsgs" />
- </RelativeLayout>
- </LinearLayout>
- </ScrollView>
- <?xml version="1.0" encoding="utf-8"?>
- <ScrollView
- xmlns:android="http://schemas.android.com/apk/res/android"
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:background="#ffffff" >
- <LinearLayout
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:orientation="vertical" >
- <Button
- android:id="@+id/writeNewMsg"
- android:layout_margin="10dp"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:text="New" />
- <RelativeLayout
- android:layout_width="wrap_content"
- android:layout_height="50dp"
- android:layout_gravity="center"
- android:padding="10dp" >
- <ImageButton
- android:id="@+id/spyMsgs"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:background="@drawable/icon"/>
- <ImageButton
- android:id="@+id/playerMsgs"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:background="@drawable/icon"
- android:layout_toRightOf="@id/spyMsgs" />
- <ImageButton
- android:id="@+id/allyMsgs"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:background="@drawable/icon"
- android:layout_toRightOf="@id/playerMsgs" />
- </RelativeLayout>
- </LinearLayout>
- </ScrollView>