diff options
Diffstat (limited to 'library/src/main/res/layout/fragment_flow.xml')
-rw-r--r-- | library/src/main/res/layout/fragment_flow.xml | 130 |
1 files changed, 130 insertions, 0 deletions
diff --git a/library/src/main/res/layout/fragment_flow.xml b/library/src/main/res/layout/fragment_flow.xml new file mode 100644 index 0000000..98f6fba --- /dev/null +++ b/library/src/main/res/layout/fragment_flow.xml @@ -0,0 +1,130 @@ +<?xml version="1.0" encoding="utf-8"?> +<androidx.constraintlayout.widget.ConstraintLayout + xmlns:android="http://schemas.android.com/apk/res/android" + xmlns:tools="http://schemas.android.com/tools" + xmlns:app="http://schemas.android.com/apk/res-auto" + android:orientation="vertical" + android:layout_width="match_parent" + android:layout_height="match_parent"> + + <androidx.constraintlayout.widget.ConstraintLayout + android:id="@id/flow_host_header" + app:layout_constraintTop_toTopOf="parent" + app:layout_constraintStart_toStartOf="parent" + app:layout_constraintEnd_toEndOf="parent" + app:layout_constraintLeft_toLeftOf="parent" + app:layout_constraintRight_toRightOf="parent" + android:layout_width="match_parent" + android:layout_height="0dp"> + <!-- TODO: firstBaselineToTopHeight compat --> + <androidx.constraintlayout.widget.ConstraintLayout + android:layout_width="0dp" + android:layout_height="wrap_content" + app:layout_constraintTop_toTopOf="parent" + app:layout_constraintStart_toStartOf="parent" + app:layout_constraintEnd_toEndOf="parent"> + <ProgressBar + android:id="@+id/flow_header_progressbar" + android:layout_width="0dp" + android:layout_height="wrap_content" + app:layout_constraintStart_toStartOf="parent" + app:layout_constraintTop_toTopOf="parent" + app:layout_constraintEnd_toEndOf="parent" + app:layout_constraintBottom_toTopOf="@id/flow_header_progressbar_guideline" + android:indeterminate="true" + android:paddingTop="-4dp" + style="?android:attr/progressBarStyleHorizontal"/> + + <androidx.constraintlayout.widget.Guideline + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:id="@id/flow_header_progressbar_guideline" + android:orientation="horizontal" + app:layout_constraintGuide_begin="2dp" /> + </androidx.constraintlayout.widget.ConstraintLayout> + + <TextView + android:id="@id/flow_header_title" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_marginTop="64dp" + android:textSize="24sp" + android:textColor="?android:attr/textColorPrimary" + android:layout_gravity="center_horizontal" + android:firstBaselineToTopHeight="32dp" + app:layout_constraintTop_toTopOf="parent" + app:layout_constraintStart_toStartOf="parent" + app:layout_constraintLeft_toLeftOf="parent" + app:layout_constraintEnd_toEndOf="parent" + app:layout_constraintRight_toRightOf="parent" + android:textAppearance="?android:attr/textAppearanceLarge" + tools:text="Title" /> + + <TextView + android:id="@id/flow_header_subtitle" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_marginTop="8dp" + android:textSize="16sp" + android:textColor="?android:attr/textColorPrimary" + android:layout_gravity="center_horizontal" + android:firstBaselineToTopHeight="24dp" + android:textScaleX="1.1" + app:layout_constraintTop_toBottomOf="@id/flow_header_title" + app:layout_constraintStart_toStartOf="parent" + app:layout_constraintLeft_toLeftOf="parent" + app:layout_constraintEnd_toEndOf="parent" + app:layout_constraintRight_toRightOf="parent" + android:textAppearance="?android:attr/textAppearanceMedium" + tools:text="Subtitle" /> + </androidx.constraintlayout.widget.ConstraintLayout> + + <moe.yuuta.flow.widgets.FlowPager + android:id="@id/flow_host_pager" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_marginTop="44dp" + app:layout_constraintTop_toBottomOf="@id/flow_host_header" + app:layout_constraintStart_toStartOf="parent" + app:layout_constraintLeft_toLeftOf="parent" + app:layout_constraintEnd_toEndOf="parent" + app:layout_constraintRight_toRightOf="parent"/> + + <androidx.constraintlayout.widget.ConstraintLayout + android:id="@id/flow_host_nav" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_marginTop="38dp" + android:layout_marginStart="44dp" + android:layout_marginLeft="44dp" + android:layout_marginEnd="44dp" + android:layout_marginRight="44dp" + app:layout_constraintTop_toBottomOf="@id/flow_host_pager" + app:layout_constraintStart_toStartOf="parent" + app:layout_constraintLeft_toLeftOf="parent" + app:layout_constraintEnd_toEndOf="parent" + app:layout_constraintRight_toRightOf="parent" + style="?android:attr/buttonBarStyle"> + <Button + android:id="@id/flow_nav_left_button" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + app:layout_constraintStart_toStartOf="parent" + app:layout_constraintTop_toTopOf="parent" + app:layout_constraintBottom_toBottomOf="parent" + app:layout_constraintLeft_toLeftOf="parent" + tools:text="Back" + style="?android:attr/buttonBarButtonStyle"/> + + <Button + android:id="@id/flow_nav_right_button" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + app:layout_constraintRight_toRightOf="parent" + app:layout_constraintTop_toTopOf="parent" + app:layout_constraintBottom_toBottomOf="parent" + app:layout_constraintEnd_toEndOf="parent" + tools:text="Next" + style="?attr/positiveButtonStyle" /> + </androidx.constraintlayout.widget.ConstraintLayout> +</androidx.constraintlayout.widget.ConstraintLayout>
\ No newline at end of file |