diff options
| author | Samuel Tardieu <sam@rfc1149.net> | 2013-05-25 14:50:14 +0200 |
|---|---|---|
| committer | Samuel Tardieu <sam@rfc1149.net> | 2013-05-25 14:50:14 +0200 |
| commit | da2451acb8169ae0380341f167f9f45fa1e92f7a (patch) | |
| tree | 7e677c1313f427c3b119ddc25f6b3fa55c0b0550 /main/res/layout | |
| parent | 571186fff41594fc54caae37a67cc00f98841aaf (diff) | |
| download | cgeo-da2451acb8169ae0380341f167f9f45fa1e92f7a.zip cgeo-da2451acb8169ae0380341f167f9f45fa1e92f7a.tar.gz cgeo-da2451acb8169ae0380341f167f9f45fa1e92f7a.tar.bz2 | |
refactoring: use proper relative layout to draw compass
Diffstat (limited to 'main/res/layout')
| -rw-r--r-- | main/res/layout/navigate.xml | 42 |
1 files changed, 24 insertions, 18 deletions
diff --git a/main/res/layout/navigate.xml b/main/res/layout/navigate.xml index 7e76864..9843b2a 100644 --- a/main/res/layout/navigate.xml +++ b/main/res/layout/navigate.xml @@ -1,11 +1,12 @@ <?xml version="1.0" encoding="UTF-8"?> -<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" +<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_parent" android:background="?background_color" android:orientation="vertical" > <LinearLayout + android:id="@+id/info1" android:layout_width="fill_parent" android:layout_height="wrap_content" android:orientation="vertical" > @@ -54,24 +55,9 @@ </RelativeLayout> </LinearLayout> - <view - android:id="@+id/rose" - android:layout_width="fill_parent" - android:layout_height="295dip" - android:layout_centerInParent="true" - android:layout_gravity="center_horizontal" - android:layout_marginBottom="1dip" - android:layout_marginLeft="1dip" - android:layout_marginRight="1dip" - android:layout_marginTop="6dip" - class="cgeo.geocaching.ui.CompassView" - android:gravity="center" - android:keepScreenOn="true" - android:minHeight="289dip" - android:minWidth="289dip" - android:padding="4dip" /> <LinearLayout + android:id="@+id/info2" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_alignParentBottom="true" @@ -108,4 +94,24 @@ </RelativeLayout> </LinearLayout> -</LinearLayout>
\ No newline at end of file + <view + android:id="@+id/rose" + android:layout_width="fill_parent" + android:layout_height="295dip" + android:layout_below="@id/info1" + android:layout_above="@id/info2" + android:layout_centerInParent="true" + android:layout_gravity="center_horizontal" + android:layout_marginBottom="1dip" + android:layout_marginLeft="1dip" + android:layout_marginRight="1dip" + android:layout_marginTop="6dip" + class="cgeo.geocaching.ui.CompassView" + android:gravity="center" + android:keepScreenOn="true" + android:minHeight="289dip" + android:minWidth="289dip" + android:padding="4dip" /> + + +</RelativeLayout>
\ No newline at end of file |
