activity_viewlog.xml 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120
  1. <ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
  2. xmlns:tools="http://schemas.android.com/tools"
  3. android:layout_width="fill_parent"
  4. android:layout_height="fill_parent"
  5. android:scrollbars="none">
  6. <LinearLayout
  7. android:layout_width="match_parent"
  8. android:layout_height="wrap_content"
  9. android:orientation="vertical"
  10. android:paddingBottom="@dimen/activity_vertical_margin"
  11. android:paddingLeft="@dimen/activity_horizontal_margin"
  12. android:paddingRight="@dimen/activity_horizontal_margin"
  13. android:paddingTop="@dimen/activity_vertical_margin" >
  14. <TextView
  15. android:id="@+id/textStatistics"
  16. android:layout_width="wrap_content"
  17. android:layout_height="wrap_content"
  18. android:text="@string/statistics"
  19. android:textAppearance="?android:attr/textAppearanceLarge" />
  20. <TableLayout
  21. android:id="@+id/layoutContainer"
  22. android:layout_width="wrap_content"
  23. android:layout_height="wrap_content"
  24. android:orientation="vertical" >
  25. </TableLayout>
  26. <LinearLayout
  27. android:layout_width="match_parent"
  28. android:layout_height="wrap_content"
  29. android:orientation="horizontal" >
  30. <TextView
  31. android:id="@+id/textFirstAttack"
  32. android:layout_width="wrap_content"
  33. android:layout_height="wrap_content"
  34. android:text="@string/firstAttack"
  35. android:textAppearance="?android:attr/textAppearanceMedium" />
  36. <TextView
  37. android:id="@+id/textFirstAttackValue"
  38. android:layout_width="wrap_content"
  39. android:layout_height="wrap_content"
  40. android:paddingLeft="2dp"
  41. android:text=""
  42. android:textAppearance="?android:attr/textAppearanceMedium" />
  43. </LinearLayout>
  44. <LinearLayout
  45. android:layout_width="match_parent"
  46. android:layout_height="wrap_content"
  47. android:orientation="horizontal" >
  48. <TextView
  49. android:id="@+id/textLastAttack"
  50. android:layout_width="wrap_content"
  51. android:layout_height="wrap_content"
  52. android:text="@string/lastAttack"
  53. android:textAppearance="?android:attr/textAppearanceMedium" />
  54. <TextView
  55. android:id="@+id/textLastAttackValue"
  56. android:layout_width="wrap_content"
  57. android:layout_height="wrap_content"
  58. android:paddingLeft="2dp"
  59. android:text=""
  60. android:textAppearance="?android:attr/textAppearanceMedium" />
  61. </LinearLayout>
  62. <TextView
  63. android:id="@+id/textLogFile"
  64. android:layout_width="wrap_content"
  65. android:layout_height="wrap_content"
  66. android:text="@string/log_actions"
  67. android:textAppearance="?android:attr/textAppearanceLarge" />
  68. <LinearLayout
  69. android:layout_width="match_parent"
  70. android:layout_height="wrap_content"
  71. android:orientation="horizontal" >
  72. <Button
  73. android:id="@+id/buttonShowLog"
  74. android:layout_width="wrap_content"
  75. android:layout_height="wrap_content"
  76. android:onClick="showLog"
  77. android:text="Show Log" />
  78. <Button
  79. android:id="@+id/buttonExportDatabase"
  80. android:layout_width="wrap_content"
  81. android:layout_height="wrap_content"
  82. android:onClick="exportDatabase"
  83. android:text="Export Database" />
  84. </LinearLayout>
  85. <LinearLayout
  86. android:layout_width="match_parent"
  87. android:layout_height="wrap_content"
  88. android:orientation="horizontal" >
  89. <Button
  90. android:id="@+id/buttonUploadLog"
  91. android:layout_width="wrap_content"
  92. android:layout_height="wrap_content"
  93. android:onClick="uploadDatabase"
  94. android:text="Upload Log" />
  95. <Button
  96. android:id="@+id/buttonDeleteLog"
  97. android:layout_width="wrap_content"
  98. android:layout_height="wrap_content"
  99. android:onClick="deleteLog"
  100. android:text="Delete Log" />
  101. </LinearLayout>
  102. </LinearLayout>
  103. </ScrollView>