activity_main.xml 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  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. <ProgressBar
  16. android:id="@+id/loadingView"
  17. android:layout_width="wrap_content"
  18. android:layout_height="wrap_content"
  19. android:layout_alignParentLeft="true"
  20. android:layout_alignParentRight="true"
  21. android:layout_marginTop="20dp"
  22. android:visibility="gone"
  23. style="?android:attr/progressBarStyleHorizontal"/>
  24. <Button
  25. android:id="@+id/loadImage"
  26. android:layout_width="wrap_content"
  27. android:layout_height="wrap_content"
  28. android:layout_alignParentBottom="true"
  29. android:layout_alignParentLeft="true"
  30. android:text="@string/load" />
  31. <Button
  32. android:id="@+id/sayhello"
  33. android:layout_width="wrap_content"
  34. android:layout_height="wrap_content"
  35. android:layout_alignParentBottom="true"
  36. android:layout_toRightOf="@+id/loadImage"
  37. android:text="@string/sayhello" />
  38. </RelativeLayout>