Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?xml version="1.0" encoding="utf-8"?>
- <android.support.constraint.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"
- tools:context=".BtnImageActivity">
- <LinearLayout
- android:id="@+id/ll_group"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:orientation="horizontal"
- app:layout_constraintTop_toTopOf="parent"
- app:layout_constraintLeft_toLeftOf="parent"
- app:layout_constraintRight_toRightOf="parent">
- <EditText
- android:id="@+id/et_color"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:ems="10"/>
- <Button
- android:id="@+id/btn_choose"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:text="Choose"/>
- <ImageView
- android:id="@+id/img_preview"
- android:layout_width="200dp"
- android:layout_height="200dp" />
- <Button
- android:id="@+id/btn_add"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:text="Add"/>
- </LinearLayout>
- <android.support.v7.widget.RecyclerView
- android:id="@+id/recycler"
- android:layout_width="0dp"
- android:layout_height="0dp"
- app:layout_constraintTop_toBottomOf="@id/ll_group"
- app:layout_constraintBottom_toBottomOf="parent"
- app:layout_constraintLeft_toLeftOf="parent"
- app:layout_constraintRight_toRightOf="parent"
- app:layoutManager="android.support.v7.widget.LinearLayoutManager"
- android:orientation="vertical"/>
- </android.support.constraint.ConstraintLayout>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement