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

learn more… | top users | synonyms

6
votes
0answers
187 views

overlapped by status bar when dialog fragment is shown, only in Android4.4

My problem happens only on Android 4.4 Kitkat and when I show a dialog fragment, part top of it will be overlapped by status bar. How can I deal with this issue? It's a Kitkat bug? See screenshot ...
3
votes
0answers
46 views

Custom DialogFragment with different animations for different orientations

I have a custom DialogFragment with a custom in/out animation set via Theme. It has different animations for portrait and landscape orientations. Problem is when changing orientation when the dialog ...
3
votes
0answers
45 views

Date picker changing his layout

i'm having a problem with a datepicker in a project that i'm working. I was responsable for translate the project to english and spanish, everything was okay until I test the application in the ...
3
votes
0answers
275 views

Holoeverywhere dialog wrong layout - Sony Xperia Neo V 2.3.x

There is quite strange and bad error on devices from sony family. I have implemented actually the same code as it was in example. There is a problem with dialog layout which show very very strange ...
3
votes
0answers
454 views

How to add list of fragment into DialogFragment?

I have a problem with DialogFragment For example I have a list of Fragment and I want to add all this fragment into DialogFragment and alert whenever the user Click on a button, Do anyone have any ...
3
votes
0answers
2k views

Using FragmentManager and FragmentTransaction in a DialogFragment

The gist of the issue is this: I'm trying to Launch a DialogFragment from a FragmentActivity. This DialogFragment's view contains a FrameLayout which I would like to populate with a Fragment. ...
2
votes
0answers
322 views

Android dispatch touch event to main activity when dialog is showing

I have a DialogFragment, it's onCreateDialog() looks something like Dialog dialog = new Dialog(getActivity(), R.style.Theme_Translucent_NoTitleBar); ...
2
votes
0answers
125 views

DialogFragment dissmisses or hides after home is pressed

I am showing a dialogFragment that is not cancelable. But when I press the home button or lock the screen and go back to my application then the dialogFragment dissapears. After that I can click the ...
2
votes
0answers
195 views

Binary XML file line #7: Duplicate id 0xffffffff, tag dialog, or parent id 0x0 with another fragment

I am trying to display a DialogFragment which contains a fragment. Consider the following: I have a DialogFragment EntryFragment and inside it there is a textview. On click of a textview, I am ...
2
votes
0answers
72 views

Why is an EditText required for SoftInput to show in a DialogFragment?

I have a custom class that extends a DialogFragment. I came across some interesting behavior. If an EditText is added dynamically, when focused the SoftInput keyboard doesn't show. @Override public ...
2
votes
0answers
142 views

Android dialog fragment, with tabs or flipper

I'd like to create a DialogFragment that has a set of options and when a specific option is click the dialog changes and displays a new set of options (sub options of the category previously chosen). ...
2
votes
0answers
231 views

Dimissing DialogFragment but objects are still in memory

I have an Activity and there I have a MenuItem, which when clicked, initializes the following DialogFragment: MapDialogFragment df = new MapDialogFragment(); Bundle bundle = new Bundle(); ...
2
votes
0answers
263 views

Is there an equivalent for dispatchTouchEvent() from Activity in Dialog or DialogFragment

I need to intercept all touch events in the application to monitor for a custom activity time out. Currently I use dispatchTouchEvent() in my activities but this is not called if I have a dialog on ...
2
votes
0answers
209 views

DatePickerFragment an cleaning project

