notification_progressbar.xml 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  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. android:layout_centerVertical="true"
  6. >
  7. <ImageView
  8. android:id="@+id/imageView1"
  9. android:layout_width="wrap_content"
  10. android:layout_height="wrap_content"
  11. android:layout_alignParentLeft="true"
  12. android:layout_centerVertical="true"
  13. android:layout_marginLeft="5dp"
  14. android:src="@drawable/download" />
  15. <RelativeLayout
  16. android:layout_width="match_parent"
  17. android:layout_height="match_parent"
  18. android:layout_alignBottom="@+id/imageView1"
  19. android:layout_alignTop="@+id/imageView1"
  20. android:layout_toRightOf="@+id/imageView1"
  21. android:layout_centerVertical="true"
  22. android:layout_marginLeft="15dp"
  23. >
  24. <TextView
  25. android:id="@+id/text"
  26. android:layout_width="wrap_content"
  27. android:layout_height="wrap_content"
  28. android:layout_alignBottom="@+id/title"
  29. android:layout_marginLeft="6dp"
  30. android:layout_toRightOf="@+id/title"
  31. android:text="当前进度50%"
  32. android:textSize="15dp"/>
  33. <ProgressBar
  34. android:id="@+id/progress"
  35. style="?android:attr/progressBarStyleHorizontal"
  36. android:layout_width="fill_parent"
  37. android:layout_height="wrap_content"
  38. android:layout_marginTop ="4dp"
  39. android:layout_alignLeft="@+id/title"
  40. android:layout_below="@+id/text"
  41. android:layout_marginRight="25dp"
  42. android:max="100" />
  43. <TextView
  44. android:id="@+id/title"
  45. android:layout_width="wrap_content"
  46. android:layout_height="wrap_content"
  47. android:text="更新提示:"
  48. android:textSize="15dp"/>
  49. </RelativeLayout>
  50. </RelativeLayout>