Creating a custom alert view in Android using C#

As mentioned in my earlier post, we can use the default AlertDialog class to display the alerts of screen by setting different properties and methods of it. But still there sounds like, we may need dialogs on screen which would be needed to be customized. They can be accept user inputs, can display an arranged info of an user etc.

How to do it ?


We will follow few simple steps

  • Create a custom view
  • Render the custom view in AlertDialog

Create a custom view


Let’s add a new layout to the project under Resources > layout.
AddedNewLayout

Read More

Quick Tips : Displaying an Alert in Android using MonoDroid

Displaying an informational alert on screen


Let’s just display a quick informative popup, which will only display an alert on screen with a title and a message in it. It actually gets closed when the back button get touched.

AndroidAlertWithoutButton

Let’s display the OK and Cancel button

We will add OK and Canel button. On click of the buttons, it will display a quick Toast message on screen in order
to differentiate which button is clicked.

Read More

%d bloggers like this: