/WebVox/res/layout/browser_download_item.xml

http://eyes-free.googlecode.com/ · XML · 89 lines · 63 code · 7 blank · 19 comment · 0 complexity · 94d49be0cb41c742b92873a08fe3a736 MD5 · raw file

  1. <?xml version="1.0" encoding="utf-8"?>
  2. <!--
  3. /*
  4. ** assets/res/any/layout/browser_bookmark_item.xml
  5. **
  6. ** Copyright 2006, The Android Open Source Project
  7. **
  8. ** Licensed under the Apache License, Version 2.0 (the "License");
  9. ** you may not use this file except in compliance with the License.
  10. ** You may obtain a copy of the License at
  11. **
  12. ** http://www.apache.org/licenses/LICENSE-2.0
  13. **
  14. ** Unless required by applicable law or agreed to in writing, software
  15. ** distributed under the License is distributed on an "AS IS" BASIS,
  16. ** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  17. ** See the License for the specific language governing permissions and
  18. ** limitations under the License.
  19. */
  20. -->
  21. <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
  22. android:layout_width="fill_parent"
  23. android:layout_height="wrap_content">
  24. <ImageView android:id="@+id/download_icon"
  25. android:layout_width="@android:dimen/app_icon_size"
  26. android:layout_height="@android:dimen/app_icon_size"
  27. android:layout_alignParentTop="true"
  28. android:layout_alignParentLeft="true"
  29. android:scaleType="fitCenter"
  30. />
  31. <TextView android:id="@+id/download_title"
  32. android:layout_width="wrap_content"
  33. android:layout_height="wrap_content"
  34. android:maxLines="1"
  35. android:layout_alignParentTop="true"
  36. android:layout_toRightOf="@id/download_icon"
  37. android:textAppearance="?android:attr/textAppearanceMedium"
  38. />
  39. <TextView android:id="@+id/domain"
  40. android:layout_width="wrap_content"
  41. android:layout_height="wrap_content"
  42. android:layout_toRightOf="@id/download_icon"
  43. android:layout_below="@id/download_title"
  44. android:maxLines="1"
  45. android:textAppearance="?android:attr/textAppearanceSmall"
  46. />
  47. <TextView android:id="@+id/complete_date"
  48. android:layout_width="wrap_content"
  49. android:layout_height="wrap_content"
  50. android:maxLines="1"
  51. android:textAppearance="?android:attr/textAppearanceSmall"
  52. android:layout_below="@id/domain"
  53. android:layout_alignParentRight="true"
  54. android:visibility="gone"
  55. />
  56. <TextView android:id="@+id/complete_text"
  57. android:layout_width="wrap_content"
  58. android:layout_height="wrap_content"
  59. android:layout_below="@id/domain"
  60. android:layout_toRightOf="@id/download_icon"
  61. android:layout_toLeftOf="@id/complete_date"
  62. android:textAppearance="?android:attr/textAppearanceSmall"
  63. android:visibility="gone"
  64. />
  65. <ProgressBar android:id="@+id/download_progress"
  66. style="?android:attr/progressBarStyleHorizontal"
  67. android:layout_width="fill_parent"
  68. android:layout_height="wrap_content"
  69. android:layout_below="@id/download_icon"
  70. android:layout_alignParentLeft="true"
  71. android:layout_alignParentRight="true"
  72. android:max="100"
  73. />
  74. <TextView android:id="@+id/progress_text"
  75. android:layout_width="wrap_content"
  76. android:layout_height="wrap_content"
  77. android:maxLines="1"
  78. android:textAppearance="?android:attr/textAppearanceSmall"
  79. android:layout_centerHorizontal="true"
  80. android:layout_below="@id/download_progress"
  81. />
  82. </RelativeLayout>