Wizard refactor: beginning

This commit is contained in:
serso
2015-01-28 22:46:39 +01:00
parent 070d0a12d1
commit 099d330f9d
28 changed files with 1217 additions and 319 deletions

View File

@@ -0,0 +1,22 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:my="http://schemas.android.com/apk/res-auto"
style="@style/MaterialActivity"
android:orientation="vertical">
<android.support.v4.view.ViewPager
android:id="@+id/pager"
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="1" />
<com.viewpagerindicator.CirclePageIndicator
android:layout_marginTop="10dp"
android:layout_marginBottom="10dp"
android:id="@+id/pager_indicator"
android:layout_height="wrap_content"
android:layout_width="match_parent"
my:fillColor="@color/cpp_metro_blue"
my:radius="5dp" />
</LinearLayout>

View File

@@ -22,9 +22,13 @@
~ Site: http://se.solovyev.org
-->
<TextView
xmlns:a="http://schemas.android.com/apk/res/android"
a:layout_width="match_parent"
a:layout_height="match_parent"
a:text="@string/c_first_start_text"
/>
<TextView xmlns:a="http://schemas.android.com/apk/res/android"
a:drawableTop="@drawable/icon"
a:drawablePadding="5dp"
a:layout_width="match_parent"
a:layout_height="wrap_content"
a:gravity="center"
a:layout_gravity="center"
a:textColor="@color/material_text"
a:textAppearance="@android:style/TextAppearance.Medium"
a:text="@string/c_first_start_text" />

View File

@@ -0,0 +1,18 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:a="http://schemas.android.com/apk/res/android"
style="@style/WizardFragment"
a:orientation="vertical">
<ScrollView
a:id="@+id/wizard_content"
a:layout_width="match_parent"
a:layout_height="0dp"
a:layout_weight="1"
a:fillViewport="true"
a:layout_marginBottom="@dimen/control_margin"
a:layout_marginTop="@dimen/control_margin" />
<include layout="@layout/fragment_wizard_buttons" />
</LinearLayout>

View File

@@ -0,0 +1,21 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
style="@style/WizardButtons"
xmlns:a="http://schemas.android.com/apk/res/android"
a:layout_gravity="center_horizontal|bottom"
a:gravity="center">
<Button
a:id="@+id/wizard_prev"
a:layout_width="0dp"
a:layout_height="wrap_content"
a:layout_weight="1" />
<Button
a:id="@+id/wizard_next"
a:layout_width="0dp"
a:layout_height="wrap_content"
a:layout_weight="1" />
</LinearLayout>