fragment_statistics.xml 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3. android:layout_width="match_parent"
  4. android:layout_height="match_parent"
  5. android:background="@android:color/transparent"
  6. >
  7. <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  8. android:orientation="vertical"
  9. android:layout_height="40dp"
  10. android:layout_width="match_parent"
  11. android:id="@+id/title_layout"
  12. android:padding="5dp"
  13. android:layout_alignParentTop="true"
  14. android:layout_alignParentLeft="true"
  15. android:layout_alignParentStart="true">
  16. <TextView
  17. android:layout_width="match_parent"
  18. android:layout_height="match_parent"
  19. android:textAppearance="?android:attr/textAppearanceMedium"
  20. android:text="Title"
  21. android:textAlignment="center"
  22. android:id="@+id/title_textView" />
  23. </LinearLayout>
  24. <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  25. android:orientation="vertical"
  26. android:layout_width="match_parent"
  27. android:layout_height="match_parent"
  28. android:layout_above="@+id/toolbar_layout"
  29. android:layout_below="@+id/title_layout"
  30. android:weightSum="2">
  31. <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  32. android:orientation="vertical"
  33. android:layout_height="match_parent"
  34. android:layout_width="match_parent"
  35. android:id="@+id/plot_layout"
  36. android:padding="2dp"
  37. android:layout_weight="0.9">
  38. </LinearLayout>
  39. <ListView
  40. android:layout_width="match_parent"
  41. android:layout_height="match_parent"
  42. android:id="@+id/legend_list_view"
  43. android:layout_weight="1.1"
  44. />
  45. </LinearLayout>
  46. <RelativeLayout
  47. style="@android:style/Widget.Holo.Light.ActionBar.Solid.Inverse"
  48. android:orientation="horizontal"
  49. android:layout_width="fill_parent"
  50. android:layout_height="wrap_content"
  51. android:alpha="0.8"
  52. android:id="@+id/toolbar_layout"
  53. android:layout_alignParentBottom="true"
  54. android:layout_alignParentLeft="true"
  55. android:layout_alignParentStart="true">
  56. <ImageButton
  57. style="@android:style/Widget.DeviceDefault.ActionButton.Overflow"
  58. android:layout_width="wrap_content"
  59. android:layout_height="wrap_content"
  60. android:id="@+id/PiePlotButton"
  61. android:src="@drawable/ic_sort_by_size"
  62. android:layout_gravity="right"
  63. android:layout_alignParentTop="true"
  64. android:layout_alignParentRight="true"
  65. android:layout_alignParentEnd="true"/>
  66. <ImageButton
  67. style="@android:style/Widget.DeviceDefault.ActionButton.Overflow"
  68. android:layout_width="wrap_content"
  69. android:layout_height="wrap_content"
  70. android:id="@+id/LinePlotButton"
  71. android:src="@drawable/ic_filter"
  72. android:layout_alignParentTop="true"
  73. android:layout_toLeftOf="@+id/BarPlotButton"/>
  74. <ImageButton
  75. style="@android:style/Widget.DeviceDefault.ActionButton.Overflow"
  76. android:layout_width="wrap_content"
  77. android:layout_height="wrap_content"
  78. android:id="@+id/BarPlotButton"
  79. android:src="@drawable/ic_device_access_storage"
  80. android:layout_alignParentTop="true"
  81. android:layout_toLeftOf="@+id/PiePlotButton"/>
  82. </RelativeLayout>
  83. </RelativeLayout>