project_files/Android-build/SDL-android-project/res/layout/main.xml
author Medo <smaxein@googlemail.com>
Mon, 20 Aug 2012 20:16:37 +0200
changeset 7580 c92596feac0d
parent 7444 2e31f114f57e
permissions -rw-r--r--
frontlib: Improved documentation of netconn, unified naming of a callback
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
5304
e29aa9e29f00 Added SDL-android-project, this is the Android/Java part of the application
Xeli
parents:
diff changeset
     1
<?xml version="1.0" encoding="utf-8"?>
7444
2e31f114f57e Hedgeroid: various improvements:
Medo <smaxein@googlemail.com>
parents: 7328
diff changeset
     2
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
5304
e29aa9e29f00 Added SDL-android-project, this is the Android/Java part of the application
Xeli
parents:
diff changeset
     3
    android:layout_width="fill_parent"
7444
2e31f114f57e Hedgeroid: various improvements:
Medo <smaxein@googlemail.com>
parents: 7328
diff changeset
     4
    android:layout_height="fill_parent" >
2e31f114f57e Hedgeroid: various improvements:
Medo <smaxein@googlemail.com>
parents: 7328
diff changeset
     5
2e31f114f57e Hedgeroid: various improvements:
Medo <smaxein@googlemail.com>
parents: 7328
diff changeset
     6
    <include layout="@layout/background" />
2e31f114f57e Hedgeroid: various improvements:
Medo <smaxein@googlemail.com>
parents: 7328
diff changeset
     7
2e31f114f57e Hedgeroid: various improvements:
Medo <smaxein@googlemail.com>
parents: 7328
diff changeset
     8
    <RelativeLayout
2e31f114f57e Hedgeroid: various improvements:
Medo <smaxein@googlemail.com>
parents: 7328
diff changeset
     9
        android:layout_width="fill_parent"
2e31f114f57e Hedgeroid: various improvements:
Medo <smaxein@googlemail.com>
parents: 7328
diff changeset
    10
        android:layout_height="fill_parent" >
2e31f114f57e Hedgeroid: various improvements:
Medo <smaxein@googlemail.com>
parents: 7328
diff changeset
    11
2e31f114f57e Hedgeroid: various improvements:
Medo <smaxein@googlemail.com>
parents: 7328
diff changeset
    12
        <View
2e31f114f57e Hedgeroid: various improvements:
Medo <smaxein@googlemail.com>
parents: 7328
diff changeset
    13
            android:id="@+id/placeholder"
2e31f114f57e Hedgeroid: various improvements:
Medo <smaxein@googlemail.com>
parents: 7328
diff changeset
    14
            android:layout_width="0dp"
2e31f114f57e Hedgeroid: various improvements:
Medo <smaxein@googlemail.com>
parents: 7328
diff changeset
    15
            android:layout_height="0dp"
2e31f114f57e Hedgeroid: various improvements:
Medo <smaxein@googlemail.com>
parents: 7328
diff changeset
    16
            android:layout_centerInParent="true" />
2e31f114f57e Hedgeroid: various improvements:
Medo <smaxein@googlemail.com>
parents: 7328
diff changeset
    17
2e31f114f57e Hedgeroid: various improvements:
Medo <smaxein@googlemail.com>
parents: 7328
diff changeset
    18
        <FrameLayout
2e31f114f57e Hedgeroid: various improvements:
Medo <smaxein@googlemail.com>
parents: 7328
diff changeset
    19
            android:id="@+id/frameLayout1"
2e31f114f57e Hedgeroid: various improvements:
Medo <smaxein@googlemail.com>
parents: 7328
diff changeset
    20
            android:layout_width="wrap_content"
2e31f114f57e Hedgeroid: various improvements:
Medo <smaxein@googlemail.com>
parents: 7328
diff changeset
    21
            android:layout_height="wrap_content"
2e31f114f57e Hedgeroid: various improvements:
Medo <smaxein@googlemail.com>
parents: 7328
diff changeset
    22
            android:layout_alignParentBottom="true"
2e31f114f57e Hedgeroid: various improvements:
Medo <smaxein@googlemail.com>
parents: 7328
diff changeset
    23
            android:layout_alignParentLeft="true"
2e31f114f57e Hedgeroid: various improvements:
Medo <smaxein@googlemail.com>
parents: 7328
diff changeset
    24
            android:layout_alignParentTop="true"
2e31f114f57e Hedgeroid: various improvements:
Medo <smaxein@googlemail.com>
parents: 7328
diff changeset
    25
            android:layout_toLeftOf="@id/placeholder" >
2e31f114f57e Hedgeroid: various improvements:
Medo <smaxein@googlemail.com>
parents: 7328
diff changeset
    26
