Fixed: “Android: Detecting focus/pressed color”

后端 未结 3 1238
离开以前
离开以前 2020-12-25 08:17

I\'m trying to detect the focus/pressed color for button and other elements. This is needed because I\'m developing new components and it\'s important that those look as par

3条回答
  •  醉梦人生
    2020-12-25 08:24

    Those aren't colors. They are a few nine-patch images out of a StateListDrawable. I am skeptical that there will be a reliable way for you to determine what the color is, one that will work across all devices and all versions of Android.

提交回复
热议问题