Custom dialog with user input – Android Example

Let’s learn how to create Customized AlertDialog with EditText See following 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 Display the user input in main activity

person access_time March 2, 2015launch Read More

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

person access_time March 1, 2015launch Read More

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 MainActivity.java create new View Create LayoutParams and attach them […]

person access_time February 27, 2015launch Read More