2e31f114f57e Hedgeroid: various improvements:
Medo <smaxein@googlemail.com>
parents: 7328
diff changeset
    27
            <Button
2e31f114f57e Hedgeroid: various improvements:
Medo <smaxein@googlemail.com>
parents: 7328
diff changeset
    28
                android:id="@+id/startGame"
2e31f114f57e Hedgeroid: various improvements:
Medo <smaxein@googlemail.com>
parents: 7328
diff changeset
    29
                android:layout_width="wrap_content"
2e31f114f57e Hedgeroid: various improvements:
Medo <smaxein@googlemail.com>
parents: 7328
diff changeset
    30
                android:layout_height="wrap_content"
2e31f114f57e Hedgeroid: various improvements:
Medo <smaxein@googlemail.com>
parents: 7328
diff changeset
    31
                android:layout_gravity="center"
2e31f114f57e Hedgeroid: various improvements:
Medo <smaxein@googlemail.com>
parents: 7328
diff changeset
    32
                android:drawableTop="@drawable/button_local_play"
2e31f114f57e Hedgeroid: various improvements:
Medo <smaxein@googlemail.com>
parents: 7328
diff changeset
    33
                android:text="@string/main_button_localplay" />
2e31f114f57e Hedgeroid: various improvements:
Medo <smaxein@googlemail.com>
parents: 7328
diff changeset
    34
        </FrameLayout>
2e31f114f57e Hedgeroid: various improvements:
Medo <smaxein@googlemail.com>
parents: 7328
diff changeset
    35
2e31f114f57e Hedgeroid: various improvements:
Medo <smaxein@googlemail.com>
parents: 7328
diff changeset
    36
        <FrameLayout
2e31f114f57e Hedgeroid: various improvements:
Medo <smaxein@googlemail.com>
parents: 7328
diff changeset
    37
            android:layout_width="wrap_content"
2e31f114f57e Hedgeroid: various improvements:
Medo <smaxein@googlemail.com>
parents: 7328
diff changeset
    38
            android:layout_height="wrap_content"
2e31f114f57e Hedgeroid: various improvements:
Medo <smaxein@googlemail.com>
parents: 7328
diff changeset
    39
            android:layout_alignParentBottom="true"
2e31f114f57e Hedgeroid: various improvements:
Medo <smaxein@googlemail.com>
parents: 7328
diff changeset
    40
            android:layout_alignParentRight="true"
2e31f114f57e Hedgeroid: various improvements:
Medo <smaxein@googlemail.com>
parents: 7328
diff changeset
    41
            android:layout_alignParentTop="true"
2e31f114f57e Hedgeroid: various improvements:
Medo <smaxein@googlemail.com>
parents: 7328
diff changeset
    42
            android:layout_toRightOf="@id/placeholder" >
2e31f114f57e Hedgeroid: various improvements:
Medo <smaxein@googlemail.com>
parents: 7328
diff changeset
    43
2e31f114f57e Hedgeroid: various improvements:
Medo <smaxein@googlemail.com>
parents: 7328
diff changeset
    44
            <Button
2e31f114f57e Hedgeroid: various improvements:
Medo <smaxein@googlemail.com>
parents: 7328
diff changeset
    45
                android:id="@+id/joinLobby"
2e31f114f57e Hedgeroid: various improvements:
Medo <smaxein@googlemail.com>
parents: 7328
diff changeset
    46
                android:layout_width="wrap_content"
2e31f114f57e Hedgeroid: various improvements:
Medo <smaxein@googlemail.com>
parents: 7328
diff changeset
    47
                android:layout_height="wrap_content"
2e31f114f57e Hedgeroid: various improvements:
Medo <smaxein@googlemail.com>
parents: 7328
diff changeset
    48
                android:layout_gravity="center"
2e31f114f57e Hedgeroid: various improvements:
Medo <smaxein@googlemail.com>
parents: 7328
diff changeset
    49
                android:drawableTop="@drawable/button_network_play"
2e31f114f57e Hedgeroid: various improvements:
Medo <smaxein@googlemail.com>
parents: 7328
diff changeset
    50
                android:text="@string/main_button_netplay" />
2e31f114f57e Hedgeroid: various improvements:
Medo <smaxein@googlemail.com>
parents: 7328
diff changeset
    51
        </FrameLayout>
2e31f114f57e Hedgeroid: various improvements:
Medo <smaxein@googlemail.com>
parents: 7328
diff changeset
    52
    </RelativeLayout>
2e31f114f57e Hedgeroid: various improvements:
Medo <smaxein@googlemail.com>
parents: 7328
diff changeset
    53
6602
9bd4985120b3 background now properly resizes on tablets
Xeli
parents: 6588
diff changeset
    54
</FrameLayout>