dialog_horizontal_progressbar_view.xml 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3. xmlns:fingerth="http://schemas.android.com/apk/res-auto"
  4. android:layout_width="match_parent"
  5. android:layout_height="wrap_content"
  6. android:background="@color/trans"
  7. android:orientation="vertical">
  8. <LinearLayout
  9. android:id="@+id/dialog_progress_layout"
  10. android:layout_width="match_parent"
  11. android:layout_height="wrap_content"
  12. android:background="@drawable/drawable_round_white"
  13. android:orientation="vertical"
  14. android:paddingBottom="10dp"
  15. android:paddingLeft="15dp"
  16. android:paddingRight="15dp"
  17. android:paddingTop="10dp">
  18. <View
  19. android:layout_width="0dp"
  20. android:layout_height="0dp"
  21. android:layout_weight="3" />
  22. <TextView
  23. android:id="@+id/title_tv"
  24. android:layout_width="match_parent"
  25. android:layout_height="wrap_content"
  26. android:layout_gravity="center_horizontal"
  27. android:padding="5dp"
  28. android:singleLine="true"
  29. android:textColor="@color/gray_24"
  30. android:textSize="16sp" />
  31. <TextView
  32. android:id="@+id/message_tv"
  33. android:layout_width="match_parent"
  34. android:layout_height="wrap_content"
  35. android:layout_gravity="center_horizontal"
  36. android:padding="5dp"
  37. android:singleLine="true"
  38. android:textColor="@color/gray_24"
  39. android:textSize="14sp" />
  40. <View
  41. android:layout_width="0dp"
  42. android:layout_height="0dp"
  43. android:layout_weight="1" />
  44. <com.fingerth.supdialogutils.progressbar.horizontal.HorizontalWithNumberProgressBar
  45. android:id="@+id/horizontal_bar"
  46. android:layout_width="match_parent"
  47. android:layout_height="wrap_content"
  48. android:padding="5dp"
  49. android:progress="50"
  50. fingerth:progressbar_text_color="#0EFF96"
  51. fingerth:progressbar_unreached_color="#dddddd"
  52. fingerth:progressbar_reached_color="#0EFF96"
  53. />
  54. <View
  55. android:layout_width="0dp"
  56. android:layout_height="0dp"
  57. android:layout_weight="4" />
  58. </LinearLayout>
  59. </FrameLayout>