An Android Fragment that displays a dialog window, floating on top of its activity's window.
Questions tagged [dialogfragment]
444 questions
6
votes
1 answer
How can I set a minute interval in DialogFragment
I'm trying to set a 10 minute interval in the android DialogFragment(suggested by google), but I really can't find a way to do it.
Here is the fragment class wich shows the dialog:
public class TimePickerFragment extends DialogFragment
…
Slim
- 1,563
- 5
- 32
- 58
6
votes
3 answers
DialogFragment with custom ListView
I'm trying to create a DialogFragment that shows a dialog with a custom ListView inside.
public class MultiSelectDialogCustom extends DialogFragment {
ListView mLocationList;
private ArrayList mOfficeListItems = new…
TrtG
- 2,548
- 6
- 24
- 38
6
votes
3 answers
How to move a DialogFragment out of the center?
Is it possible by using a DialogFragment to be able to move it out of the center and place it anywhere on the screen?
bardao
- 772
- 6
- 21
5
votes
0 answers
Modal BottomSheet infront of navigation bar
I am trying my hands on BottomSheetDialogFragment to build a modal bottom sheet, but as you can see in the screenshot, instead of sliding up behind the navigation bar, it is infront of it.
This is WHILE sliding up. When it's completely up, it is…
Florian Walther
- 4,170
- 2
- 24
- 63
5
votes
0 answers
difference between Dialog and DialogFragment in android?
Upon reviewing the docs in android I've noticed the classes: Dialog and DialogFragment(standard, v4). The Tutorials seem to use the terms interchangeably, thus i'm confused as hell about their differences.
Tell me if i'm right with my…
3alto
- 179
- 1
- 9
5
votes
4 answers
Styling custom dialog fragment not working
I'm trying to style all my dialog fragments to look the same in my app. The dialogs coming from my settings fragment are styled exactly the way I want it. For my custom dialog fragments, the style is similar but not exactly the same. For some…
TrackDave
- 279
- 2
- 14
5
votes
3 answers
Not seeing EditNameDialogListener interface
I'd like to pass back user typed string in the dialog fragment: "AddFriendDialogFragment.java" back to the activity that had called it: "HomeActivity.java". I'm doing this thru an interface declared inside "AddFriendDialogFragment.java":…
jerryh91
- 1,669
- 9
- 41
- 74
5
votes
2 answers
RelativeLayout alignment rules don't work in DialogFragment
I have an about dialog with RelativeLayout. It works correctly in ordinary activity, but when I decided to move it into DialogFragment, most of alignment rules stopped working. Here is the layout:
Stan
- 8,365
- 9
- 53
- 99
5
votes
2 answers
getView's DialogFragment returning null on onDismiss
I have a custom dialog derived from DialogFragment.
When the user click in the OK button I need to save the information that is on the screen.
So I made my PositiveButton calls dismiss and I implemented the method onDismiss to save the data.
In the…
jonathanrz
- 3,714
- 6
- 30
- 49
4
votes
1 answer
Prevent DialogFragment from Resizing/Collapsing when Keyboard is Shown
I've been having issues getting my dialog fragments to NOT resize/collapse when a keyboard is shown. I've been having this problem with specific APIs like Android 30 but not with older APIs like Android 27. I've provided screenshots below and I can…
Adam Sousa
- 41
- 5
4
votes
1 answer
Keyboard blinks when AutoCompleteTextView dropdown is shown
I'm using AutoCompleteTextView inside DialogFragment. When it shows a dropdown list, keyboard hides and shows again very fast, it looks like a blink.
As possible solution, I found that it happens because of
AutoCompleteTextView {
…
Ufkoku
- 2,094
- 14
- 36
4
votes
0 answers
Proper way to inflate custom AlertDialog view within a DialogFragment in API 21 and above
Android Studio referred me to https://possiblemobile.com/2013/05/layout-inflation-as-intended/ for information about the layout inflate process and how to fix the "avoid passing null as the root view" warnings.
The recommendation is to always pass a…
Andy Roid
- 343
- 3
- 6
4
votes
2 answers
Do not show again checkbox on a DialogFragment
So the title explains it all. I have a dialogfragment that currently pops up and I want to add a do not show checkbox to it and then obviously implement that check and not show if it was checked. I know there is a .setSingleChoiceItems, but I am not…
James Robert Singleton
- 431
- 2
- 6
- 21
4
votes
1 answer
Android setLayoutDirection on DialogFragment
I've recently finished building a project, and my next goal was to create a build flavor specially for RTL, one important note was that I need to force the RTL layout, independent from the device language.
So I managed to force RTL on most of the…
Nadav96
- 1,051
- 1
- 14
- 25
4
votes
3 answers
How to set FragmentDialog size to wrap to ListView
I have RecyclerView and when I long click on one of items FragmentDialog appears with custom layout: |@ text|. The problem is Fragment Dialog does not wrap area only to those 2 elements but takes almost entire screen place. The problem still appears…
anton86993
- 568
- 1
- 7
- 24