0

I want to get a gradient background but it gives me color banding.
How do i get a smooth gradient?

this is my xml code:

<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android">

    <gradient android:angle="90"
        android:startColor="@color/black"
        android:endColor="@color/top_background_home"
        android:type="linear" />

</shape>
android:background="@drawable/background_home"
fdermishin
  • 3,519
  • 3
  • 24
  • 45
Renza Polza
  • 87
  • 1
  • 8
  • Plz check https://stackoverflow.com/questions/13929877/how-to-make-gradient-background-in-android – Shalu T D Jul 26 '20 at 14:30
  • This is a other question cause I know how to make a gradient but there is color banding and i want to get rid of it. – Renza Polza Jul 26 '20 at 14:35
  • 4
    Does this answer your question? [Android gradient NEVER works (always banding)](https://stackoverflow.com/questions/21985385/android-gradient-never-works-always-banding) – fdermishin Dec 21 '20 at 18:14

0 Answers0