How to set “absolute” area gradient?
问题 See the image below. The gradient is painted incorrectly, and the vertical black lines are just ugly. How do I create a gradient that stretches from min to max ? E.g. If I have a scale from 0 to 100 I want my area to use N of these 0..100 gradient values. How do I remove the vertical black lines? UPDATE: The provided answer works, except that I get this artifact: UPDATE 2: This only happens when using ONE LinearLayout as shown below: <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns