Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?xml version="1.0" encoding="utf-8"?>
- <androidx.coordinatorlayout.widget.CoordinatorLayout 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/mainContainer"
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:background="@color/background_contest_compilation"
- android:focusable="true"
- android:focusableInTouchMode="true">
- <com.google.android.material.appbar.AppBarLayout
- android:id="@+id/appbar"
- style="@style/WannaHolidayTheme.AppBarOverlay.Tender"
- android:layout_width="match_parent"
- android:layout_height="wrap_content">
- <androidx.appcompat.widget.Toolbar
- android:id="@+id/toolbar"
- android:layout_width="match_parent"
- android:layout_height="?attr/actionBarSize"
- app:navigationIcon="@drawable/ic_compilation_close_reviews"
- app:title="@string/compilation_reviews_fragment_title"
- app:titleTextColor="@color/white" />
- </com.google.android.material.appbar.AppBarLayout>
- <androidx.recyclerview.widget.RecyclerView
- android:id="@+id/recyclerView"
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:layout_marginBottom="40dp"
- app:layoutManager="androidx.recyclerview.widget.LinearLayoutManager"
- app:layout_behavior="@string/appbar_scrolling_view_behavior" />
- <LinearLayout
- android:id="@+id/emptyContainer"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_gravity="center_horizontal"
- android:orientation="vertical"
- android:paddingStart="16dp"
- android:paddingLeft="16dp"
- android:paddingEnd="16dp"
- android:paddingRight="16dp"
- android:visibility="gone"
- app:layout_behavior="@string/appbar_scrolling_view_behavior"
- tools:visibility="visible">
- <androidx.appcompat.widget.AppCompatImageView
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_gravity="center_horizontal"
- app:srcCompat="@drawable/ic_compilation_message"
- tools:ignore="ContentDescription" />
- <TextView
- android:id="@+id/emptyTextView"
- style="@style/WannaHolidayTheme.Body2TextView"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_gravity="center"
- android:layout_marginTop="16dp"
- android:gravity="center"
- android:text="@string/user_service_comment_empty"
- android:textColor="@color/text_secondary_light" />
- </LinearLayout>
- <com.google.android.material.bottomappbar.BottomAppBar
- android:id="@+id/bottomAppBar"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- app:layout_anchor="@id/bottomSheet" />
- <androidx.constraintlayout.widget.ConstraintLayout
- android:id="@+id/bottomSheet"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:background="@color/white"
- app:behavior_peekHeight="40dp"
- app:layout_behavior="com.google.android.material.bottomsheet.BottomSheetBehavior">
- <androidx.constraintlayout.utils.widget.ImageFilterView
- android:id="@+id/openCloseImageView"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_gravity="center_vertical"
- android:layout_marginStart="16dp"
- android:layout_marginTop="8dp"
- android:background="?attr/selectableItemBackgroundBorderless"
- android:contentDescription="@null"
- app:altSrc="@drawable/ic_review_close"
- app:crossfade="0"
- app:layout_constraintStart_toStartOf="parent"
- app:layout_constraintTop_toTopOf="parent"
- app:overlay="false"
- app:srcCompat="@drawable/ic_review_open" />
- <com.google.android.material.textview.MaterialTextView
- android:id="@+id/yourReviewMaterialTextView"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_gravity="center_vertical"
- android:layout_marginStart="16dp"
- android:layout_marginTop="8dp"
- android:text="@string/compilation_reviews_fragment_review_title"
- android:textColor="@color/accent"
- app:layout_constraintBottom_toBottomOf="@+id/openCloseImageView"
- app:layout_constraintStart_toEndOf="@+id/openCloseImageView"
- app:layout_constraintTop_toTopOf="parent" />
- <com.google.android.material.textfield.TextInputLayout
- android:id="@+id/reviewTextInputLayout"
- style="@style/Widget.MaterialComponents.TextInputLayout.FilledBox"
- android:layout_width="0dp"
- android:layout_height="106dp"
- android:layout_marginStart="16dp"
- android:layout_marginTop="16dp"
- android:layout_marginEnd="16dp"
- android:layout_marginBottom="16dp"
- app:layout_constraintBottom_toBottomOf="parent"
- app:layout_constraintEnd_toStartOf="@+id/deleteImageButton"
- app:layout_constraintStart_toStartOf="parent"
- app:layout_constraintTop_toBottomOf="@+id/yourReviewMaterialTextView">
- <com.google.android.material.textfield.TextInputEditText
- android:id="@+id/reviewTextInputEditText"
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:background="@color/background_review_edit_text"
- android:hint="@string/compilation_reviews_fragment_review_hint"
- android:inputType="textMultiLine|textLongMessage|textCapSentences|textAutoCorrect" />
- </com.google.android.material.textfield.TextInputLayout>
- <ImageButton
- android:id="@+id/sendImageButton"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_marginEnd="16dp"
- android:background="?attr/selectableItemBackgroundBorderless"
- android:contentDescription="@null"
- android:src="@drawable/ic_review_send"
- android:tint="@color/sel_button_reviews"
- app:layout_constraintEnd_toEndOf="parent"
- app:layout_constraintTop_toTopOf="@+id/reviewTextInputLayout" />
- <ProgressBar
- android:id="@+id/reviewSendProgressIndicator"
- android:layout_width="24dp"
- android:layout_height="24dp"
- android:layout_marginEnd="16dp"
- android:background="?attr/selectableItemBackgroundBorderless"
- android:contentDescription="@null"
- android:src="@drawable/ic_review_send"
- android:visibility="invisible"
- app:layout_constraintEnd_toEndOf="parent"
- app:layout_constraintTop_toTopOf="@+id/reviewTextInputLayout" />
- <ImageButton
- android:id="@+id/deleteImageButton"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_marginEnd="16dp"
- android:background="?attr/selectableItemBackgroundBorderless"
- android:contentDescription="@null"
- android:src="@drawable/ic_review_delete"
- android:tint="@color/sel_button_reviews"
- app:layout_constraintBottom_toBottomOf="@+id/reviewTextInputLayout"
- app:layout_constraintEnd_toEndOf="parent" />
- <ProgressBar
- android:id="@+id/reviewDeleteProgressIndicator"
- android:layout_width="24dp"
- android:layout_height="24dp"
- android:layout_marginEnd="16dp"
- android:background="?attr/selectableItemBackgroundBorderless"
- android:contentDescription="@null"
- android:src="@drawable/ic_review_send"
- android:visibility="invisible"
- app:layout_constraintBottom_toBottomOf="@+id/reviewTextInputLayout"
- app:layout_constraintEnd_toEndOf="parent" />
- <androidx.constraintlayout.widget.Group
- android:id="@+id/reviewGroup"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- app:constraint_referenced_ids="reviewTextInputLayout,sendImageButton,deleteImageButton" />
- <com.google.android.material.textview.MaterialTextView
- android:id="@+id/notPurchasedMaterialTextView"
- android:layout_width="0dp"
- android:layout_height="wrap_content"
- android:layout_marginStart="24dp"
- android:layout_marginTop="32dp"
- android:layout_marginEnd="24dp"
- android:layout_marginBottom="64dp"
- android:gravity="center"
- android:text="@string/compilation_reviews_fragment_review_not_purchased"
- android:visibility="gone"
- app:layout_constraintBottom_toBottomOf="parent"
- app:layout_constraintEnd_toEndOf="parent"
- app:layout_constraintStart_toStartOf="parent"
- app:layout_constraintTop_toBottomOf="@id/yourReviewMaterialTextView" />
- </androidx.constraintlayout.widget.ConstraintLayout>
- <include
- android:id="@+id/progressIndicator"
- layout="@layout/particle_loading_indicator_over_background"
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:visibility="gone" />
- </androidx.coordinatorlayout.widget.CoordinatorLayout>
Add Comment
Please, Sign In to add comment