down_item.xml 2.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3. android:orientation="vertical" android:layout_width="match_parent"
  4. android:layout_height="match_parent">
  5. <RelativeLayout
  6. android:layout_width="match_parent"
  7. android:layout_height="50dp"
  8. android:layout_marginTop="10dp">
  9. <ImageView
  10. android:id="@+id/img_icon"
  11. android:layout_width="50dp"
  12. android:layout_height="50dp"
  13. android:layout_centerVertical="true"
  14. android:layout_marginLeft="10dp"
  15. android:src="@drawable/icon_sheep"
  16. />
  17. <LinearLayout
  18. android:layout_width="wrap_content"
  19. android:layout_height="wrap_content"
  20. android:orientation="vertical"
  21. android:layout_centerVertical="true"
  22. android:layout_marginLeft="10dp"
  23. android:layout_toRightOf="@id/img_icon"
  24. >
  25. <TextView
  26. android:id="@+id/tv_game_name"
  27. android:layout_width="wrap_content"
  28. android:layout_height="wrap_content"
  29. android:textColor="@color/black_dark"/>
  30. <TextView
  31. android:id="@+id/tv_prorgess"
  32. android:textColor="@color/theme"
  33. android:layout_width="wrap_content"
  34. android:layout_height="wrap_content"
  35. android:textSize="16sp"
  36. android:layout_marginTop="10dp"
  37. android:layout_marginRight="10dp"
  38. />
  39. </LinearLayout>
  40. <LinearLayout
  41. android:layout_width="wrap_content"
  42. android:layout_height="wrap_content"
  43. android:orientation="horizontal"
  44. android:layout_alignParentBottom="true"
  45. android:layout_alignParentRight="true"
  46. android:layout_centerVertical="true"
  47. android:layout_marginRight="10dp"
  48. android:layout_marginTop="10dp"
  49. >
  50. <ImageView
  51. android:id="@+id/iv_state"
  52. android:layout_width="wrap_content"
  53. android:layout_height="wrap_content"
  54. android:padding="5dp"
  55. android:src="@drawable/icon_stop"
  56. />
  57. <ImageView
  58. android:id="@+id/iv_remove"
  59. android:layout_width="wrap_content"
  60. android:layout_height="wrap_content"
  61. android:padding="5dp"
  62. android:layout_marginLeft="10dp"
  63. android:src="@drawable/icon_delet"
  64. />
  65. </LinearLayout>
  66. </RelativeLayout>
  67. <ProgressBar
  68. android:id="@+id/pb_download"
  69. style="?android:attr/progressBarStyleHorizontal"
  70. android:layout_width="match_parent"
  71. android:layout_height="wrap_content"
  72. android:layout_marginLeft="10dp"
  73. android:layout_marginRight="10dp"
  74. />
  75. </LinearLayout>