activity_result.xml 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140
  1. <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
  2. xmlns:tools="http://schemas.android.com/tools"
  3. android:layout_width="match_parent"
  4. android:layout_height="match_parent"
  5. tools:context=".ResultActivity" >
  6. <ScrollView
  7. android:id="@+id/scrollView1"
  8. android:layout_width="wrap_content"
  9. android:layout_height="wrap_content"
  10. android:layout_above="@+id/foot"
  11. android:layout_below="@+id/head" >
  12. <HorizontalScrollView
  13. android:id="@+id/search_form"
  14. android:layout_width="wrap_content"
  15. android:layout_height="wrap_content" >
  16. <TableLayout
  17. android:id="@+id/result_table"
  18. android:layout_width="wrap_content"
  19. android:layout_height="fill_parent"
  20. android:padding="2dp"
  21. android:background="@android:color/holo_blue_bright" >
  22. <TableRow
  23. android:id="@+id/tr_header"
  24. android:layout_width="wrap_content"
  25. android:layout_height="wrap_content" >
  26. </TableRow>
  27. </TableLayout>
  28. </HorizontalScrollView>
  29. </ScrollView>
  30. <RelativeLayout
  31. android:id="@+id/status"
  32. android:layout_width="fill_parent"
  33. android:layout_height="fill_parent"
  34. android:layout_centerInParent="true"
  35. android:layout_gravity="center"
  36. android:orientation="vertical"
  37. android:visibility="gone" >
  38. <TextView
  39. android:id="@+id/status_message"
  40. android:layout_width="wrap_content"
  41. android:layout_height="wrap_content"
  42. android:layout_below="@+id/progressbar"
  43. android:layout_centerHorizontal="true"
  44. android:layout_marginBottom="16dp"
  45. android:text="Loading..."
  46. android:textAppearance="?android:attr/textAppearanceMedium" />
  47. <ProgressBar
  48. android:id="@+id/progressbar"
  49. style="?android:attr/progressBarStyleLarge"
  50. android:layout_width="wrap_content"
  51. android:layout_height="wrap_content"
  52. android:layout_centerInParent="true"
  53. android:layout_marginTop="41dp" />
  54. </RelativeLayout>
  55. <LinearLayout
  56. android:id="@+id/foot"
  57. android:layout_width="fill_parent"
  58. android:layout_height="wrap_content"
  59. android:layout_alignParentBottom="true" >
  60. <Button
  61. android:id="@+id/btn_pre"
  62. android:layout_width="wrap_content"
  63. android:layout_height="wrap_content"
  64. android:layout_weight="1"
  65. style="@android:attr/buttonBarButtonStyle"
  66. android:text="Pre Page"
  67. android:enabled="false"/>
  68. <Button
  69. android:id="@+id/btn_next"
  70. style="@android:attr/buttonBarButtonStyle"
  71. android:layout_width="wrap_content"
  72. android:layout_height="wrap_content"
  73. android:layout_weight="1"
  74. android:enabled="false"
  75. android:text="Next Page" />
  76. </LinearLayout>
  77. <TextView
  78. android:id="@+id/head"
  79. android:layout_width="wrap_content"
  80. android:layout_height="wrap_content"
  81. android:layout_alignParentTop="true"
  82. android:layout_centerHorizontal="true"
  83. android:text="0 records"
  84. android:textAppearance="?android:attr/textAppearanceLarge" />
  85. <LinearLayout
  86. android:id="@+id/ll_refresh"
  87. android:layout_width="wrap_content"
  88. android:layout_height="wrap_content"
  89. android:layout_centerHorizontal="true"
  90. android:layout_centerVertical="true"
  91. android:orientation="vertical"
  92. android:gravity="center_horizontal"
  93. android:visibility="invisible">
  94. <TextView
  95. android:id="@+id/tv_ver"
  96. android:layout_width="wrap_content"
  97. android:layout_height="wrap_content"
  98. android:gravity="center_horizontal"
  99. android:text="Failed to get records\nTap Refresh button to retry"
  100. android:textAppearance="?android:attr/textAppearanceLarge" />
  101. <Button
  102. android:id="@+id/btn_refresh"
  103. android:layout_width="wrap_content"
  104. android:layout_height="wrap_content"
  105. android:layout_marginTop="10dp"
  106. android:drawableLeft="@android:drawable/ic_popup_sync"
  107. style="@android:attr/buttonBarButtonStyle"
  108. android:text="Refresh" />
  109. <!-- <FrameLayout
  110. android:layout_width="wrap_content"
  111. android:layout_height="wrap_content"
  112. android:background="@android:color/holo_blue_dark"
  113. android:layout_marginTop="10dp">
  114. </FrameLayout>-->
  115. </LinearLayout>
  116. </RelativeLayout>