Top "Android-dialogfragment" questions

DialogFragment is a fragment that displays a dialog window, floating on top of its activity's window.

IllegalStateException( "You can not set Dialog's OnCancelListener or OnDismissListener")

This DialogFragment implementation causes an IllegalStateException( "You can not set Dialog's OnCancelListener or OnDismissListener") . Why? Solution? public class OkCThreadDialog1 extends …

android android-dialogfragment
Can not perform this action after onSaveInstanceState show

I'm getting the following crash reports: Fatal Exception: java.lang.IllegalStateException: Can not perform this action after onSaveInstanceState at android.…

android android-fragments android-dialogfragment onsaveinstancestate
commitAllowingStateLoss on DialogFragment

I have an IllegalStateException on showing a DialogFragment : java.lang.IllegalStateException: Can not perform this action after onSaveInstanceState i know …

android android-fragments android-dialogfragment dialogfragment
Correct way to make a custom material dialog with appCompat 23+

Ok I'm really confused here on how to make a custom dialog properly using the latest appcompat v23.0.1 Here is …

android android-dialogfragment android-dialog android-appcompat
I want the activity to refresh/redraw after dialog fragment is dismissed.. How can I achieve that?

This is how it looks at first: This is the dialog fragment that pops when "edit" is pressed and I …

android android-dialogfragment redraw
Hide to show and hide keyboard in DialogFragment

In my dialog fragment, I am able to show the keyboard using getDialog().getWindow().setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT STATE_…

android android-softkeyboard android-dialogfragment dialogfragment
Dispatch Touch event from DialogFragment view to parent activity view

Here is how my layout looks like: I have a parent activity which has a custom view (view1 that handle …

android android-fragments touch-event ontouchlistener android-dialogfragment
How to add a fragment to a layout of a DialogFragment?

I am having a custom DialogFragment which contains a layout, some UI elements, and a Fragment holder layout. What I …

android android-layout android-fragments android-dialogfragment fragmenttransaction
Display DialogFragment content below status bar

Im trying to display an DialogFragment with match_parent both for height and width but it happens that on top …

android android-dialogfragment android-dialog android-windowmanager android-window