android-dialogfragment Questions
3
Solved
I am trying to display a dialog fragment in a bezeless phone which has a notch.
Here is the screenshot.
As you can see the dialog fragment does not occupies the whole screen and show an ugly gre...
Breda asked 1/12, 2018 at 15:26
21
I have a dialog with EditText for input. When I click the "yes" button on dialog, it will validate the input and then close the dialog. However, if the input is wrong, I want to remain in the same ...
Mansion asked 12/4, 2010 at 7:18
6
Solved
I am working in an android application and am using a DialogFragment to show a dialog and I want to make that DialogFragment not cancelable. I have made the dialog cancelable property to false, but...
Grecian asked 10/5, 2013 at 10:22
2
Solved
I have a simple DialogFragment which contains 3 EditTexts and a Button. I have set the layout_width of its main layout 350dp but when I run the project it will be shown so slim.
This My DialogFr...
Clara asked 7/7, 2019 at 8:22
1
Hope you are doing well.
I created a dialog fragment and called show() on the instance. I passed a custom tag to show()'s parameter. The fragment requires no other arguments.
On config change, resi...
Submicroscopic asked 1/9, 2020 at 16:57
13
Solved
The docs say this for the dismiss() method from the Dialog class:
Dismiss this dialog, removing it from the screen. This method can be invoked
safely from any thread. Note that you should not ...
Bonis asked 26/6, 2012 at 5:5
2
Solved
I have an Activity (A) that creates a DialogFragment. In that DialogFragment, I have a button which creates a new Activity (B). When I finish Activity B, it displays the DialogFragment from Activit...
Kumquat asked 5/12, 2020 at 20:8
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
6
I am using android compatibility library (v4 revision 8). In the custom DialogFragment the overrided method onViewCreated is not getting called.For eg.
public class MyDialogFragment extends Dialog...
Lalo asked 15/5, 2012 at 6:5
11
Solved
I have started to work on Android M runtime permission. Here I am facing the issue that if requestPermissions is called from Dialog Fragment class then onRequestPermissionsResult not getting called...
Cathepsin asked 16/10, 2015 at 11:32
10
Solved
I'm trying to use a SherlockDialogFragment to ask some input from the user. Everything works fine on my phone (Galaxy Nexus, 4.2), but on a smaller phone (emulator 2.3.3), when the keyboard shows u...
Frederico asked 2/6, 2013 at 17:21
1
I have a dialog fragment, and i make a class for lazy initialization. When i'm showing the dialog, it's showing like normal. but, when i'm dismissing the dialog, it crash caused by : Fragment not a...
Izaak asked 14/6, 2020 at 7:53
4
In my Activity (that extends android.support.v7.app.ActionBarActivity) I have a fragment that is normally include into my views like this:
<?xml version="1.0" encoding="utf-8"?>
<FrameLay...
Tope asked 20/11, 2013 at 11:7
21
Solved
I want to create a custom dialog box like below
I have tried the following things.
I created a subclass of AlertDialog.Builder and used a custom Title and Custom Content View and used that bu...
Abele asked 12/11, 2012 at 9:56
3
Solved
StackOverflowError when trying to inflate a custom layout for an AlertDialog inside a DialogFragment
I'm trying to create an AlertDialog, by using the Builder and setting a custom view. When I try to inflate the view inside of onCreateDialog, I get a StackOverflowError..
Here is the code up to th...
Jocund asked 1/3, 2013 at 6:21
7
Solved
I have an android app that uses some custom dialogs which are inflated from XML layouts. The contents of the dialog's view come from the XML layout, but the actual positive and negative buttons are...
Yulandayule asked 9/4, 2013 at 18:26
3
Solved
When creating a custom DialogFragment, i set the title using the following:
@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
View v =...
Unorthodox asked 4/9, 2015 at 19:10
1
Solved
How to share same viewModel between dialog and dialogFragment? I know that viewModel can be shared in activity scope. But it is too big scope for me.
private val model: SharedViewModel by activity...
Antichrist asked 3/8, 2020 at 7:48
4
Everytime I try to show DialogFragment I get memory leaks.
This is how my test dialog (taken from android developers page) looks like:
public class TestDialog extends DialogFragment {
public st...
Antedate asked 7/11, 2018 at 7:33
8
Solved
I have a DialogFragment to show a View like a Popup screen.
The Window appears always in the middle of the screen.
Is there a way to set the position of the DialogFragment window?
I have looked in ...
Cheju asked 14/3, 2012 at 8:43
2
Solved
In preference screens, I'd like to use MaterialComponent's dialogs (using MaterialAlertDialogBuilder) instead of AlertDialog from AppCompat. However, AppCompat's preference framework hardcodes usin...
Bey asked 25/4, 2020 at 10:15
8
Solved
I have migrated my application to Android O in Android Studio 3
Running on an Android O emulator all my dialogFragments now fail with :-
java.lang.IllegalStateException: Fragment MyDialogFragment...
Rajkot asked 26/5, 2017 at 14:22
5
Solved
I started using DialogFragment, because they are working nicely through orientation changes, and stuff. But there is nasty problem I encountered.
I have AsyncTask that shows progress DialogFragmen...
Armallas asked 17/2, 2012 at 8:46
9
I have a DialogFragment that displays a list of options to the user, one of these options is "Delete" option, when the user presses the delete option I want to show another DialogFragment as a conf...
Monophthong asked 14/5, 2013 at 9:57
3
In the app I'm working on I'm seeing a memory leak in a DialogFragment and the only way to fix it so far has been to remove all views when the DialogFragment gets destroyed, is this a normal thing ...
Vinni asked 25/4, 2016 at 14:0
© 2022 - 2024 — McMap. All rights reserved.