activity_main.xml 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  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. <Button
  7. android:id="@+id/getLocation"
  8. android:layout_width="wrap_content"
  9. android:layout_height="wrap_content"
  10. android:layout_alignParentBottom="true"
  11. android:layout_alignParentLeft="true"
  12. android:layout_alignParentRight="true"
  13. android:text="@string/getLocationLabel" />
  14. <TextView
  15. android:id="@+id/locationAccuracy"
  16. android:layout_width="wrap_content"
  17. android:layout_height="wrap_content"
  18. android:layout_alignParentLeft="true"
  19. android:layout_alignParentTop="true"
  20. android:layout_marginLeft="29dp"
  21. android:layout_marginTop="130dp" />
  22. <TextView
  23. android:id="@+id/locationLatitude"
  24. android:layout_width="wrap_content"
  25. android:layout_height="wrap_content"
  26. android:layout_alignLeft="@+id/locationTime"
  27. android:layout_below="@+id/locationTime"
  28. android:layout_marginTop="18dp" />
  29. <TextView
  30. android:id="@+id/locationTime"
  31. android:layout_width="wrap_content"
  32. android:layout_height="wrap_content"
  33. android:layout_alignLeft="@+id/locationAccuracy"
  34. android:layout_below="@+id/locationAccuracy"
  35. android:layout_marginTop="18dp" />
  36. <TextView
  37. android:id="@+id/locationLongitude"
  38. android:layout_width="wrap_content"
  39. android:layout_height="wrap_content"
  40. android:layout_alignLeft="@+id/locationLatitude"
  41. android:layout_below="@+id/locationLatitude"
  42. android:layout_marginTop="18dp" />
  43. </RelativeLayout>