activity_count_down.xml 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3. xmlns:app="http://schemas.android.com/apk/res-auto"
  4. xmlns:tools="http://schemas.android.com/tools"
  5. android:layout_width="match_parent"
  6. android:layout_height="match_parent"
  7. tools:context=".activity.CountDownActivity">
  8. <LinearLayout
  9. android:layout_width="match_parent"
  10. android:layout_height="wrap_content"
  11. android:layout_marginTop="30dp"
  12. android:orientation="horizontal">
  13. <com.xunao.effectdemo.view.circleprogress.DialProgress
  14. android:id="@+id/dial_progress"
  15. android:layout_width="80dp"
  16. android:layout_height="80dp"
  17. android:layout_gravity="center_horizontal"
  18. android:progress="0"
  19. app:animTime="0"
  20. app:arcColors="@color/colorAccent"
  21. app:arcWidth="5dp"
  22. app:bgArcColor="@color/textGrayColor"
  23. app:dialIntervalDegree="12"
  24. app:dialWidth="2dp"
  25. app:hint=""
  26. app:hintSize="10sp"
  27. app:maxValue="10"
  28. app:startAngle="-90"
  29. app:sweepAngle="360"
  30. app:unit=""
  31. app:unitSize="10sp"
  32. app:value="60"
  33. app:valueSize="10sp" />
  34. <com.xuexiang.xui.widget.progress.HorizontalProgressView
  35. android:id="@+id/hpv_language"
  36. android:layout_marginLeft="10dp"
  37. android:layout_width="match_parent"
  38. android:layout_height="30dp"
  39. android:layout_gravity="center_vertical"
  40. android:progress="60"
  41. app:hpv_end_color="@color/xui_btn_blue_normal_color"
  42. app:hpv_end_progress="60"
  43. app:hpv_isTracked="true"
  44. app:hpv_progress_duration="20"
  45. app:hpv_progress_textColor="#696969"
  46. app:hpv_progress_textVisibility="false"
  47. app:hpv_start_color="@color/xui_btn_blue_normal_color"
  48. app:hpv_start_progress="0"
  49. app:hpv_track_color="#f4f4f4"
  50. app:hpv_track_width="8dp" />
  51. </LinearLayout>
  52. <Button
  53. android:id="@+id/btn_start"
  54. android:text="开始"
  55. android:layout_alignParentBottom="true"
  56. android:layout_marginBottom="100dp"
  57. android:layout_centerHorizontal="true"
  58. android:layout_width="wrap_content"
  59. android:layout_height="wrap_content"/>
  60. </RelativeLayout>