Questions tagged [dialogfragment]

An Android Fragment that displays a dialog window, floating on top of its activity's window.

472 questions
0
votes
1 answer

How can display DialogFragment if I click on another point of View

I have in a Android Application, a DialogFragment that is show, when I click on FloatingActionButton. Now, this is the xml file of DialogFragment:
bircastri
  • 2,169
  • 13
  • 50
  • 119
0
votes
1 answer

Expandablelistview with checkboxes display in dialog

I'm writing filter in Android and want to use BaseExpandableListAdapter with checkboxes. In my situation if the group elements have any child elements, may select group element too. Also all child elements may selected. Offer screenshot: enter image…
0
votes
3 answers

How to refresh listview from database after dismissing a dialog fragment?

I have a list view which contains items stored in a database. When each item is clicked, a dialog fragment pops up which has buttons for editing and deleting. When clicking on delete, the item gets deleted from the database and the dialog fragment…
0
votes
1 answer

How can I know when a DialogFragment is shown again after back pressed?

I have two main activities and the rest of the pages are full-screen DialogFragments (instead of another Activity), at some point, I'm opening a DialogFragment from another DialogFragment. How can the first DialogFragment know if pressed the back…
asaf
  • 23
  • 1
  • 5
0
votes
1 answer

Custom DialogFragment is not working

I am trying to create a custom dialog using dialogFragment, here I am not be able to display the dialog. The main problem is overriden code is not getting called. Can anyone fix this issue. Here is my code: BaseDialogFragment.java public class…
0
votes
0 answers

Android Dialog Fragment wont change its layout when device is rotated

I've a DialogFragment and when the device is rotated it won't change its layout from portrait to landscape. Must dismiss the dialog and reoprn it after I rotated the device.
0
votes
1 answer

How to retain customTitle in DialogFragment after screen rotation?

I created a class that extends from DialogFragment. It worked fine, until I included a customTitle to this dialog. The problem I have until now, happened when changing orientation, leading the app to crash. FATAL EXCEPTION: main …
0
votes
1 answer

Android: Application crashes when an activity is started using Intent in a DialogFragment

Intent i = new Intent(getActivity(), MytabActivity.class); startActivity(i); My DialogFragment opens when a button is clicked from the calling activity. I does what it's asked for and was able to function all the part of the code except opening to…
0
votes
1 answer

onItemClick() not working

I'm moving my first steps into android, so sorry if this is a stupid question. I've followed this tutorial to implement a DialogFragment containing a ListView. This is the ColorDialogFragment.java: public class ColorDialogFragment extends…
justHelloWorld
  • 6,478
  • 8
  • 58
  • 138
0
votes
2 answers

How to show a customized DialogFragment in the activity

I am trying to build an AlertDialog and want to show it when the main activity starts. But when the activity starts, an error comes up: android.util.AndroidRuntimeException: Window feature must be requested before adding content What I do first is…
Jensen
  • 85
  • 1
  • 6
0
votes
1 answer

Re-display parent dialog after child dialog closes

In my app, I display a custom Dialog (using DialogFragment), which on certain action causes another custom Dialog to be shown (using another DialogFragment). This all works fine. However when the "child" dialog is closed, I want to return to the…
Aleks G
  • 56,435
  • 29
  • 168
  • 265
0
votes
0 answers

Android: prevent DialogFragment to be recreated when app is sent in background

as stated in the title, I want to avoid the recreation of a DialogFragment when the app is sent in the backgroud and restored or at least save the stuff I need to be restored later. Unfortunately I can't use savedInstanceState because I also want to…
jack_the_beast
  • 1,838
  • 4
  • 34
  • 67
0
votes
0 answers

Null Object reference when setting Button onClickListener

I have a button within a custom DialogFragment that I'm trying to set the OnClickListener of. The DialogFragment uses a custom layout that contains the button. I receive a NullPointerException when I try to set the OnClickListener of the button…
Jake Moritz
  • 843
  • 2
  • 9
  • 21
0
votes
1 answer

Android: can't use fragment in a dialog

I have a quite complex situation, I'll try to explain: I have three classes: FleetListFragment extends android.support.v4.app.Fragment FragmentFleetListMap extends FleetListFragment FragmentFleetListReports extends FleetListFragment now, this app…
jack_the_beast
  • 1,838
  • 4
  • 34
  • 67
0
votes
1 answer

Pass item[] to DialogFragment

I am trying to pass the String [] items of my Dialog Fragment when the activity is running, as this String is updated and its values, which are showing the DialogFragment are updated and can not always choose the same. I have read this topic:…
wiki
  • 299
  • 4
  • 16