Making graident colors in xml (android studio)
Hello , today im gonna teach you how to make graident colors in xml ;
First right click drawble
and paste this code:
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle">
<gradient
android:angle="315"
android:type="linear"
android:startColor="first color"
android:centerColor="middle color"
android:endColor="end color"
/>
</shape>
<3
Comments
Post a Comment