I'm trying to create a Payment Gateway, which will look a little different from the tradition Gateway looks.
Here I want a simple form in which I'll have the following EditText fields:
- Card Number
- Expiry Date
- CVV
- Name on Card
Now I want it to work the following way:
When the user hasn't typed his card number in the Card EditText field, the rest of the EditText fields won't be visible.
When the user starts typing in his card number in the Card EditText, a new pane should slide out right below the Card EditText field & it should contain the Expiry Date & CVV EditText fields.
Once the user starts tying in the CVV field, a new pane should slide out right below the CVV field & should show the EditText field for Name on Card.
How do I achieve this on Android?