android-dialogfragment Questions

2

Solved

I discovering the programming language kotlin for some weeks, and I always start with new File/Class, and I've noticed lately to kotlin Script in the menu and I ask now what's different between the...
Jackdaw asked 8/1, 2019 at 0:10

7

What I want to achieve From a FragmentActivity show a dialog when clicking an Action Button in the Action Bar DialogFragment - A Dialog without title TabHost - Tabs at the top of the dialog ViewP...

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...

12

I am using a DialogFragment, which I am showing like this from an Activity: DialogFragmentImage dialog = DialogFragmentImage.newInstance(createBitmap()); dialog.onDismiss(dialog);.onDismiss(this);...
Align asked 21/5, 2014 at 14:22

4

I have a DialogFragment with an xml layout and I need it to be, let's say 75% as wide as the screen. When I look for answers I always find the common weight-solution, which does not help me, as my ...
Hindu asked 17/11, 2014 at 13:44

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

21

I am working on an android application where I am using DialogFragment to display the dialog but its width is very small. How I can make this width to fill_parent to it ? public class AddNoteDialo...
Halliehallman asked 2/6, 2014 at 8:56

3

In one part of my application, I show the user a ListView. When the user presses an item in the list, a DialogFragment is shown. @Override public void onClick() { android.support.v4.app.Fragment...
Connate asked 17/9, 2015 at 10:31

21

Solved

I am showing snackbar in a DialogFragment within the positive touch of the alert dialog. Here is my code snippet: Snackbar snackbar = Snackbar.make(view, "Please enter customer name", Sna...

6

Solved

I have a problem with my DialogFragment. So to create my view, I use the method described on the android blog. Here is my DialogFragment @Override public View onCreateView(LayoutInflater inflater,...
Globetrotter asked 21/6, 2013 at 14:38

11

Solved

I need to create a dialog over a fragment (that takes up the whole screen). The dialog needs to be a floating dialog that will be positioned over the fragment with the fragment darkened out outside...

6

Solved

I'm getting a loading object waiting for a request from the webservice. But sometimes this object causes my application to end. I couldn't detect exactly what the error involved. In order to preve...
Sienkiewicz asked 27/3, 2019 at 11:48

4

Solved

I am using NavigationComponent on my App. I have an specific flow where after a click on a button of BottomSheetDialogFragment the app should navigate to another fragment. But when that Fragment is...

4

Solved

Alright so i have a list(which is also a fragment dialog) that displays a users friends and each item in that list has a button(labeled friends in the picture) and when users click that button id l...

3

Solved

It's pretty common for my app to show a progress or AlertDialog to the user. If the user puts the app into the background and then returns later, I want the Dialog to still be shown. Is there a way...
Clergyman asked 28/4, 2015 at 22:11

30

Solved

Let's say I specify the layout of my DialogFragment in an xml layout file named my_dialog_fragment.xml and I specify the layout_width and layout_height values of its root view to a fixed value (e.g...
Doak asked 18/9, 2012 at 13:57

1

I disabled fitSystemWindows via WindowCompat.setDecorFitsSystemWindows(window, false) to draw behind the status bar and I am using the insets accompanist library to get the respective insets for ad...

7

Solved

I'm creating a DialogFragment to show some help messages regarding my app. Everything works fine besides one thing: There is a black stripe at the top of the window that shows the DialogFragment, t...
Compensate asked 7/3, 2013 at 17:10

3

I have a dialogfragment which displays fine but some time when I try to display it I keep getting IllegalStateException Below is the logcat java.lang.IllegalStateException: Fragment already added...

9

Solved

I have a Fragment in my app that shows a DialogFragment. I have in the fragment a button that closes the dialog. But when I show the dialogFragment, the touches outside from the dialog do nothing a...
Bellaude asked 13/3, 2013 at 10:21

6

After updating to the latest support repository, compile 'com.android.support:appcompat-v7:24.2.0' compile 'com.android.support:design:24.2.0' compile 'com.android.support:percent:24.2.0' compile...

9

Solved

I am creating a custom fragment dialog with round corners and with layout that would not fill the screen width (I would prefer if it just wrapped its content). this is my rounded_dialog.xml in dra...
Outclass asked 14/3, 2013 at 22:18

3

Solved

I'm trying to implement Facebook login into my app, and I'm facing a very peculiar issue, where the login process begins, fails with a very cryptic message and no exception is thrown on my app's si...

9

I'm getting the following error: "The method getSupportFragmentManager() is undefined for the type new View.OnClickListener(){}" in my fragment file shown below. I have the compatibility library r...

6

I have a DialogFragment which I want to show in fullscreen. I do however still want a StatusBar present, and the hardware buttons at the bottom. I also want to set a background color of the StatusB...
Telepathist asked 2/2, 2015 at 18:47

© 2022 - 2024 — McMap. All rights reserved.