Advertisement
Guest User

layout

a guest
Aug 21st, 2017
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.17 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="com.example.esteban.myapplication.MainActivity">
  8.  
  9. <EditText
  10. android:id="@+id/editText"
  11. android:layout_width="215dp"
  12. android:layout_height="43dp"
  13. android:ems="10"
  14. android:inputType="text"
  15. android:text="Alimento"
  16. app:layout_constraintTop_toTopOf="parent"
  17. android:layout_marginTop="100dp"
  18. android:layout_marginLeft="8dp"
  19. app:layout_constraintLeft_toLeftOf="parent"
  20. android:layout_marginRight="8dp"
  21. app:layout_constraintRight_toRightOf="parent" />
  22.  
  23. <Button
  24. android:id="@+id/button"
  25. android:layout_width="wrap_content"
  26. android:layout_height="wrap_content"
  27. android:text="Buscar"
  28. app:layout_constraintTop_toTopOf="parent"
  29. android:layout_marginTop="220dp"
  30. android:layout_marginLeft="100dp"
  31. app:layout_constraintLeft_toLeftOf="parent" />
  32.  
  33. <EditText
  34. android:id="@+id/editText2"
  35. android:layout_width="215dp"
  36. android:layout_height="42dp"
  37. android:ems="10"
  38. android:inputType="text"
  39. android:text="Cantidad"
  40. android:layout_marginLeft="100dp"
  41. app:layout_constraintLeft_toLeftOf="parent"
  42. android:layout_marginRight="100dp"
  43. app:layout_constraintRight_toRightOf="parent"
  44. app:layout_constraintTop_toTopOf="parent"
  45. android:layout_marginTop="150dp" />
  46.  
  47. <TextView
  48. android:id="@+id/textView"
  49. android:layout_width="wrap_content"
  50. android:layout_height="wrap_content"
  51. android:text="TextView"
  52. android:layout_marginLeft="150dp"
  53. app:layout_constraintLeft_toLeftOf="parent"
  54. app:layout_constraintBottom_toBottomOf="parent"
  55. android:layout_marginBottom="200dp" />
  56. </android.support.constraint.ConstraintLayout>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement