An Android Fragment that displays a dialog window, floating on top of its activity's window.
Questions tagged [dialogfragment]
472 questions
0
votes
1 answer
Is it impossible to dynamically add custom layouts using addView()?
I am making a window to open a dialog window and write a comment.
When you open the dialog window, there is a layout where you can enter your first comment.
Comment can only be written in one line and the following comment layout is created by…

ybybyb
- 1,385
- 1
- 12
- 33
0
votes
1 answer
Dialog Fragment Bundle always null
I just want to send data from Fragment to DialogFragment. In Fragment ;
val fm = requireActivity().supportFragmentManager
val dialog = DialogFragmentName()
val arg :Bundle? =null
arg?.putInt("num",75)
…

Abdulsamet Kılınçarslan
- 262
- 4
- 11
0
votes
2 answers
How can I Remove title from DialogFragment?
I have been trying for a while to remove the title of a DialogFragment, but several attempts have failed.I have made a DialogFragment which shows the profile of the user but it has a top title show. When I use…
user12790690
0
votes
1 answer
DialogFragment call failed
When you click on the CardView, a DialogFragment should appear, but the application crashes, writes the following in the logs
Process: com.example.testfuntura, PID: 15385
java.lang.ClassCastException: android.view.ContextThemeWrapper cannot be…
user14592582
0
votes
1 answer
DialogFragment UI still remains after dismiss
I have a custom dialog fragment, the issue I am facing is that when the dismiss function is called, the dialog UI still remains on the screen even tho it's actually dismissed.
The onDismiss function is also called but the UI still sits on the parent…

Mehdi Satei
- 1,225
- 9
- 26
0
votes
0 answers
Xamarin.Android: Getting "Error inflating class fragment" exception while showing DialogFragment after another DialogFragment
I am trying to show 2 DialogFragments one after another with different contents. When I show them seperately for testing, both work fine perfactly, but when I try to show them one after another, the I got the following…

user6159419
- 247
- 2
- 19
0
votes
0 answers
NestedFragment in DialogFragment
I have a DialogFragment which contains a FragmentContainerView with the following layout:

Daniel
- 1
- 2
0
votes
1 answer
How to define gravity of a Dialog Fragment?
I want my dialog to stick to the start but it always comes in the center.

Sweta Jain
- 3,248
- 6
- 30
- 50
0
votes
1 answer
Android customizing DialogFragment issue
I'm trying to customize layout of a DialogFragment my idea was to create a rounded corners dialog with buttons text color set to colorPrimary:
import android.app.Dialog;
import android.content.Context;
import android.content.DialogInterface;
import…

weirdgyn
- 886
- 16
- 47
0
votes
0 answers
Getting data from ACTION_GET_CONTENT in a Dialog fragment, then send it to another fragment via onActivityResult
The idea is to get a file from the Intent.ACTION_GET_CONTENT in a fragment B into a DialogFragment, and transfer it to a fragment A which is not a part of the DialogFragment.
According to this, I'm trying to transfer the file via onActivityResult()…

Ruben Mim
- 136
- 1
- 6
0
votes
1 answer
How to draw a line within a view along the frame?
I'm trying to create a dialog fragment whose frame has a line that gets smaller (like a snake) at a certain time, of course in animation.
It's like in Waze application, only that the line is complete and small at first.
Pay attention to the…

Yonibagi
- 147
- 10
0
votes
2 answers
Android Studio: How to close a dialog fragment from a recyclerview(adapter.java) hosted in a fragment
I have a dialog fragment in a recyclerview which works fine. The problem is i am not able to close it after the user has selected one of the options from the dialog fragment (The dialog fragment has another recyclerview populating it on whose item…

Saqib
- 377
- 4
- 7
0
votes
1 answer
Avoid activity!! when extending DialogFragment
I'm using DialogFragment and in the onCreateDialog I need to use the Activity's reference.
The issue is that with the latest support library (28.0.0), the activity becomes nullable, so when using AlertDialog.Builder in onCreateDialog I'm forced to…

A._
- 23
- 6
0
votes
1 answer
Disable blackout when open BottomSheetDialogFragment
If I can disable activity blackout when BottomSheetDialogFragment showing?

syncended
- 81
- 1
- 7
0
votes
1 answer
How to customize a DialogFragment?
I try to create a custom DialogFragment. The problem is it does not look the way I want it to be.
I created a layout:

Dinu Nicolae
- 1,019
- 2
- 17
- 42