activity_main.xml 1.2 KB

123456789101112131415161718192021222324252627282930313233
  1. <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
  2. xmlns:tools="http://schemas.android.com/tools"
  3. android:layout_width="match_parent"
  4. android:layout_height="match_parent"
  5. tools:context="${relativePackage}.${activityClass}" >
  6. <ImageView
  7. android:id="@+id/imageView1"
  8. android:layout_width="wrap_content"
  9. android:layout_height="wrap_content"
  10. android:layout_alignParentLeft="true"
  11. android:layout_alignParentTop="true"
  12. android:layout_alignParentRight="true"
  13. android:layout_marginTop="20dp"
  14. android:contentDescription="@string/grumpyCat" />
  15. <Button
  16. android:id="@+id/loadImage"
  17. android:layout_width="wrap_content"
  18. android:layout_height="wrap_content"
  19. android:layout_alignParentBottom="true"
  20. android:layout_alignParentLeft="true"
  21. android:text="@string/load" />
  22. <Button
  23. android:id="@+id/sayhello"
  24. android:layout_width="wrap_content"
  25. android:layout_height="wrap_content"
  26. android:layout_alignParentBottom="true"
  27. android:layout_toRightOf="@+id/loadImage"
  28. android:text="@string/sayhello" />
  29. </RelativeLayout>