DialogFragment is a fragment that displays a dialog window, floating on top of its activity's window
1
vote
1answer
12 views
android error while using dialog fragment
I am implementing a dialog fragment which should open when i click on an item in a gridview of images. here is my code
public void onItemClick(AdapterView<?> arg0, View arg1, int position,
...
0
votes
4answers
28 views
Closing alert dialog using menu
I have an alert dialog with some items. I need to close the dialog when the user clicks the menu button without giving any options to close. How can I do that?
Here is my code
CharSequence[] cs = ...
0
votes
0answers
5 views
Android: when a fragment is removed, are fragments that were added to it destroyed?
Consider Activity A with Fragment F added to it programatically. Added to F is an AlertDialogFragment D via: D.show(F.getFragmentManager(), "alert")
If F is removed from A and destroyed, is D ...
1
vote
2answers
27 views
Is there anyother way to call a method in FragmentActivity other than starting it using intents?
Is there any other way to call a method in FragmentActivity other than starting it using Intents?
Can anyone please help?
Code is given below:
class MainActiviy extends Activiy{
//some code
...
0
votes
1answer
23 views
DatePicker Fragment leaks when I turn the screen
I'm using the DatePickerFragment class to set data to a textView.
The class is working, but when I turn the screen the aplication crashes.
The code of DataPicker class:
class DatePickerFragment ...
1
vote
1answer
32 views
error in DialogFragment show() method
I am getting java.lang.IllegalStateException: Activity has been destroyed. when i try to show a dialogfragment from an activity.
I have seen many solutions in stackoverflow but those didnt solve my ...
0
votes
2answers
47 views
How to make this simple dialog fragment semi-transparent
I am trying to make this simple Dialog semi-transparent:
class TestDialog extends SherlockDialogFragment
{
public TestDialog()
{
super();
}
@Override
public ...
0
votes
1answer
12 views
Check if fragment displayed as dialog to change click listener behavior
I am creating an app in which the user should be able add people for meetings.
The structure consists of several fragments managed in the same activity (list_people, person_detail, create_meeting).
...
0
votes
2answers
30 views
Android - ListView doesn't scroll inside DialogFragment
I am starting developing for Android. I wanted t create my sort of modal alert (like UIAlertView in iOS). I considered using Activity which worked fine. It took some time for me to do it. But later, I ...
0
votes
1answer
19 views
AndroidRuntimeException: requestFeature() must be called before adding content
I have dialog fragment. I have intention to use this fragment in activity and dialog. And I override onCreateDialog and onCreateView method. here is coding.
@Override
public View ...
0
votes
2answers
37 views
How do I setText() in an textView from a DialogFragment
I have a custom DialogFragment with a couple of options inside of it. The user is simply presented with a "Done" button in the Dialog to signal that they have completed their choice and to resume the ...
0
votes
1answer
30 views
Android DialogFragment shows black parts of screen Sony Xperia U
I use DialogFragments in my game for some popup information. It works fine on LG Nexus 4 running android 4.2 and it runs fine on the Desire S running 2.3.
It does however not run correctly on a Sony ...
0
votes
1answer
39 views
Android DialogFragment doesn't dismiss
I have a custom dialog in Android, i create the dialog view on the onCreateView method.
public class FiltroDialog extends DialogFragment {
@Override
public View onCreateView(LayoutInflater inflater, ...
0
votes
0answers
26 views
how to implement Dialog using DialogFragement?
I am developing android apps in that i want to develop dialog using SherlockDialogFragment for support all version of the android and this dialog having 4 edittext so user can fill the data and submit ...
0
votes
1answer
17 views
Trying to make the text larger in my Spinner widget in my DialogFragment in Android
I have a DialogFragment in my application with a spinner display -- with tiny, tiny text. I'd like to display the text larger and spent a fair amount of time searching SO for solutions. However, ...