Advertisement
van9petryk

Untitled

May 21st, 2018
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 1.98 KB | None | 0 0
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <android.support.constraint.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3.    xmlns:app="http://schemas.android.com/apk/res-auto"
  4.    xmlns:tools="http://schemas.android.com/tools"
  5.    android:layout_width="match_parent"
  6.    android:layout_height="match_parent"
  7.    tools:context=".BtnImageActivity">
  8.  
  9.     <LinearLayout
  10.        android:id="@+id/ll_group"
  11.        android:layout_width="wrap_content"
  12.        android:layout_height="wrap_content"
  13.        android:orientation="horizontal"
  14.        app:layout_constraintTop_toTopOf="parent"
  15.        app:layout_constraintLeft_toLeftOf="parent"
  16.        app:layout_constraintRight_toRightOf="parent">
  17.  
  18.         <EditText
  19.            android:id="@+id/et_color"
  20.            android:layout_width="wrap_content"
  21.            android:layout_height="wrap_content"
  22.            android:ems="10"/>
  23.         <Button
  24.            android:id="@+id/btn_choose"
  25.            android:layout_width="wrap_content"
  26.            android:layout_height="wrap_content"
  27.            android:text="Choose"/>
  28.         <ImageView
  29.            android:id="@+id/img_preview"
  30.            android:layout_width="200dp"
  31.            android:layout_height="200dp" />
  32.         <Button
  33.            android:id="@+id/btn_add"
  34.            android:layout_width="wrap_content"
  35.            android:layout_height="wrap_content"
  36.            android:text="Add"/>
  37.     </LinearLayout>
  38.  
  39.     <android.support.v7.widget.RecyclerView
  40.        android:id="@+id/recycler"
  41.        android:layout_width="0dp"
  42.        android:layout_height="0dp"
  43.        app:layout_constraintTop_toBottomOf="@id/ll_group"
  44.        app:layout_constraintBottom_toBottomOf="parent"
  45.        app:layout_constraintLeft_toLeftOf="parent"
  46.        app:layout_constraintRight_toRightOf="parent"
  47.        app:layoutManager="android.support.v7.widget.LinearLayoutManager"
  48.        android:orientation="vertical"/>
  49.  
  50.  
  51. </android.support.constraint.ConstraintLayout>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement