Custom Dialog – Android Example

Let’s start with customizing the default AlertDialog. See the post Default Alert Dialog to learn how to use default alert dialog. See flowing Steps : Create a custom alert dialog layout with EditText (XML file). Inflate the custom layout to AlertDialog.Builder. Attach the AlertDialog.Builder to AlertDialog. Show the custom dialog

Creating Views, Layouts Programatically

We already learned how to create simple widgets like TextView, Button, ImageView, LinearLayout etc. In this tutorial we are going to learn how to create these widgets programatically. See flowing Steps : Create simple layout file with one parent view. In this example I’ve added ScrollView to accommodate newly created views. In create new View Create LayoutParams and attach them […]