MaterialTextField icon indicating copy to clipboard operation
MaterialTextField copied to clipboard

different cardcolor and editText backgrounds

Open bmbariah opened this issue 10 years ago • 6 comments

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

bmbariah avatar Aug 28 '15 16:08 bmbariah

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 ?

florent37 avatar Aug 28 '15 20:08 florent37

Yes..How can that be achieved?

bmbariah avatar Aug 29 '15 12:08 bmbariah

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

bmbariah avatar Aug 29 '15 13:08 bmbariah

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

florent37 avatar Aug 31 '15 08:08 florent37

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?

varunagarwal315 avatar Sep 11 '15 05:09 varunagarwal315

@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

mridah avatar Aug 02 '17 07:08 mridah