fragment_statistics.xml 6.0 KB

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