Issue
My LinearLayout has this image for background: Background image
I have this drawable:
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="rectangle" >
<corners
android:radius="14dp"
/>
<gradient
android:angle="45"
android:centerX="35%"
android:centerColor="COLOR1"
android:startColor="COLOR2"
android:endColor="COLOR3"
android:type="linear"
/>
<padding
android:left="0dp"
android:top="0dp"
android:right="0dp"
android:bottom="0dp"
/>
<size
android:width="270dp"
android:height="60dp"
/>
<stroke
android:width="3dp"
android:color="#878787"
/>
</shape>
Instead of COLOR1, COLOR2, color3 what colors I could use to the best possible contrast with the colors of the background.
Solution
This should help: Link
For Instance: Color 1: #ED5565, Color 2: #DA4453
Answered By - user7466693
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.