activity_webview.xml 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3. android:layout_width="match_parent"
  4. android:layout_height="match_parent"
  5. android:background="@color/lightgrey"
  6. android:orientation="vertical">
  7. <ProgressBar
  8. android:id="@+id/pb"
  9. style="?android:attr/progressBarStyleHorizontal"
  10. android:layout_width="fill_parent"
  11. android:layout_height="5dip"
  12. android:animationResolution="100"
  13. android:indeterminate="false"
  14. android:indeterminateDuration="500"
  15. android:indeterminateOnly="false"
  16. android:max="100"
  17. android:progressDrawable="@drawable/webview_progress_bar"
  18. android:visibility="gone"></ProgressBar>
  19. <RelativeLayout
  20. android:layout_width="match_parent"
  21. android:layout_height="match_parent">
  22. <com.handmark.pulltorefresh.library.PullToRefreshWebView
  23. android:id="@+id/webView_listview"
  24. android:layout_width="match_parent"
  25. android:layout_height="match_parent"
  26. android:background="@color/linen"
  27. android:layerType="software" />
  28. <TextView
  29. android:id="@+id/web_previous_tv"
  30. android:layout_width="100dp"
  31. android:layout_height="36dp"
  32. android:layout_alignParentBottom="true"
  33. android:layout_marginBottom="25dp"
  34. android:layout_marginLeft="30dp"
  35. android:background="@drawable/selector_flip_btn"
  36. android:gravity="center"
  37. android:text="@string/web_previous_tv"
  38. android:textColor="@color/white"
  39. android:textSize="16sp"
  40. android:visibility="gone"/>
  41. <TextView
  42. android:id="@+id/web_next_tv"
  43. android:layout_width="100dp"
  44. android:layout_height="36dp"
  45. android:layout_alignParentBottom="true"
  46. android:layout_alignParentRight="true"
  47. android:layout_marginBottom="25dp"
  48. android:layout_marginRight="30dp"
  49. android:background="@drawable/selector_flip_btn"
  50. android:gravity="center"
  51. android:text="@string/web_next_tv"
  52. android:textColor="@color/white"
  53. android:textSize="16sp"
  54. android:visibility="gone"/>
  55. </RelativeLayout>
  56. </LinearLayout>