Create your account

Already have an account? Login here

Note: By joining, you will receive periodic emails from Coursetro. You can unsubscribe from these emails.

Create account

55. Setup Dialog Add in XML

Design + Code an Android App from Scratch

Woah, wait a second..

Scrounge up some loose change to become a pro member, or login to your account to view this lesson.

Alright, join now. Or login to your account if you're already a pro member.

This video shows how to create the XML layout for the Dialog responsible for adding items in our Bucket Drops app. In the first step we create the layout file with a RelativeLayout as the root element, it has a TextView that displays “Add a Drop” followed by an ImageButton to let the user close the Dialog. We have an EditText below to let the person enter their drop or goal and a custom Date Picker that lets them set the Date below this followed finally by the Button that lets you add a drop. We use the Android Studio Drawable Importer plugin to add the necessary icons.

Course Cirriculum