dialogfragment Questions
10
Solved
How can I listen to a FINAL dismissal of a BottomSheetDialogFragment? I want to save user changes on the final dismissal only...
I tried following:
Method 1
This only fires, if the dialog is dis...
Loft asked 15/11, 2016 at 18:11
15
I have a dialogfragment for a floating dialog which includes a special keyboard that pops up when a user presses inside an EditText field (the normal IME is stopped from being displayed).
I would ...
Candie asked 23/1, 2014 at 12:14
4
I have an IllegalStateException on showing a DialogFragment :
java.lang.IllegalStateException: Can not perform this action after onSaveInstanceState
i know why its happening but i want to using...
Blameworthy asked 24/5, 2015 at 13:57
2
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 An...
Cataphoresis asked 6/11, 2020 at 14:54
4
Solved
I created a full screen dialog with the official Guide
The problem is, that my Toolbar overlaps with the status bar and I cannot figure out how to solve this.
DialogFragment
public class Create...
Byelaw asked 17/3, 2016 at 17:3
3
Solved
There's a blue line appearing on top of my dialog fragment that I can't get rid off(I don't even know why does it appear in the first place. Does anybody know on how to get rid of this?
I have t...
Seismography asked 10/6, 2016 at 1:39
6
Solved
Is it possible to use a DialogFragment when using an Activity instead of a FragmentActivity? The show() methods needs a FragmentManager.
I want to implement a Dialog which contains just one EditTe...
Saucepan asked 24/6, 2013 at 23:57
6
I use DialogFragment (onCreateDialog) and ViewModel for it. But, when I try to pass getViewLifecycleOwner() to the LiveData::observe method I get the error below:
java.lang.IllegalStateException: ...
Indoaryan asked 19/2, 2019 at 12:15
6
I have a DialogFragment and I set animation for enter/exit in the onActivityCreated method as below:
@Override
public void onActivityCreated(Bundle arg0) {
super.onActivityCreated(arg0);
getDi...
Senecal asked 2/10, 2015 at 13:29
4
Solved
I've had a subclass of DialogFragment (android.support.v4.app.DialogFragment) in my app that worked fine for a long time. The dialog itself was constructed in onCreateDialog() callback.
Now, howev...
Chafin asked 18/1, 2017 at 22:32
1
Is there any way to display fragment on top of DialogFragment? When my BottomSheetDialogFragment is shown after some action I need to display another fragment (not type of dialog fragment) without ...
Gignac asked 26/6, 2020 at 13:22
8
Solved
I'm starting bottomSheetDialogFragment from a fragment A.
I want to select the date from that bottomSheetDialogFragment then set it in the fragment A.
The select date is already done, I just want ...
Metalware asked 12/4, 2018 at 10:56
8
Solved
In my dialog fragment, I am able to show the keyboard using
getDialog().getWindow().setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT STATE_VISIBLE);
but I am not able to hide it on dismis...
Abessive asked 18/1, 2017 at 17:30
1
Solved
What is correct way of using Android View Binding in DialogFragment()?
Official documentation mentions only Activity and Fragment:
https://developer.android.com/topic/libraries/view-binding
Knowledge asked 14/4, 2020 at 10:5
4
Solved
I am using DialogFragment with ListView (to list all customer) and EditText (to search from list), it's working fine. But, whenever the dialog shows from the fragment, the keyboard is always shown ...
Serow asked 30/8, 2013 at 10:42
3
Solved
I could not find proper lifecycle of android.support.v4.app.DialogFragment by searching on Google. I need this for some implementation. As we know DialogFragment has some methods same like Dialog.
...
Dismember asked 31/7, 2018 at 13:42
7
Solved
I have a DialogFragment that is styled to full screen using setStyle(STYLE_NORMAL, R.style.Theme_App).
The DialogFragment shows fine but the up action (the homeAsUp action on the ActionBar) does ...
Rubric asked 10/6, 2014 at 6:55
0
I'm trying to use windowFixedHeightMinor in conjunction with a custom DialogFragment to create a fixed size (actually proportionally sized) dialog.
I'm setting the theme in my onCreate
@Override
...
Conative asked 11/1, 2017 at 18:23
3
Seems like anyone using Marshmallow (Android 6.0) is not able to use the DatePicketDialog within my app. There appears to be some sort of theme issue that I'm encountering. I use a DialogFragment w...
Evaporate asked 17/11, 2015 at 21:33
3
Solved
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...
Bobbitt asked 3/12, 2013 at 16:8
3
I have a problem. My activity has style
<style name="MaterialTheme" parent="Theme.AppCompat.Light.DarkActionBar">
<item name="colorPrimary">@color/action_bar_background</item>
...
Nestle asked 3/3, 2015 at 19:49
2
Solved
I'm having some issues with an custom DialogFragment that is displayed Fullscreen. This dialog has content that is scrollable and has an autocompletetextview.
Initially the dialog is displayed wit...
Gnostic asked 10/6, 2016 at 10:34
2
Solved
When developing an Android app, I've read that it's recommended to use DialogFragment instead of using directly an AlertDialog to show alerts and confirmations.
This is done, for example, on...
Dealing asked 7/12, 2012 at 14:32
3
Solved
I need to dismiss DialogFragment in onStop() of an FragmentActivity if it is showing, this is what I did
if(mAlertDlg != null && mAlertDlg.getDialog() != null)
mAlertDlg.dismiss();
But I ...
Montemontefiascone asked 30/5, 2013 at 17:7
0
What I'd like to achive
A small/large screen behavior as it is implemented by Google in its Calendar app.
For example when you create a new event, on a large screen a 'dialog' opens
that darken...
Tyndall asked 31/12, 2015 at 10:41
1 Next >
© 2022 - 2024 — McMap. All rights reserved.