Files
andors-trail/AndorsTrail/res/layout/startscreen_newgame.xml
Zukero df81e96a08 WARNING: Does not run!
Huge clean-up. Separation between themes and style. Preparatory work for
theme inheritance and alternative themes made by derivation.
Problem: due to a pre-lollipop bug, I still have to remove some color
indirections through attributes, as they are not preperly resolved.
2017-11-17 19:20:35 +01:00

115 lines
4.2 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:gravity="bottom"
android:orientation="vertical" >
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginLeft="2dp"
android:layout_marginRight="2dp"
android:background="?attr/ui_theme_stdframe_bitmap"
android:gravity="bottom|start"
android:orientation="vertical" >
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="start"
android:text="@string/startscreen_selectherosprite" />
<RadioGroup
android:id="@+id/newgame_spritegroup"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal" >
<ToggleButton
android:id="@+id/newgame_sprite0"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_weight="1"
android:checked="true"
android:drawableTop="@drawable/char_hero_large"
android:text=""
android:textSize="0dp" />
<ToggleButton
android:id="@+id/newgame_sprite1"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_weight="1"
android:drawableTop="@drawable/char_hero_maksiu_girl_01_large"
android:text=""
android:textSize="0dp" />
<ToggleButton
android:id="@+id/newgame_sprite2"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_weight="1"
android:drawableTop="@drawable/char_hero_maksiu_boy_01_large"
android:text=""
android:textSize="0dp" />
</RadioGroup>
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginLeft="2dp"
android:layout_marginRight="2dp"
android:background="?attr/ui_theme_stdframe_bitmap"
android:gravity="bottom|start"
android:orientation="vertical" >
<TextView
android:id="@+id/startscreen_currenthero"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="start"
android:text="@string/startscreen_enterheroname" />
<EditText
android:id="@+id/startscreen_enterheroname"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:inputType="textPersonName" />
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="2dp"
android:layout_marginLeft="2dp"
android:layout_marginRight="2dp"
android:background="?attr/ui_theme_stdframe_bitmap"
android:gravity="center_vertical"
android:orientation="horizontal" >
<Button
android:id="@+id/startscreen_newgame_cancel"
android:layout_width="0dip"
android:layout_height="wrap_content"
android:layout_marginBottom="5dp"
android:layout_marginLeft="2dp"
android:layout_marginRight="2dp"
android:layout_marginTop="5dp"
android:layout_weight="1"
android:text="@android:string/cancel" />
<Button
android:id="@+id/startscreen_newgame_start"
android:layout_width="0dip"
android:layout_height="wrap_content"
android:layout_marginBottom="5dp"
android:layout_marginLeft="2dp"
android:layout_marginRight="2dp"
android:layout_marginTop="5dp"
android:layout_weight="1"
android:text="@string/startscreen_newgame_start" />
</LinearLayout>
</LinearLayout>