An Android Fragment that displays a dialog window, floating on top of its activity's window.
Questions tagged [dialogfragment]
472 questions
0
votes
2 answers
Activity calling a DialogFragment: Dialog does not always get dismissed
I have an Activity that calls a DialogFragment like this:
private fun showDeleteDetailDialog(itemView: View, categoryId: String, detailId: String) {
val dialog = DeleteDetailDialogFragment.newInstance(categoryId, detailId)
…

CEO tech4lifeapps
- 885
- 1
- 12
- 31
0
votes
1 answer
How make item Visible/Invisible in Main Layout OnDismiss Dialog Fragment event?
I have created dialog fragment in my Xamrin Android application.
On button click from main layout, i am opening dialouge fragment.On dialouge fragment activity creation I am hiding(invisible) all buttons on home page(working perfectly in my…

Bhavik Modi
- 13
- 4
0
votes
3 answers
Kotlin: How do I call a DialogFragment from within an Adapter class?
I have a MainAdapter.kt class that handles a RecyclerView. In its Holder class, I use a OnLongClickListener that calls a function deleteCategory(categoryId) to delete an entry in my Firebase database. This works perfectly:
class CategoryHolder(val…

CEO tech4lifeapps
- 885
- 1
- 12
- 31
0
votes
1 answer
Content under fullscreen dialog clickable
In my app I am using fullscreen dialogs (DialogFragment). However content under these dialogs is still clickable when dialog is shown and it would be tiresome to disable/enable everything programmatically if dialog is currently shown or not.
I am…

Saintan
- 408
- 3
- 9
0
votes
1 answer
Android: Apply ActionMode to a DialogFragment
I'm having some trouble using ActionMode with a DialogFragment and hope someone can point me to a solution.
When I start actionmode in my DialogFragment the actionmode is applied to the parent fragment/activity and not the toolbar in the…

Bohsen
- 4,242
- 4
- 32
- 58
0
votes
1 answer
Activity crashes when dialogFragment is opened and onPause() is called
I made a custom dialog (extends DialogFragment) that appears in several activities.
If the activity comes to foreground while the dialog is opened, I get the following error:
FATAL EXCEPTION: main
Process: package.name, PID:…

Faustino Gagneten
- 2,564
- 2
- 28
- 54
0
votes
0 answers
Widgets Initialization Crash
My program is to get the Tutor's LastName, FirstName, and MiddleName from an EditText in DialogFragment. Here's the code of my DialogFragment:
public class AddInstructorDialog extends android.app.DialogFragment
{
DatabaseHelper myDb;
View…

Roeben Pierce
- 3
- 5
0
votes
1 answer
DialogFragment show only the Buttons even the layout has more
As the picture show the DialogFragment It´s all white except for the Buttons. I have tried all kinds of layout parrams and ConstraintLayout settings but the white background feels like it´s some z-order thing,
Please advice
This is what the…

Tord Larsen
- 2,670
- 8
- 33
- 76
0
votes
2 answers
Passing Back Data from a DialogFragment to Its Calling Activity?
My goal is to pass a String from a DialogFragment to its calling Activity. If I understand correctly, I think there exists a need to implement an interface inside the calling Activity. I think the purpose includes creating a "listener"…

Wes Lange
- 71
- 2
- 10
0
votes
0 answers
Android DetailsFragment transitions on DialogFragment do not work
I am following android tv tutorials from here:
Now I am stuck on DetailsFragment. In these demos is DetailsFragment set like a content of VideoDetailsActivity. When I start this new activity from main activity then I see nice animations(or…

user1063364
- 791
- 6
- 21
0
votes
2 answers
onCreateDialog in the general dialog fragment class returns null whenever I try to fetch the arguments which I set in my calling activity
This is the general Dialog Fragment class from where I set the arguments into the bundle
public class GeneralDialogFragment extends BaseDialogFragment {
public interface…

Sudeep
- 3
- 4
0
votes
1 answer
Passing data(ArrayList and Int) from Adapter to AlertDialog
I have CustomDialog class that extends DialogFragment. I want to get ArrayList from my Adapter. I Have this Exception java.lang.NullPointerException: Attempt to invoke virtual method 'java.io.Serializable…
user7996504
0
votes
1 answer
How to get such kind of dialog?
I want to have kind of pop shown in the given images. What should use ? Pop window, dialog or alert dialog. i have tried all of these, but not able to match the exact UI.

shaktisinghmoyal
- 312
- 1
- 5
- 14
0
votes
1 answer
Xamarin FindViewById NullReference Exception
I have a problem, whenever I try to add an eventhandler to a button I get a null reference exception, I am trying to create a popup window with a DialogFragment, where inside it I'm calling the view PopUpWindow which will show up on screen, but when…

Muhamed Krasniqi
- 1,134
- 1
- 13
- 20
0
votes
0 answers
MvvmCross Dialog Fragment
I'm developing a mobile app in Xamarin.Android using MvvmCross. In my app, I have added a button which should open a dialog fragment window when clicked. I went through the available tutorials but could not find proper solution. Has anyone tried…

samira sharma
- 1
- 1