MrEngineer13 / SnackBar

toast-like alert pattern for Android inspired by the Google Material Design Spec

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Text Selector color for SnackButton

yelinaung opened this issue · comments

Hi, I noticed that the default text selector for the SnackButton seems a bit odd.

  <item android:state_pressed="true"
        android:color="#22000000"/> <!-- pressed -->
  <item android:state_focused="true"
        android:color="#22000000"/> <!-- focused -->
  <item android:color="#ffffff"/>  <!--default --> 

screen shot - - at

I feel that state_pressed and state_focused should be only slightly darker. It's just what I think. I am not sure whether you put it purposely or not.

The reason I did it so dark was because I was using a TextView instead of a Button so the state_pressed and state_focused had to be noticeably darker. The next time I update the colors I'll take this into consideration. Also, if that is too dark you can set your own custom text color.