Questions tagged [customdialog]
338 questions
0
votes
3 answers
Fix orientation of screen on Dialog view
I am using a custom dialog in my activity. I want to set the screen orientation only if the dialog is shown elsewhere the screen orientation can change to portrait to landscape vice versa. Is there any way to fix the orientation for such particular…

Aashutosh Sharma
- 1,483
- 2
- 17
- 29
0
votes
1 answer
How to create a custom dialog title in android?
How to access the title of the dialog to change the typeface font ( to create a custom title of dialog) ?

Adham
- 63,550
- 98
- 229
- 344
0
votes
1 answer
Custom DialogBox Alert in Android is not Prompting
Following is the code I have created for 2 dialog boxes: namely Date Picker and Custom Dialog Box on submit of 2 buttons namely btnselDate and btnAlertDialog.
Date Picker dialog is working properly but there is some problem with Custom Dialog…

Rushabh
- 385
- 2
- 5
- 14
0
votes
1 answer
android custom dialog error
I'm trying to create a custom dialog and I'm having some trouble.
The custom dialog is to be shown after the user press the menu button and pick an option.
Here is the code:
@Override
public boolean onCreateOptionsMenu(Menu menu) {
…

Favolas
- 6,963
- 29
- 75
- 127
0
votes
2 answers
Custom Dialog with listview and listitems having different background at alternate items?
I am creating a custom dialog having two images as a title and a listview inside the dialog.
in that listview there is some items i am showing and now i want that the items in the listview should get different background?
like suppose i have 5 items…

Jpm
- 166
- 4
- 18
0
votes
1 answer
Android Menu to CustomDailog - app forcecloses itself
This is the code i have used for the menu item selection:
public boolean onOptionsItemSelected(MenuItem item) {
switch (item.getItemId()) {
case R.id.menu_settings:
showDialog(1);
return true;
default:
…

Prateek Garg
- 23
- 6
0
votes
2 answers
Android: Creating custom Dialog with List
I'm trying to customize a Dialog. It should take Strings from the DB and populate a list.
My Dialog:
public class CountriesDialog extends AlertDialog {
private Context context;
private Vector countries;
private ListView listView;
private…

Emaborsa
- 2,360
- 4
- 28
- 50
0
votes
1 answer
Browse button used in to install .cer file in custom dialog using wix
I did not find type in control to browser and upload file in custom dialog in wix.
Type="PathEdit" browse the folder only , can not select file.

SanG
- 57
- 1
- 6
0
votes
2 answers
null pointer exception in custom dialog in android?
i am creating alarm application , i have created a custom dialog with edit texts and a save button , when i click save button these data to be saved in DB , but i am getting NULL POINTER EXCEPTION at
Savebutton.setOnClickListener(new…

Anwesh
- 91
- 1
- 1
- 12
0
votes
1 answer
multiple time picker in custom dialog?
i am doing an application based on alarm manager, i have to set multiple time picker in CUSTOM DIALOG BOX ,
i just created custom dialog box and dynamically displaying multiple buttons using spinner .
i am getting an error at
protected Dialog…

Anwesh
- 91
- 1
- 1
- 12
0
votes
1 answer
Marker not getting displayed when adding within a dialog box onclick
I'm trying to add a marker on the map when user click on the map,
When i add the tabbed location marker within the onTouchEvent the map showing the corresponding marker at the tabbed place, (The values of title and snippet are hard coded).
But, the…

code-jaff
- 9,230
- 4
- 35
- 56
0
votes
1 answer
Custom Dialog not displaying - Android
I'm trying to pop up a custom dialog when I click on a button but it won't pop up at all. my app is basically a calendar and I'm going to use sqlite to add/hold appointments and stuff to a date in the calendar using the dialog, which is where the…

a7omiton
- 1,597
- 4
- 34
- 61
0
votes
1 answer
Activity in dialog
I want to show an activity in dialog as shown in the picture below. Does any one know how can to achieve this result?
I tried using this code for that activity but it didn't help me.
android:theme="@android:style/Theme.Dialog"
It shows in middle…

Chirag Patel
- 11,416
- 3
- 26
- 38
-1
votes
1 answer
Unable to implement code for Custom Dialog in Android
I want to implement Custom Dialog in Android. However , when I tried it on my own I am unable to run my code.
I am getting an error in these statements in Eclipse:
1) Button button1main = (Button) findViewById(R.id.*btn1*);
2) TextView text =…

Parth Doshi
- 4,200
- 15
- 79
- 129
-1
votes
2 answers
Display Toast in custom dialog but context cannot be read
I'm trying to create a custom dialog where it will show a toast when the user click on the positive button, but I got an error on the Toast line. What is the problem and how to resolve it? I think it has something to do with the context. The error…

Irfan
- 77
- 1
- 9