Skip to content
Advertisement

Tag: dialogfragment

Fullscreen DialogFragment overlaps with StatusBar

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 Layout Toolbar Activity creating Dialog EDIT After removing StatusBarTransparency from v21-styles it looks like this Answer The problem is in the transaction.add(containerId, fragment) part. You have it set to:

How to take text input with DialogFragment in Android?

I am trying to get a value that user enters into a Dialog, using the recommended DialogFragment class for it, the Dialog constructs and runs fine, but I cannot return the value of the EditText parameter to the parent class, without get a NullPointerException. My DialogHost class, this constructs, returns and links the parent to its buttons. This is my

Advertisement