fragment_statistics.xml 6.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145
  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_width="match_parent"
  10. android:layout_height="match_parent"
  11. android:layout_above="@+id/toolbar_layout"
  12. android:paddingLeft="4dp"
  13. android:paddingRight="4dp"
  14. android:weightSum="2.">
  15. <RelativeLayout
  16. android:layout_width="fill_parent"
  17. android:layout_height="fill_parent"
  18. android:id="@+id/plot_parent_layout"
  19. android:layout_weight="0.9">
  20. <!-- TITLE LAYOUT -->
  21. <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  22. android:orientation="vertical"
  23. android:layout_height="40dp"
  24. android:layout_width="match_parent"
  25. android:id="@+id/title_layout"
  26. android:padding="5dp"
  27. android:layout_alignParentTop="true"
  28. android:layout_alignParentLeft="true"
  29. android:layout_alignParentStart="true">
  30. <TextView
  31. android:layout_width="match_parent"
  32. android:layout_height="match_parent"
  33. android:textAppearance="?android:attr/textAppearanceMedium"
  34. android:text="Title"
  35. android:textAlignment="center"
  36. android:id="@+id/title_text_view" />
  37. </LinearLayout>
  38. <!-- PLOT LAYOUT -->
  39. <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  40. android:orientation="vertical"
  41. android:layout_height="match_parent"
  42. android:layout_width="match_parent"
  43. android:id="@+id/plot_layout"
  44. android:padding="2dp"
  45. android:layout_below="@+id/title_layout"
  46. >
  47. </LinearLayout>
  48. </RelativeLayout>
  49. <!-- LIST LAYOUT -->
  50. <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
  51. android:layout_height="match_parent"
  52. android:layout_width="match_parent"
  53. android:id="@+id/list_parent_layout"
  54. android:paddingTop="5dp"
  55. android:layout_weight="1.1"
  56. >
  57. <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  58. android:orientation="horizontal"
  59. android:layout_height="30dp"
  60. android:layout_width="match_parent"
  61. android:id="@+id/table_header_layout"
  62. android:weightSum="1"
  63. android:paddingLeft="2dp"
  64. android:paddingRight="2dp">
  65. <TextView
  66. android:layout_width="fill_parent"
  67. android:layout_height="fill_parent"
  68. android:textAppearance="?android:attr/textAppearanceSmall"
  69. android:text="table header title"
  70. android:id="@+id/table_header_title_textview"
  71. android:gravity="bottom|left"
  72. android:textAlignment="viewStart"
  73. android:paddingLeft="75dp"
  74. android:layout_weight="0.4"
  75. android:textStyle="bold" />
  76. <TextView
  77. android:layout_width="fill_parent"
  78. android:layout_height="fill_parent"
  79. android:textAppearance="?android:attr/textAppearanceSmall"
  80. android:text="value"
  81. android:id="@+id/table_header_value_textview"
  82. android:textAlignment="viewEnd"
  83. android:layout_weight="0.6"
  84. android:gravity="bottom|right"
  85. android:textStyle="bold" />
  86. </LinearLayout>
  87. <ListView
  88. android:layout_width="match_parent"
  89. android:layout_height="match_parent"
  90. android:layout_below="@+id/table_header_layout"
  91. android:id="@+id/legend_list_view"
  92. android:paddingBottom="0dp"
  93. android:paddingTop="6dp"
  94. />
  95. </RelativeLayout>
  96. </LinearLayout>
  97. <!-- TOOLBAR LAYOUT -->
  98. <RelativeLayout
  99. style="@android:style/Widget.Holo.Light.ActionBar.Solid.Inverse"
  100. android:orientation="horizontal"
  101. android:layout_width="fill_parent"
  102. android:layout_height="wrap_content"
  103. android:alpha="0.8"
  104. android:id="@+id/toolbar_layout"
  105. android:layout_alignParentBottom="true"
  106. android:layout_alignParentLeft="true"
  107. android:layout_alignParentStart="true">
  108. <ImageButton
  109. style="@android:style/Widget.DeviceDefault.ActionButton.Overflow"
  110. android:layout_width="wrap_content"
  111. android:layout_height="wrap_content"
  112. android:id="@+id/FilterButton"
  113. android:src="@drawable/ic_filter"
  114. android:visibility="invisible"
  115. android:layout_alignParentTop="true"
  116. android:layout_toLeftOf="@+id/plot_data_button" />
  117. <ImageButton
  118. style="@android:style/Widget.DeviceDefault.ActionButton.Overflow"
  119. android:layout_width="wrap_content"
  120. android:layout_height="wrap_content"
  121. android:id="@+id/plot_data_button"
  122. android:src="@drawable/ic_sort_by_size"
  123. android:layout_gravity="right"
  124. android:layout_alignParentTop="true"
  125. android:layout_alignParentRight="true"
  126. android:layout_alignParentEnd="true"/>
  127. </RelativeLayout>
  128. </RelativeLayout>