Advertisement
Guest User

Untitled

a guest
Aug 14th, 2019
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.55 KB | None | 0 0
  1. android:scaleType="fitXY"
  2. android:scaleType="centerCrop"
  3. android:adjustViewBounds="true"
  4.  
  5. <GridLayout
  6. android:layout_width="match_parent"
  7. android:layout_height="match_parent"
  8. android:layout_centerInParent="true"
  9. android:layout_margin="0dp"
  10. android:padding="0dp">
  11.  
  12. <Button
  13. android:id="@+id/homer"
  14. android:layout_width="wrap_content"
  15. android:layout_height="wrap_content"
  16. android:layout_row="0"
  17. android:layout_rowWeight="1"
  18. android:layout_column="0"
  19. android:layout_columnWeight="1"
  20. android:layout_gravity="fill"
  21. android:layout_margin="0dp"
  22. android:padding="0dp"
  23. android:text="Homer"
  24. android:onClick="click"/>
  25.  
  26. <Button
  27. android:id="@+id/bart"
  28. android:layout_width="wrap_content"
  29. android:layout_height="wrap_content"
  30. android:layout_row="0"
  31. android:layout_rowWeight="1"
  32. android:layout_column="1"
  33. android:layout_columnWeight="1"
  34. android:layout_gravity="fill"
  35. android:layout_margin="0dp"
  36. android:padding="0dp"
  37. android:text="Bart"
  38. android:onClick="click"/>
  39.  
  40. <ImageView
  41. android:id="@+id/imageView"
  42. android:layout_row="1"
  43. android:layout_gravity="fill"
  44. android:layout_column="1"
  45. android:layout_columnWeight="1"
  46. android:layout_rowWeight="1" />
  47.  
  48.  
  49. </GridLayout>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement