diff options
Diffstat (limited to 'app/src/main')
-rw-r--r-- | app/src/main/res/drawable/background_motd.xml | 9 | ||||
-rw-r--r-- | app/src/main/res/layout/f_motd.xml | 42 | ||||
-rw-r--r-- | app/src/main/res/values/colors.xml | 1 |
3 files changed, 34 insertions, 18 deletions
diff --git a/app/src/main/res/drawable/background_motd.xml b/app/src/main/res/drawable/background_motd.xml new file mode 100644 index 00000000..519e0233 --- /dev/null +++ b/app/src/main/res/drawable/background_motd.xml @@ -0,0 +1,9 @@ +<?xml version="1.0" encoding="utf-8"?> +<shape xmlns:android="http://schemas.android.com/apk/res/android" + android:shape="rectangle" + > + <gradient android:startColor="@color/black_high_transparent" + android:endColor="@color/white_transparent" + android:angle="90" + /> +</shape>
\ No newline at end of file diff --git a/app/src/main/res/layout/f_motd.xml b/app/src/main/res/layout/f_motd.xml index 3cfe7dfe..3202e95b 100644 --- a/app/src/main/res/layout/f_motd.xml +++ b/app/src/main/res/layout/f_motd.xml @@ -9,25 +9,12 @@ android:fitsSystemWindows="true"> <androidx.constraintlayout.widget.Guideline - android:id="@+id/guideline_left" - android:layout_width="wrap_content" - android:layout_height="wrap_content" - android:orientation="vertical" - app:layout_constraintGuide_percent="0.1" /> - - <androidx.constraintlayout.widget.Guideline - android:id="@+id/guideline_right" - android:layout_width="wrap_content" - android:layout_height="wrap_content" - android:orientation="vertical" - app:layout_constraintGuide_percent="0.9" /> - - <androidx.constraintlayout.widget.Guideline android:id="@+id/guideline_bottom" android:layout_width="wrap_content" android:layout_height="wrap_content" android:orientation="horizontal" - app:layout_constraintGuide_percent="0.85" /> + app:layout_constraintBottom_toTopOf="@+id/next_btn" + /> <!-- The primary full-screen view. This can be replaced with whatever view is needed to present your content, e.g. VideoView, SurfaceView, @@ -37,10 +24,11 @@ android:layout_height="0dp" app:layout_constraintTop_toTopOf="parent" app:layout_constraintBottom_toBottomOf="@id/guideline_bottom" - app:layout_constraintLeft_toLeftOf="@+id/guideline_left" - app:layout_constraintRight_toRightOf="@+id/guideline_right" + app:layout_constraintLeft_toLeftOf="parent" + app:layout_constraintRight_toRightOf="parent" android:clipChildren="true" android:fillViewport="true" + android:background="@drawable/background_motd" > <androidx.constraintlayout.widget.ConstraintLayout android:layout_width="match_parent" @@ -49,6 +37,21 @@ android:orientation="vertical" > + + <androidx.constraintlayout.widget.Guideline + android:id="@+id/guideline_sv_left" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:orientation="vertical" + app:layout_constraintGuide_percent="0.15" /> + + <androidx.constraintlayout.widget.Guideline + android:id="@+id/guideline_sv_right" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:orientation="vertical" + app:layout_constraintGuide_percent="0.85" /> + <androidx.constraintlayout.widget.Guideline android:id="@+id/guideline_sv_top" android:layout_width="wrap_content" @@ -88,8 +91,10 @@ /> <androidx.appcompat.widget.AppCompatTextView android:id="@+id/motd_content" + app:layout_constraintLeft_toLeftOf="@id/guideline_sv_left" + app:layout_constraintRight_toRightOf="@+id/guideline_sv_right" app:layout_constraintTop_toBottomOf="@+id/guideline_sv_center" - android:layout_width="match_parent" + android:layout_width="0dp" android:layout_height="wrap_content" android:layout_marginVertical="@dimen/standard_margin" android:gravity="center_horizontal" @@ -110,6 +115,7 @@ android:layout_height="80dp" android:layout_alignParentBottom="true" android:src="@drawable/ic_arrow_right" + android:background="?attr/selectableItemBackground" android:text="next" /> diff --git a/app/src/main/res/values/colors.xml b/app/src/main/res/values/colors.xml index 792db1ee..40b51436 100644 --- a/app/src/main/res/values/colors.xml +++ b/app/src/main/res/values/colors.xml @@ -35,6 +35,7 @@ <color name="white">#ffffff</color> <color name="white_transparent">#20ffffff</color> <color name="black_transparent">#20000000</color> + <color name="black_high_transparent">#05000000</color> <color name="colorActionBarTitleFont">@color/white</color> <color name="colorActionBarSubtitleFont">@color/black800</color> |