image in the footer frame of an alert dialog - android

I would like to put an image in the footer frame of the alert dialog.
can someone please tell if it is possible, and how?
I know it is possible to create a custom dialog, is it the only way?

Have a look at this, which gives a idea to create custom alertdialog.
http://android-er.blogspot.com/2011/06/custom-alertdialog.html

try to find method related to load a image in alert dialog box and then call that method with the object of AlertDialog.Builder and give image path in that...I dont know whether it will work or not but still we can try it...

Related

Android Input View (Dialog?)

I want to show an input dialog exactly like this:
On the android dev page I couldn't find a fitting dialog type? (Alerts, simple dialogs and confirmation dialogs)
I would appreciate it if someone could explain which component this is.
You should use simple Dialog fragment.
Refer following link http://stacktips.com/tutorials/android/android-dialog-fragment-example

Create dialog like DatePicker

I need to do a dialog like DatePicker or TimePicker, but the dialogue should display my data. Is this possible, or do I need to do a custom view for this?
Sorry, but I can't comment because I don't have enough rep.
There isn't a ready out of the box dialog that allows custom data to be set. I supposed the best approach would be to create a custom layout with a NumberPicker and then set it as your dialog's view.
This answer should point you to right direction.

Can OnLongClickListener for Android be used in an AlertDialog?

I have a list of options that are shown in an AlertDialog. The AlertDialog populates the list from a SharedPreferences file. Currently the user makes a selection, the AlertDialog closes and depending on the choice some edit text fields are filled in.
I would like to add an OnLongClickListener call to each option in the list, which when utilized would pop up another AlertDialog, over the top of the existing one, with a simple "are you sure you want to delete this?" question, then a yes and no button.
The dialog creation is simple, I just want to know if the OnLongClickListener can be applied and if AlertDialogs can be down on top of each other?
my answer here may help with adding an OnLongClickListener. The code I added is at the bottom of my response.
You can accomplish what you want by setting a new OnShowListener on your dialog and overriding the onShow() method

Android AlertDialog Builder Issue with image

I am trying to make a application where a dialog will come from where user will be able to choose an option...
I want the alert dialog like this,,,
An image with the corresponding text
Here is the sample image I am looking ..
http://garr.me/wp-content/uploads/2009/12/sharevia.jpg
I also want to change the "share picture via" text.
Thanks in advance
Tanmay
Please see my answer to this question: android image inside single select

Alert in android

I am having a bitmap image. Can i show it in a Alert Dialog in android?
You can create a custom dialog.
you can simply call the AlertDialog.Builder and set your image in there as setIcon(Drawable )
this way you will be able to put up you image on Dialog..
Similar to what Abhinava said, you can also create an ImageView, place your bitmap in there, and send the ImageView to the builder using AlertDialog.Builder.setView(View).
The difference here being that your bitmap will be shown in the content area of the alert dialog instead of in the title.

Categories

Resources