aboutsummaryrefslogtreecommitdiff
path: root/about/src/main/res/layout/kau_about_section_main.xml
blob: 3400b349ba4f5c7c18c023b129e1c3eb239c580c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
<?xml version="1.0" encoding="utf-8"?>
<androidx.core.widget.NestedScrollView xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    tools:showIn="@layout/kau_activity_about">

    <androidx.constraintlayout.widget.ConstraintLayout
        android:id="@+id/about_main_container"
        android:layout_width="match_parent"
        android:layout_height="wrap_content">

        <ca.allanwang.kau.ui.views.CutoutView
            android:id="@+id/about_main_cutout"
            android:layout_width="0dp"
            android:layout_height="@dimen/kau_about_header_height"
            android:minHeight="@dimen/kau_about_header_height"
            app:foregroundColor="?android:colorAccent"
            app:heightPercentageToScreen="0.5"
            app:layout_constraintEnd_toEndOf="parent"
            app:layout_constraintStart_toStartOf="parent"
            app:layout_constraintTop_toTopOf="parent" />

        <FrameLayout
            android:id="@+id/about_main_bottom_container"
            android:layout_width="0dp"
            android:layout_height="2000dp"
            android:background="?android:attr/colorBackground"
            app:layout_constraintBottom_toBottomOf="parent"
            app:layout_constraintEnd_toEndOf="parent"
            app:layout_constraintStart_toStartOf="parent"
            app:layout_constraintTop_toBottomOf="@id/about_main_cutout">

            <TextView
                android:id="@+id/about_main_bottom_text"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_gravity="center_horizontal"
                android:layout_margin="@dimen/kau_activity_horizontal_margin" />

        </FrameLayout>

    </androidx.constraintlayout.widget.ConstraintLayout>

</androidx.core.widget.NestedScrollView>