fragment_statistics.xml 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  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. <!--
  39. <view
  40. android:layout_width="match_parent"
  41. android:layout_height="match_parent"
  42. class="com.echo.holographlibrary.BarGraph"
  43. android:id="@+id/bargraph"
  44. android:layout_gravity="center_horizontal"
  45. />
  46. <view
  47. android:layout_width="200dp"
  48. android:layout_height="200dp"
  49. class="com.echo.holographlibrary.PieGraph"
  50. android:id="@+id/piegraph"
  51. android:layout_gravity="center_horizontal"
  52. />
  53. <view
  54. android:layout_width="match_parent"
  55. android:layout_height="match_parent"
  56. class="com.echo.holographlibrary.LineGraph"
  57. android:id="@+id/linegraph"
  58. android:layout_gravity="center_horizontal"
  59. />
  60. -->
  61. </LinearLayout>
  62. <ListView
  63. android:layout_width="match_parent"
  64. android:layout_height="match_parent"
  65. android:id="@+id/legend_list_view"
  66. android:layout_weight="1.1"
  67. />
  68. </LinearLayout>
  69. <RelativeLayout
  70. style="@android:style/Widget.Holo.Light.ActionBar.Solid.Inverse"
  71. android:orientation="horizontal"
  72. android:layout_width="fill_parent"
  73. android:layout_height="wrap_content"
  74. android:alpha="0.8"
  75. android:id="@+id/toolbar_layout"
  76. android:layout_alignParentBottom="true"
  77. android:layout_alignParentLeft="true"
  78. android:layout_alignParentStart="true">
  79. <ImageButton
  80. style="@android:style/Widget.DeviceDefault.ActionButton.Overflow"
  81. android:layout_width="wrap_content"
  82. android:layout_height="wrap_content"
  83. android:id="@+id/plot_data_button"
  84. android:src="@drawable/ic_sort_by_size"
  85. android:layout_gravity="right"
  86. android:layout_alignParentTop="true"
  87. android:layout_alignParentRight="true"
  88. android:layout_alignParentEnd="true"/>
  89. </RelativeLayout>
  90. </RelativeLayout>