view_anim.xml 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3. xmlns:tools="http://schemas.android.com/tools"
  4. android:layout_width="match_parent"
  5. android:layout_height="match_parent">
  6. <LinearLayout
  7. android:id="@+id/rl_one"
  8. android:layout_width="match_parent"
  9. android:layout_height="match_parent"
  10. android:orientation="horizontal"
  11. >
  12. <ProgressBar
  13. android:id="@+id/pb_one"
  14. android:layout_width="30dp"
  15. android:layout_height="match_parent"
  16. android:indeterminateOnly="false"
  17. android:max="80"
  18. android:progressDrawable="@drawable/progress_vertical_gradient_simple_shape" />
  19. <FrameLayout
  20. android:layout_width="0dp"
  21. android:layout_height="match_parent"
  22. android:layout_weight="1"
  23. android:background="#FFFFFF"
  24. android:alpha="0.1"/>
  25. />
  26. <ProgressBar
  27. android:id="@+id/pb_two"
  28. android:layout_width="30dp"
  29. android:layout_height="match_parent"
  30. android:layout_alignParentRight="true"
  31. android:indeterminateOnly="false"
  32. android:max="80"
  33. android:progressDrawable="@drawable/progress_vertical_gradient_simple_shapev2" />
  34. </LinearLayout>
  35. <RelativeLayout
  36. android:id="@+id/rl_two"
  37. android:layout_width="match_parent"
  38. android:layout_height="match_parent"
  39. android:visibility="gone">
  40. <FrameLayout
  41. android:layout_width="40dp"
  42. android:layout_height="match_parent"
  43. android:layout_alignParentLeft="true"
  44. android:background="@drawable/test_color_left" />
  45. <FrameLayout
  46. android:layout_width="40dp"
  47. android:layout_height="match_parent"
  48. android:layout_alignParentRight="true"
  49. android:background="@drawable/test_color_right" />
  50. </RelativeLayout>
  51. </RelativeLayout>