Untitled

mail@pastecode.io avatar
unknown
plain_text
a year ago
6.5 kB
2
Indexable
Never
<?xml version="1.0" encoding="utf-8"?>
<FrameLayout 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:id="@+id/container"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:orientation="vertical"
    android:layout_gravity="bottom"
    app:layout_behavior="android.support.design.widget.BottomSheetBehavior">

    <androidx.constraintlayout.widget.ConstraintLayout
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:layout_gravity="top">

        <TextView
            android:id="@+id/tvTitle"
            android:layout_width="0dp"
            android:layout_height="wrap_content"
            android:layout_marginHorizontal="@dimen/dimen_16dp"
            android:layout_marginTop="@dimen/dimen_16dp"
            android:text="@string/label_filter"
            android:textAppearance="?attr/bodySmallBold"
            app:layout_constraintEnd_toStartOf="@+id/ivClose"
            app:layout_constraintStart_toStartOf="parent"
            app:layout_constraintTop_toTopOf="parent" />

        <ImageView
            android:id="@+id/ivClose"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_marginEnd="@dimen/dimen_16dp"
            android:contentDescription="@string/label_close_button"
            android:src="@drawable/ic_close"
            app:layout_constraintBottom_toBottomOf="@+id/tvTitle"
            app:layout_constraintEnd_toEndOf="parent"
            app:layout_constraintTop_toTopOf="@+id/tvTitle" />

        <View
            android:id="@+id/view"
            android:layout_width="match_parent"
            android:layout_height="2dp"
            android:layout_marginTop="@dimen/dimen_16dp"
            android:background="@drawable/separator_default"
            app:layout_constraintEnd_toEndOf="parent"
            app:layout_constraintStart_toStartOf="parent"
            app:layout_constraintTop_toBottomOf="@+id/tvTitle" />

        <com.telkom.legion.component.viewstate.LgnViewState
            android:id="@+id/msvSubSectors"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            app:errorView="@layout/layout_error_subsector"
            app:layout_constraintTop_toBottomOf="@+id/view"
            app:loadingView="@layout/layout_shimmer_subsectors"
            app:viewState="loading"
            tools:viewState="content">

            <androidx.core.widget.NestedScrollView
                android:layout_width="match_parent"
                android:layout_height="wrap_content">

                <LinearLayout
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content"
                    android:orientation="vertical">

                    <com.telkom.legion.component.checkbox.LgnPrimaryCheckBox
                        android:id="@+id/cbSmartfarming"
                        android:layout_width="match_parent"
                        android:layout_height="wrap_content"
                        android:layout_marginHorizontal="@dimen/dimen_16dp"
                        android:text="@string/label_smartfarming"
                        android:textAppearance="?attr/bodySmallSemiBold" />

                    <com.telkom.legion.component.dividers.LgnDivider
                        android:id="@+id/divSmartfarming"
                        android:layout_width="match_parent"
                        android:layout_height="wrap_content" />

                    <TextView
                        android:id="@+id/tvSubSector"
                        android:layout_width="wrap_content"
                        android:layout_height="wrap_content"
                        android:layout_marginHorizontal="@dimen/dimen_16dp"
                        android:layout_marginTop="@dimen/dimen_8dp"
                        android:layout_marginBottom="@dimen/dimen_16dp"
                        android:text="@string/label_sub_sector"
                        android:textAppearance="?attr/bodySmallSemiBold" />

                    <com.telkom.legion.component.checkbox.LgnPrimaryCheckBox
                        android:id="@+id/cbSelectAll"
                        android:layout_width="match_parent"
                        android:layout_height="wrap_content"
                        android:layout_marginHorizontal="@dimen/dimen_16dp"
                        android:text="@string/label_select_all_subsector"
                        android:textAppearance="?attr/bodySmallRegular"
                        app:layout_constraintBottom_toTopOf="@+id/msvSubSectors"
                        app:layout_constraintStart_toStartOf="parent"
                        app:layout_constraintTop_toBottomOf="@+id/view" />

                    <com.telkom.legion.component.dividers.LgnDivider
                        android:layout_width="match_parent"
                        android:layout_height="wrap_content" />

                    <com.agree.ecosystem.core.utils.widget.sectorpicker.AgrSectorPickerView
                        android:id="@+id/spSector"
                        android:layout_width="match_parent"
                        android:layout_height="wrap_content"
                        android:textAppearance="?attr/bodySmallRegular" />
                </LinearLayout>

            </androidx.core.widget.NestedScrollView>
        </com.telkom.legion.component.viewstate.LgnViewState>
    </androidx.constraintlayout.widget.ConstraintLayout>

    <LinearLayout
        android:id="@+id/btnApplyContainer"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:background="@color/white">

        <com.telkom.legion.component.button.fill.LgnPrimaryFitButton
            android:id="@+id/btnApply"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_margin="@dimen/dimen_16dp"
            android:text="@string/action_apply"
            app:layout_constraintBottom_toBottomOf="parent"
            app:layout_constraintEnd_toEndOf="parent"
            app:layout_constraintStart_toStartOf="parent" />

    </LinearLayout>
</FrameLayout>