Whatever I try, it stays in the upperleft. I use the next code, what am I doing wrong???
Using xml Syntax Highlighting
- <?xml version="1.0" encoding="utf-8"?>
- <FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
- android:layout_width="fill_parent"
- android:layout_height="fill_parent">
- <com.example.android.lunarlander.LunarView
- android:id="@+id/lunar"
- android:layout_width="fill_parent"
- android:layout_height="fill_parent"/>
- <RelativeLayout
- android:layout_width="fill_parent"
- android:layout_height="fill_parent" >
- <TextView
- android:id="@+id/text"
- android:text="@string/lunar_layout_text_text"
- android:visibility="visible"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_centerInParent="true"
- android:gravity="center_horizontal"
- android:textColor="#000000"
- android:textSize="24sp" android:textStyle="bold"/>
- <EditText
- android:id="@+id/widget29"
- android:layout_width="193px"
- android:layout_height="wrap_content"
- android:text="EditText"
- android:textSize="18sp"
- android:layout_x="8px"
- android:layout_y="373px"
- />
- </RelativeLayout>
- </FrameLayout>
Parsed in 0.004 seconds, using GeSHi 1.0.8.4


