diff options
author | cyBerta <cyberta@riseup.net> | 2022-11-12 23:18:12 +0100 |
---|---|---|
committer | cyberta <cyberta@riseup.net> | 2022-11-22 01:48:38 +0100 |
commit | 1a9004432b1733ae30f9cc8ebb85a70af8d93d34 (patch) | |
tree | f9f8ea6a0dfb5aaf2c8dca930abc6492eda7bea9 /app/src/main/res/layout | |
parent | cac2c849e8d7d35bd9c72fc8c9bb8bc322eb24a0 (diff) |
use gradient for motd background, simple button style
Diffstat (limited to 'app/src/main/res/layout')
-rw-r--r-- | app/src/main/res/layout/f_motd.xml | 42 |
1 files changed, 24 insertions, 18 deletions
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" /> |