dbachelder / CreditCardEntry

Smooth UI for Credit Card Entry on Android device, regex check for supported credit card types and luhn check. Inspired by Square credit card entry interface
MIT License
503 stars 166 forks source link

Weird layout issues? margin/padding #33

Closed MiralDesai closed 9 years ago

MiralDesai commented 9 years ago

Have you noticed that when using this library that the field to enter the details has a weird margin/padding around it?

I want to be able to put another EditText right below this view with no spaces and it won't let me. It has a padding/margin somewhere that is sticks too.

I can't seem to find anywhere in the code to change this, do you know where I can change it in the library?

It looks very weird, because this view sits at the top of my layout, then there's a gap and all my other EditTexts are below that gap, but that are sitting close to each other with no margins or padding.

MiralDesai commented 9 years ago

In developer options when I enable "show layout bounds" it looks like your library has some empty views right below it which create the space. Maybe a bug?

dbachelder commented 9 years ago

That's where the "helper text" goes. You can disable it: app:include_helper="false"

MiralDesai commented 9 years ago

Thanks, will look into this.