Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?xml version="1.0" encoding="utf-8"?>
- <ScrollView
- 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:padding="10dp"
- tools:context=".MainActivity">
- <androidx.constraintlayout.widget.ConstraintLayout
- android:layout_width="match_parent"
- android:layout_height="wrap_content">
- <EditText
- android:id="@+id/editText"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:textSize="28sp"
- app:layout_constraintStart_toStartOf="parent"
- app:layout_constraintTop_toTopOf="parent"/>
- <Button
- android:id="@+id/add_to_coll"
- android:layout_width="wrap_content"
- app:layout_constraintHorizontal_chainStyle="packed"
- app:layout_constraintHorizontal_weight="3"
- android:layout_height="wrap_content"
- android:textSize="14sp"
- android:textAllCaps="false"
- android:text="@string/add_to_coll"
- app:layout_constraintEnd_toStartOf="@id/show_to_coll"
- app:layout_constraintStart_toStartOf="parent"
- app:layout_constraintTop_toBottomOf="@id/editText" />
- <Button
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:id="@id/show_to_coll"
- android:textAllCaps="false"
- android:textSize="14sp"
- app:layout_constraintHorizontal_weight="1"
- app:layout_constraintEnd_toEndOf="parent"
- android:text="@string/show_to_coll"
- app:layout_constraintTop_toBottomOf="@id/editText"
- app:layout_constraintStart_toEndOf="@id/add_to_coll"
- />
- <TextView
- android:id="@+id/text"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:text=""
- android:textSize="28sp"
- app:layout_constraintStart_toStartOf="@id/editText"
- app:layout_constraintTop_toBottomOf="@id/add_to_coll" />
- </androidx.constraintlayout.widget.ConstraintLayout>
- </ScrollView>
Advertisement
Add Comment
Please, Sign In to add comment