I have a DatePickerFragment in my Android project: public class Uses extends FragmentActivity { @Override public void onCreate(Bundle savedInstanceState) { //code } public class ...
2
votes
0answers
219 views

DialogFragment now showing when enabling cancelable or keylistener for back button

I have a DialogFragment (support v4 library), to which I would like to add the possibility to dismiss it by pressing the back button. Below code displays the dialog fine, but as soon as I ...
2
votes
0answers
464 views

Animate an AlertDialog's entrance and exit

I have to slide in an AlertDialog when it enters and slide it out when it is dismissed, but it is not animating. So how do I get the animation to work ? Here is what I have, public class ...
1
vote
0answers
45 views

How to call/show a DialogFragment from another class which is not a fragment

I am new to Android. How Can I call the DialogFragment from my SmsReceiver extends BroadcastReceiver class What I am doing is checking if the user receives a text message. if yes then show the dialog ...
1
vote
0answers
28 views

How do you set DialogFragment.STYLE_NO_FRAME in styles.xml?

How do you set DialogFragment.STYLE_NO_FRAME, which hides the frame, in your styles.xml file? Or does this have to be done outside of the xml file?
1
vote
0answers
27 views

How to make add/remove item in list view modify variables (int and double) in Android

I'll keep this short. I am creating an Android program to allow users to create test mech builds outside of a video game in order to determine if their build is possible in game before dropping money. ...
1
vote
0answers
35 views

Why shouldn't use setRetainInstance if I use DialogFragment in order to keep the dialog displayed after configuration changes ?

just need to figure this out. We all know that fragments are attractive in such situations where configuration changes like screen orientation change occur. This is because Fragments are retained ...
1
vote
0answers
99 views

Testing DialogFragment in ActivityUnitTestCase

I am using an ActivityUnitTestCase to test behavior of an Activity. When a method on the activity is called, a DialogFragment should be displayed. This question gives the impression that this ...
1
vote
0answers
127 views

ImageViewTouch doesn't display image on DialogFragment

I've found out the ImageViewTouch since I wanted to create a zooming image preview on my app though I need to display that image on one of my DialogFragment. But it works just fine on a normal ...
1
vote
0answers
51 views

Map on Android flickers after implementing dialog for datepicker

I was successfully able to implement map in fragment tab over android without any flicker , suddenly after implementing click handlers for action bar which initiates dialog fragment for datepicker , ...
1
vote
0answers
48 views

How to make generalize dateFragment class for multiple Date controls?

I want to make generalize/common class call for multiple controls such as a From & To date dialog boxes should use same class while call here i have two labels lblSrchFrmDate & ...
1
vote
0answers
106 views

ViewPager inside FragmentDialog Height always equals to 0

I know a lot of questions just like this one have been asked, but I didn't see any real similarity to this case. I'm using the android android.support.v4.app.DialogFragment and ...
1
vote
0answers
212 views

Error inflating class fragment in DialogFragment having google maps android

I am trying to diaplay a google map in a thumbnail sized dialog box using DialogFragment. But i get the following eroor :- Binary file XML line #25: Error inflating class fragment and the ...
1
vote
0answers
60 views

How handle background service, which generate dialog, when screen is locked?

Im wondering how i should handle with situation described below. We got a dialog with progress bar(this is downloading data in background), when downloading ends there is another dialog displayed. And ...
1
vote
0answers
151 views

Change color of theme in DialogFragment with API10

I have a dialogFragment which works well, in api 11+, it appears with the HOLO_LIGHT theme. THe thing is with API 10, the dialogfragment is dark and I want it light so that my dark icon display well. ...
1
vote
0answers
52 views

Android View Brightness

I want to obtain the same effect as a DialogFragment. In my activity i have 2 LinearLayout. One layout is visible and the other is gone. When I press a button i want to display the second LinearLayout ...
1
vote
0answers
79 views

Why doesn't Activity invoke onPause() after my FragmentDialog dismiss?

On my Activity, there is a button, click it and show a FragmentDialog that display a EditText for user's input, and after user's input, I want to refresh activity's view, I want to do that In ...
1
vote
0answers
58 views

Understanding DialogFragment Reference Documentation Basic Dialog Example

I am trying to understand the Basic Dialog example at the beginning of the API Reference for the DialogFragment class. The last sentence before the Alert Dialog heading reads: "Note that in this ...
1
vote
0answers
103 views

DialogFragments and findFragmentById

I have this app with a common activity and several different fragments replaced into the same layout ID: R.id.content Some of the fragments are normal support.v4.Fragment and some are from ...
1
vote
0answers
77 views

How to show DialogFragment after screen rotation

could you tell me how can I show DialogFragment after screen rotation? I've got BroadcastReceiver in parent activity and when receiver receive something I call function showDialog() from ...
1
vote
0answers
293 views

Custom dialog linear layout weight issue

I am using a LinearLayout view with a custom dialog ,when I run the code below, weight is not working correctly as the red view takes the green view's weight and verse vise as image below: but when ...
1
vote
0answers
141 views

Saving DialogFragment data only if button is pressed

Hi! I have a DialogFragment class that implements a TimePicker. The DialogFragment is binded with a PreferenceFragment class, which in turn is held by an Activity. Inside my Preferences, i have also ...
1
vote
0answers
184 views

Monodroid OnDismiss with Dialog Fragment

I have a custom DialogFragment which is called from a Fragment Activity which uses a ListView. In API 14, it works fine. The NotifyDataSetChanged() is called when the Save button is pressed in the ...
1
vote
0answers
249 views

DialogFragment show after onPostResume cause IllegalStateException: cannot perform this action

I have an application, that shows different DialogFragments in response to different actions(mostly Async ones). I'm using latest revision of Support library(constantly updaring it though SDK Manager) ...
1
vote
0answers
290 views

How to use RoboDialogFragment with a custom layout

Can anybody tell me, point e at an example or demo or how to use RoboDialogFragment to inject views on a custom DialogFragment? (Any help or examples in the area of roboguice and fragments would ...
1
vote
0answers
40 views

How to the the Activity from an custom element inside a DialogFragment

At the beginning I was declaring a custom view element in a layout inside a Fragment, and I was trying to use the hardware acceleration for this component, so the following code in the constructor's ...
1
vote
0answers
526 views

SupportMapFragment into DialogFragment error on inflate map

I'm writing a class to show up a SupportMapFragment into a DialogFragment as shown. The problem is that I'm getting an error "Inflating class fragment", despite of have imported import ...
1
vote
0answers
642 views

Unit Testing DialogFragments

I use a custom layout for my DialogFragment which I launch like this: someDialog.show(getFragmentManager(), "dialog_tag"); The Dialog has two text fields, a "Save" and "Cancel" button and when the ...
1
vote
0answers
212 views

Why does the screen dim when a DialogFragment that contains a GLSurfaceView is shown?

I'm not sure if this is the proper way to accomplish this, but I want a popup with a GLSurfaceView. So I created a dialogFragment and in its onCreateView method I return my glSurfaceView: @Override ...
1
vote
0answers
988 views

Enforce the size of DialogFragment / make it go beyond the screen

I have the following case: I need to put a a big image (that is beyond screen size) within a dialog frame, however I still need the dialog frame have around 150dp margin on top (so that title behind ...
1
vote
0answers
230 views

Admob in Android Fragment

I am unable to place AdMob in ActionBarSherlock Fragment. Since in Activity the ActionBar won't allow to display the xml layout but the xml file is referenced in the fragment class. I am running into ...
0
votes
0answers
7 views

Android re-showing dialogfragment from separate fragment

I have an application that is using fragments. The set up is like so: Main Activity loads, loads fragment activity into right portion of parent activity -From the Fragment, I launch a DialogFragment ...
0
votes
0answers
13 views

call datepicker from a fragment

here's my fragment's code on which i'm trying to call datepicker using DialogFragment public class ExpensesDaily extends Fragment{ public ExpensesDaily(){} Button button; Calendar now; ...
0
votes
0answers
15 views

How to Add Content Description to Existing Android Dialog

I am reusing the AlertDialog for Android (reference here: http://developer.android.com/reference/android/app/AlertDialog.html). I need to add content descriptions to the dialog's buttons. Is there a ...
0
votes
0answers
5 views

Android startActivityForResult with an intent and wait for user's response to the dialogfragment on the other activity that was started by the intent

I use intent to start an activity (Activity A) from a fragment of another activity. Activity A has a short game followed by a dialog (dialogfragment) asking if a user wants to save the result or not. ...
0
votes
0answers
14 views

Load DialogFragment from another dialogframent with proper transition

I want to load DialogFragment from another dialogframent with proper transition like the ones implemented by Google Drive and Facebook. I want to achieve something similar to this one. I have ...
0
votes
0answers
31 views

Dialog fragment not showing after orientation change

I have a weird issue in the my SDK/SDK demo app. My SDK displays a dialog fragment to prompt the user. It is visible at Orientation A. When I switch to orientation B, it is not visible and then when i ...