fragment_statistics.xml 6.2 KB

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