Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

wrong in text color #50

Open
i2863CookieZJ opened this issue Oct 11, 2017 · 5 comments
Open

wrong in text color #50

i2863CookieZJ opened this issue Oct 11, 2017 · 5 comments

Comments

@i2863CookieZJ
Copy link

i create the fletTextAppearance in style,and set textcolor,when the edittext get focus,flettext's color is right,but the textcolor is not work when lose focus.why? how to solve ?

@LunevNF
Copy link

LunevNF commented Jun 13, 2018

Yeah, I have the same issue. What's wrong? How to set color of label for not focused edittext?

@LunevNF
Copy link

LunevNF commented Jun 13, 2018

Ok. I was try to set color selector (res/color/label_color_selector.xml):

<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:state_focused="true" android:color="@color/colorLabeledEditText"/>
<item android:state_pressed="true" android:state_enabled="false" android:color="@color/colorLabeledEditText" />
<item android:state_enabled="false" android:color="@color/colorLabeledEditText" />
<item android:color="@color/colorLabeledEditText"/>

res/values/styles.xml:

<style name="floatlabelededittext">
    <item name="android:textColor">@color/label_color_selector</item>
</style>

But it steel not working!

@LunevNF
Copy link

LunevNF commented Jun 13, 2018

Ok. Just install rengwuxian/MaterialEditText and all be OK. This author don't want to help.

@heinrisch
Copy link
Contributor

heinrisch commented Jun 13, 2018

@nikitoSha Float labels are part of the support library now. I don't see why you would use a third party implementation...?

@LunevNF
Copy link

LunevNF commented Jun 13, 2018

А тебя это колышет что ли? По факту: у тебя есть библиотека, она херово отрабатывает. Решить проблему ты не можешь. Поэтому, естественно, я сейчас использую стандартный набор.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants