Wizard refactor: beginning
This commit is contained in:
22
android-app/src/main/res/layout/cpp_activity_wizard.xml
Normal file
22
android-app/src/main/res/layout/cpp_activity_wizard.xml
Normal 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>
|
@@ -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" />
|
||||
|
18
android-app/src/main/res/layout/fragment_wizard.xml
Normal file
18
android-app/src/main/res/layout/fragment_wizard.xml
Normal 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>
|
21
android-app/src/main/res/layout/fragment_wizard_buttons.xml
Normal file
21
android-app/src/main/res/layout/fragment_wizard_buttons.xml
Normal 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>
|
Reference in New Issue
Block a user