Created
February 9, 2021 11:42
-
-
Save robertlevonyan/c5f510ab6954e7bcb399f3b76864d79e to your computer and use it in GitHub Desktop.
The UI representation in xml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<androidx.constraintlayout.widget.ConstraintLayout 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" | |
android:background="@drawable/bg_gradient" | |
tools:context=".MainActivity"> | |
<androidx.cardview.widget.CardView | |
android:id="@+id/rvSentenceCard" | |
android:layout_width="0dp" | |
android:layout_height="0dp" | |
android:layout_margin="16dp" | |
app:cardBackgroundColor="@android:color/transparent" | |
app:cardCornerRadius="8dp" | |
app:cardElevation="0dp" | |
app:layout_constraintBottom_toTopOf="@id/rvWords" | |
app:layout_constraintEnd_toEndOf="parent" | |
app:layout_constraintHeight_percent="0.5" | |
app:layout_constraintStart_toStartOf="parent" | |
app:layout_constraintTop_toTopOf="parent"> | |
<androidx.recyclerview.widget.RecyclerView | |
android:id="@+id/rvSentence" | |
android:layout_width="match_parent" | |
android:layout_height="match_parent" | |
android:overScrollMode="never" /> | |
</androidx.cardview.widget.CardView> | |
<androidx.recyclerview.widget.RecyclerView | |
android:id="@+id/rvWords" | |
android:layout_width="0dp" | |
android:layout_height="wrap_content" | |
android:clipToPadding="false" | |
android:overScrollMode="never" | |
android:padding="16dp" | |
app:layout_constraintBottom_toBottomOf="parent" | |
app:layout_constraintEnd_toEndOf="parent" | |
app:layout_constraintHeight_percent="0.5" | |
app:layout_constraintStart_toStartOf="parent" | |
app:layout_constraintTop_toBottomOf="@id/rvSentenceCard" /> | |
</androidx.constraintlayout.widget.ConstraintLayout> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment