Wizard improved

This commit is contained in:
Sergey Solovyev
2013-06-25 00:46:37 +04:00
parent 097840688c
commit 723fd1a461
10 changed files with 179 additions and 156 deletions

View File

@@ -1,56 +1,52 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:a="http://schemas.android.com/apk/res/android"
a:layout_width="match_parent"
a:layout_height="match_parent"
a:orientation="vertical">
a:layout_width="match_parent"
a:layout_height="match_parent"
a:orientation="vertical">
<TextView
a:text="Do you want to use optimized layout for large screens or just big buttons?"
a:layout_height="wrap_content"
a:layout_width="match_parent"/>
<RadioGroup
a:orientation="horizontal"
a:layout_width="match_parent"
a:layout_height="wrap_content"
a:gravity="center_vertical|top">
<LinearLayout a:layout_width="match_parent"
a:layout_height="match_parent"
a:orientation="vertical">
<RadioButton
a:layout_width="0dp"
a:id="@+id/wizard_optimized_radiobutton"
a:layout_weight="1"
a:text="@string/cpp_wizard_layout_optimized"
a:layout_height="wrap_content" />
<RadioGroup a:orientation="horizontal"
a:layout_width="match_parent"
a:layout_height="wrap_content">
<RadioButton
a:layout_width="0dp"
a:id="@+id/wizard_big_buttons_radiobutton"
a:layout_weight="1"
a:text="@string/cpp_wizard_layout_big_buttons"
a:layout_height="wrap_content" />
<RadioButton a:layout_width="0dp"
a:id="@+id/wizard_optimized_radiobutton"
a:layout_weight="1"
a:text="@string/cpp_wizard_layout_optimized"
a:layout_height="wrap_content"/>
</RadioGroup>
<RadioButton a:layout_width="0dp"
a:id="@+id/wizard_big_buttons_radiobutton"
a:layout_weight="1"
a:text="@string/cpp_wizard_layout_big_buttons"
a:layout_height="wrap_content"/>
<LinearLayout
a:layout_width="match_parent"
a:layout_height="wrap_content"
a:orientation="horizontal">
</RadioGroup>
<ImageView
a:layout_width="0dp"
a:layout_weight="1"
a:scaleType="centerInside"
a:layout_height="match_parent"
a:padding="10dp"
a:src="@drawable/tablet_optimized" />
<LinearLayout a:layout_width="match_parent"
a:layout_height="wrap_content"
a:orientation="horizontal">
<ImageView a:layout_width="0dp"
a:layout_weight="1"
a:scaleType="centerInside"
a:layout_height="match_parent"
a:padding="10dp"
a:src="@drawable/tablet_optimized"/>
<ImageView a:layout_width="0dp"
a:layout_weight="1"
a:scaleType="centerInside"
a:layout_height="match_parent"
a:padding="10dp"
a:src="@drawable/tablet_big_buttons"/>
</LinearLayout>
<ImageView
a:layout_width="0dp"
a:layout_weight="1"
a:scaleType="centerInside"
a:layout_height="match_parent"
a:padding="10dp"
a:src="@drawable/tablet_big_buttons" />
</LinearLayout>

View File

@@ -10,9 +10,51 @@
a:layout_height="wrap_content"
a:layout_width="match_parent" />
<Spinner
a:id="@+id/wizard_mode_spinner"
a:layout_height="wrap_content"
a:layout_width="match_parent" />
<LinearLayout
a:layout_width="match_parent"
a:layout_height="match_parent"
a:orientation="vertical">
<RadioGroup
a:orientation="horizontal"
a:layout_width="match_parent"
a:layout_height="wrap_content"
a:gravity="center_vertical|top">
<RadioButton a:layout_width="0dp"
a:id="@+id/wizard_simple_mode_radiobutton"
a:layout_weight="1"
a:text="@string/cpp_wizard_mode_simple"
a:layout_height="wrap_content"/>
<RadioButton a:layout_width="0dp"
a:id="@+id/wizard_engineer_mode_radiobutton"
a:layout_weight="1"
a:text="@string/cpp_wizard_mode_engineer"
a:layout_height="wrap_content"/>
</RadioGroup>
<LinearLayout a:layout_width="match_parent"
a:layout_height="wrap_content"
a:orientation="horizontal">
<TextView
a:layout_width="0dp"
a:layout_weight="1"
a:layout_height="match_parent"
a:text="@string/cpp_wizard_mode_simple_description"
a:padding="10dp"/>
<TextView
a:layout_width="0dp"
a:layout_weight="1"
a:layout_height="match_parent"
a:text="@string/cpp_wizard_mode_engineer_description"
a:padding="10dp"/>
</LinearLayout>
</LinearLayout>
</LinearLayout>

View File

@@ -13,6 +13,8 @@
<TextView
a:id="@+id/wizard_dragbutton_action_textview"
a:layout_marginTop="10dp"
a:textStyle="bold"
a:text="@string/cpp_wizard_dragbutton_action_center"
a:layout_height="wrap_content"
a:layout_width="match_parent" />
@@ -21,6 +23,8 @@
a:layout_margin="30dp"
a:layout_height="100dp"
a:layout_width="100dp"
a:minWidth="100dp"
a:minHeight="100dp"
a:layout_gravity="center"
a:id="@+id/wizard_dragbutton"
a:text="9"