main.axml 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3. android:orientation="vertical"
  4. android:layout_width="fill_parent"
  5. android:layout_height="fill_parent"
  6. android:padding="10dp">
  7. <TextView
  8. android:text="Current Charge: "
  9. android:textAppearance="?android:attr/textAppearanceLarge"
  10. android:layout_width="match_parent"
  11. android:layout_height="wrap_content"
  12. android:id="@+id/battery_level"
  13. android:layout_marginTop="10dp" />
  14. <TextView
  15. android:text="Status: "
  16. android:textAppearance="?android:attr/textAppearanceLarge"
  17. android:layout_width="match_parent"
  18. android:layout_height="wrap_content"
  19. android:id="@+id/battery_status" />
  20. <Button
  21. android:text="Refresh Battery"
  22. android:layout_width="match_parent"
  23. android:layout_height="wrap_content"
  24. android:id="@+id/refresh_battery" />
  25. <!-- TODO: Add New TextView for GPS -->
  26. <!-- TODO: Add New Button for GPS Refresh -->
  27. <LinearLayout
  28. android:layout_width="wrap_content"
  29. android:layout_height="wrap_content"
  30. android:layout_gravity="center_horizontal"
  31. android:layout_margin="10dp"
  32. android:id="@+id/compass_layout" />
  33. <android.support.v7.widget.RecyclerView
  34. android:id="@+id/recycler_view"
  35. android:scrollbars="vertical"
  36. android:layout_width="match_parent"
  37. android:layout_height="0dp"
  38. android:layout_weight="1" />
  39. </LinearLayout>