Here's the UI i'm trying to build :
-----------------
| A textview | //TextView
-----------------
------------- -------------
| Button1 | | Button2 | //2 Buttons
------------- -------------
And here's what I did in my layout file :
Using xml Syntax Highlighting
- <?xml version="1.0" encoding="utf-8"?>
- <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
- android:orientation="vertical"
- android:layout_width="fill_parent"
- android:layout_height="fill_parent">
- <TextView id="@+id/MyTV"
- android:layout_width="fill_parent"
- android:layout_height="wrap_content"
- android:text="Hello World, App" />
- <Button id="@+id/check_AppDB"
- android:text="@string/checkAppDB"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_alignParentRight="true"
- android:layout_marginRight="5px"
- android:layout_below="@id/MyTV" />
- <Button id="@+id/check_LogDB"
- android:text="@string/checkLogDB"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_toRight="@id/check_AppDB"
- android:layout_alignTop="@id/check_AppDB" />
- </LinearLayout>
Parsed in 0.003 seconds, using GeSHi 1.0.8.4
But I don't konw why here's the result on the emulator :
-----------------
| A textview | //TextView
-----------------
-------------
| Button1 |
-------------
-------------
| Button2 |
-------------
I don't what i forgot but I didn't manage to display my 2 buttons on the same "line"
Does somebody see what to do?
Thx






