android Programming Glossary: getdialog
How can I focus on a collapsible action view EditText item in the action bar (when it is expanded) and force the soft keyboard to open? http://stackoverflow.com/questions/11011091/how-can-i-focus-on-a-collapsible-action-view-edittext-item-in-the-action-bar-wh mode WindowManager.LayoutParams.SOFT_INPUT_STATE_VISIBLE getDialog .getWindow .setSoftInputMode mode This does not seem to work..
ActionBar in a DialogFragment http://stackoverflow.com/questions/11425020/actionbar-in-a-dialogfragment but my action items do not appear. I've also tried calling getDialog .getActionBar from within onCreateView but it always returns..
DialogFragment with clear background (not dimmed) http://stackoverflow.com/questions/13822842/dialogfragment-with-clear-background-not-dimmed @Override public void onStart super.onStart Window window getDialog .getWindow WindowManager.LayoutParams windowParams window.getAttributes..
Setting the size of a DialogFragment http://stackoverflow.com/questions/14946887/setting-the-size-of-a-dialogfragment so I have removed the background and title of the dialog getDialog .getWindow .requestFeature Window.FEATURE_NO_TITLE getDialog.. .getWindow .requestFeature Window.FEATURE_NO_TITLE getDialog .getWindow .setBackgroundDrawable new ColorDrawable android.graphics.Color.TRANSPARENT.. it is problematic. I use WindowManager.LayoutParams params getDialog .getWindow .getAttributes params.width LayoutParams.WRAP_CONTENT..
Maintain keyboard open/closed state for EditText when app comes to foreground http://stackoverflow.com/questions/15202895/maintain-keyboard-open-closed-state-for-edittext-when-app-comes-to-foreground layout. In the DialogFragment's onActivityCreated I call getDialog .getWindow .setSoftInputMode WindowManager.LayoutParams.SOFT_INPUT_STATE_VISIBLE..
ViewPager with Fragments inside PopupWindow (or DialogFragment) - Error no view found for id for fragment http://stackoverflow.com/questions/19544829/viewpager-with-fragments-inside-popupwindow-or-dialogfragment-error-no-view ama getDialog .getWindow .requestFeature Window.FEATURE_NO_TITLE return view..
custom row in a listPreference? http://stackoverflow.com/questions/4549746/custom-row-in-a-listpreference index editor.putInt yourPref value Dialog mDialog getDialog mDialog.dismiss return row class CustomHolder private.. index editor.putInt yourPref value Dialog mDialog getDialog mDialog.dismiss The xml for my PreferenceActivity...
Fragments, DialogFragment, and Screen Rotation http://stackoverflow.com/questions/8235080/fragments-dialogfragment-and-screen-rotation you dialogfragment @Override public void onDestroyView if getDialog null getRetainInstance getDialog .setOnDismissListener null.. void onDestroyView if getDialog null getRetainInstance getDialog .setOnDismissListener null super.onDestroyView I also suggest..
DialogFragment.getDialog returns null http://stackoverflow.com/questions/8456143/dialogfragment-getdialog-returns-null returns null I am trying to get the Dialog I have created with.. with an extended DialogFragment using DialogFragment.getDialog but it returns null. Basically I want to alter the text in the.. android share improve this question You're calling getDialog too early in the DialogFragmen'ts life cycle. getDialog simply..
How can I focus on a collapsible action view EditText item in the action bar (when it is expanded) and force the soft keyboard to open? http://stackoverflow.com/questions/11011091/how-can-i-focus-on-a-collapsible-action-view-edittext-item-in-the-action-bar-wh . Show soft keyboard automatically mEditText.requestFocus int mode WindowManager.LayoutParams.SOFT_INPUT_STATE_VISIBLE getDialog .getWindow .setSoftInputMode mode This does not seem to work when expanding and requesting focus on a collapsable EditText..
ActionBar in a DialogFragment http://stackoverflow.com/questions/11425020/actionbar-in-a-dialogfragment onCreateOptionsMenu in my DialogFragment subclass but my action items do not appear. I've also tried calling getDialog .getActionBar from within onCreateView but it always returns null . I am able to get this working if I start an Activity..
DialogFragment with clear background (not dimmed) http://stackoverflow.com/questions/13822842/dialogfragment-with-clear-background-not-dimmed WinowManager.LayoutParams in onStart of the DialogFragment @Override public void onStart super.onStart Window window getDialog .getWindow WindowManager.LayoutParams windowParams window.getAttributes windowParams.dimAmount 0.90f windowParams.flags..
Setting the size of a DialogFragment http://stackoverflow.com/questions/14946887/setting-the-size-of-a-dialogfragment size of my DialogFragment . It only contains a color picker so I have removed the background and title of the dialog getDialog .getWindow .requestFeature Window.FEATURE_NO_TITLE getDialog .getWindow .setBackgroundDrawable new ColorDrawable android.graphics.Color.TRANSPARENT.. so I have removed the background and title of the dialog getDialog .getWindow .requestFeature Window.FEATURE_NO_TITLE getDialog .getWindow .setBackgroundDrawable new ColorDrawable android.graphics.Color.TRANSPARENT However I also want to position the.. However I also want to position the dialog where I want and it is problematic. I use WindowManager.LayoutParams params getDialog .getWindow .getAttributes params.width LayoutParams.WRAP_CONTENT params.height LayoutParams.WRAP_CONTENT params.gravity..
Maintain keyboard open/closed state for EditText when app comes to foreground http://stackoverflow.com/questions/15202895/maintain-keyboard-open-closed-state-for-edittext-when-app-comes-to-foreground calls setRetainInstance true with a single EditText in its layout. In the DialogFragment's onActivityCreated I call getDialog .getWindow .setSoftInputMode WindowManager.LayoutParams.SOFT_INPUT_STATE_VISIBLE A If I open the keyboard then when I put..
ViewPager with Fragments inside PopupWindow (or DialogFragment) - Error no view found for id for fragment http://stackoverflow.com/questions/19544829/viewpager-with-fragments-inside-popupwindow-or-dialogfragment-error-no-view AcoesMuscularesAdapter getChildFragmentManager fragments vp_contentAcoesMusculares_SequenciaExercicios.setAdapter ama getDialog .getWindow .requestFeature Window.FEATURE_NO_TITLE return view private List getFragments List fList new ArrayList fList.add..
custom row in a listPreference? http://stackoverflow.com/questions/4549746/custom-row-in-a-listpreference int index position int value Integer.valueOf String entryValues index editor.putInt yourPref value Dialog mDialog getDialog mDialog.dismiss return row class CustomHolder private TextView text null private RadioButton rButton null CustomHolder.. buttonView.getId int value Integer.valueOf String entryValues index editor.putInt yourPref value Dialog mDialog getDialog mDialog.dismiss The xml for my PreferenceActivity. This is not my full xml took out al my other preference items..
Fragments, DialogFragment, and Screen Rotation http://stackoverflow.com/questions/8235080/fragments-dialogfragment-and-screen-rotation library that can cause this. Try putting this in you dialogfragment @Override public void onDestroyView if getDialog null getRetainInstance getDialog .setOnDismissListener null super.onDestroyView I also suggest setting your dialogfragment.. this. Try putting this in you dialogfragment @Override public void onDestroyView if getDialog null getRetainInstance getDialog .setOnDismissListener null super.onDestroyView I also suggest setting your dialogfragment as retained so it won't get dismissed..
DialogFragment.getDialog returns null http://stackoverflow.com/questions/8456143/dialogfragment-getdialog-returns-null returns null I am trying to get the Dialog I have created with an extended DialogFragment using DialogFragment.getDialog.. returns null I am trying to get the Dialog I have created with an extended DialogFragment using DialogFragment.getDialog but it returns null. Basically I want to alter the text in the layout from the FragmentActivity which creates and shows.. FragmentActivity which creates and shows the DialogFragment. android share improve this question You're calling getDialog too early in the DialogFragmen'ts life cycle. getDialog simply returns the private variable mDialog from the DialogFragment...
|