Guest User

Untitled

a guest
Jan 19th, 2018
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.49 KB | None | 0 0
  1. <!-- Here centerX does not work -->
  2. <shape
  3. xmlns:android="http://schemas.android.com/apk/res/android"
  4. android:shape="rectangle">
  5.  
  6. <gradient
  7. android:centerX="30%"
  8. android:startColor="@android:color/transparent"
  9. android:endColor="@android:color/white"/>
  10.  
  11. </shape>
  12.  
  13. <!-- Here the startColor turns greyish -->
  14. <shape
  15. xmlns:android="http://schemas.android.com/apk/res/android"
  16. android:shape="rectangle">
  17.  
  18. <gradient
  19. android:centerColor="@android:color/white"
  20. android:centerX="30%"
  21. android:endColor="@android:color/white"
  22. android:startColor="@android:color/transparent" />
  23.  
  24. </shape>
  25.  
  26. <?xml version="1.0" encoding="utf-8"?>
  27. <layer-list xmlns:android="http://schemas.android.com/apk/res/android">
  28. <item android:left="100dp">
  29. <color android:color="@android:color/white"/>
  30. </item>
  31. <item android:width="100dp">
  32. <shape
  33. xmlns:android="http://schemas.android.com/apk/res/android"
  34. android:shape="rectangle">
  35. <gradient
  36. android:centerX="30%"
  37. android:endColor="@android:color/white"
  38. android:startColor="@android:color/transparent"/>
  39. </shape>
  40. </item>
  41. </layer-list>
  42.  
  43. <shape
  44. xmlns:android="http://schemas.android.com/apk/res/android"
  45. android:shape="rectangle">
  46.  
  47. <gradient
  48. android:startColor="#00ffffff"
  49. android:centerColor="#00ffffff"
  50. android:endColor="#ffffffff"
  51. android:centerX="30%" />
  52. </shape>
Add Comment
Please, Sign In to add comment