florent37 / MaterialTextField

A different beautiful Floating Edit Text
Apache License 2.0
1.49k stars 239 forks source link

different cardcolor and editText backgrounds #2

Open bmbariah opened 9 years ago

bmbariah commented 9 years ago

HI, is it possible to have a separate color for the cardColor( before being pressed) and the Edit text field, after being pressed..setting edittext background doesn't work

florent37 commented 9 years ago

yes I set null to the edittext background, you want to have, for example, an EditText with black background on a white card ?

or change the color of the card depending on collapsed/expanded ?

bmbariah commented 9 years ago

Yes..How can that be achieved?

bmbariah commented 9 years ago

Also it doesn't work well with kitkat and below... Finally, can we change height of the collapsed card?

florent37 commented 9 years ago

I added an attribute to change the height and fixed the pre-lollipop on the 1.0.2

varunagarwal315 commented 9 years ago

Im having a similar issue. say I want the label to be blue for which I type app:mtf_labelColor="#0000ff" but I want the edit text to look like a white box like how it does when i set background of edit text to #FFFFFF but the card outline and bottom line when it is collapsed to be say black. So it looks like an edit text with a white background and a black line surrounding it, with the blue label. Any way to achieve this sir?

mridah commented 7 years ago

@florent37 any update on this issue ? even I want a similar thing: white label and red edittext. how can I achieve this ?

Also, is there a way to use this with multiline edittext ? i tried using minLines and lines in edittext, but it doesn't seem to work