Creating the description box

Now that the base layout is set up, it's time to start adding the widgets to the user interface and make it useful. In this next stage, you'll be using several Material Design widgets that help produce great user interfaces, such as CardView and the TextInputLayout widget. Before Material Design, text input boxes were just plain EditText widgets, which while still available, are now generally discouraged in favor of a TextInputLayout. The TextInputLayout is a specialized layout that contains a single EditText widget for the user to enter text data. The TextInputLayout then also provides the floating hint/label effect and animations, transitioning the EditText widgets hint to a label space just above the input ...

Get Hands-On Android UI Development now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.