【问题标题】:Color combination for my Button(Android) [closed]我的按钮(Android)的颜色组合[关闭]
【发布时间】:2017-06-10 08:53:01
【问题描述】:

我的 LinearLayout 有这张图片作为背景: Background image

我有这个可绘制对象:

<?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>

我可以使用什么颜色代替 COLOR1、COLOR2、color3 以与背景颜色形成最佳对比。

【问题讨论】:

标签: android colors android-drawable


【解决方案1】:

这应该会有所帮助:Link

例如: 颜色一:#ED5565,颜色二:#DA4453

【讨论】:

    猜你喜欢
    • 2019-05-05
    • 2010-09-06
    • 2013-04-20
    • 2023-01-17
    • 1970-01-01
    • 2021-03-07
    • 2013-03-02
    • 2015-08-16
    • 1970-01-01
    相关资源
    最近更新 更多