android-dialogfragment Questions
5
Solved
I have a working DatePickerFragment that extends DialogFragment. I set up a DatePickerDialog in onCreateDialog() and then tried to add:
"picker.setCanceledOnTouchOutside(true);"
I am testing on a...
Mcclees asked 20/1, 2020 at 14:24
3
Solved
I capture Key Events (from an external keyboard) within my App. I use onKeyDown() method from Activity. In my app I switch between different Fragments. If I am in a normal Fragment then Activity's ...
Pfosi asked 23/11, 2018 at 12:37
5
Solved
I have an Android Application that is made using Fragments
I am hiding the bars at top and bottom of my screen, using the following code.
@Override
protected void onResume() {
super.onResume();...
Queue asked 24/9, 2015 at 10:2
1
With the latest AppCompat
compile "com.android.support:appcompat-v7:22.2.1"
There is both available AppCompatDialog and DialogFragment which one should I prefer are there any differences or prob...
Philips asked 26/8, 2015 at 13:58
2
Solved
I have a dialog fragment in my app with an autocompletetextview in it, but the drop-down list instead of align with the soft keyboard's top, is placed behind, not giving access to some of the items...
Lamentable asked 11/10, 2016 at 10:26
6
Solved
Here is how my layout looks like:
I have a parent activity which has a custom view (view1 that handle onTouch events by itself) and 2 buttons (view2 and view3). The DialogFragment has a visible ...
Deponent asked 3/6, 2014 at 20:27
2
I have a BottomSheetDialogFragment that contains a NavHostFragment like so:
<layout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-aut...
Paff asked 13/9, 2019 at 21:41
5
Solved
Here's how I called my DialogFragment:
DialogSelectAccount myDiag=new DialogSelectAccount();
myDiag.show(ft,"Diag" );
Here's how (partially) my DialogFragment is created:
public class DialogSe...
Vatican asked 15/2, 2015 at 16:12
4
We add a general/normal Fragment programatically by doing something like:
fragmentTransaction.add(containerViewId, fragmentToAdd, fragmentTag);
and we replace a Fragment by another by doing some...
Lavation asked 30/3, 2016 at 10:4
2
Solved
I am trying to navigation from DialogFragment to Fragment in Navigation Component, but getting weird result.
When I navigate from DialogFragment to Fragment, background fragment is changing to tar...
Hilton asked 31/5, 2019 at 2:35
4
Solved
I am calling a dialog with arguments as follows:
MyDialog("title", "message").show([email protected], null)
And this is my dialog class:
class MyDialog(private val theTitle: String, privat...
Kemeny asked 11/6, 2019 at 11:55
3
Solved
I'm building a DialogFragment used to display some filters an user can apply.
This is the layout of the custom view I want to build:
<?xml version="1.0" encoding="utf-8"?>
<android.suppor...
Tahsildar asked 11/5, 2018 at 16:15
2
I've been trying to determine if it's possible to create an observable DialogFragment. Essentially I want to be able to:
Create and show a DialogFragment
Get back an rx Observable which can be su...
Confiscatory asked 5/9, 2015 at 22:27
3
Solved
I could not find proper lifecycle of android.support.v4.app.DialogFragment by searching on Google. I need this for some implementation. As we know DialogFragment has some methods same like Dialog.
...
Dismember asked 31/7, 2018 at 13:42
4
Solved
I have a fragment which adds an option to the option menu. When this option is clicked a dialog fragment opens. The dialog has the original fragment set to its target fragment. If no orientation ch...
Skein asked 25/8, 2014 at 9:24
6
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 inflat...
Neruda asked 3/7, 2013 at 12:25
3
Let's say I have Fragment A, from which I open a DialogFragment like this:
FragmentActivity fragmentActivity = (FragmentActivity) view.getContext();
FragmentTransaction ft = fragmentActivity.getSup...
Muscarine asked 1/2, 2013 at 16:5
1
Solved
There are 2 ways to create custom dialog via DialogFragment.
Overwrite onCreateDialog and return a dialog using AlertDialog.Builder.
Overwrite onCreateView.
We notice that, if we overwrite onCr...
Reaganreagen asked 8/3, 2019 at 16:12
5
Solved
I have a DialogFragment which has some animations of some of the layouts inside its view.
When I dismiss the dialog, I want to perform an animation and when the animation has ended, perform the dis...
Fifine asked 29/7, 2013 at 12:6
2
when my dialog fragment is hide, dispatchKeyEvent worked fine
@Override
public boolean dispatchKeyEvent(KeyEvent event) {
Toast.makeText(FragmentPlayer.this, "test: called", Toast.LENGTH_SHORT)....
Notification asked 20/2, 2017 at 20:49
5
The scenario is as follows, I have a ViewPager that contains fragments, each of these fragment has some action that requires confirmation.
I proceed to create a DialogFragment targeting the fragme...
Arak asked 7/1, 2019 at 11:49
3
Solved
Which component do I choose to achieve custom dialog at the bottom as shown in the below image? Shall I choose alertdialog,popupwindow, or fragmentdialog?
Chemisette asked 18/2, 2017 at 12:29
2
Solved
I'm taking photo from dialog fragment. And also I need something like startActivityForResult(takePictureIntent, actionCode);
@Override
public void onActivityResult(int requestCode, int resultCod...
Innovation asked 21/3, 2014 at 11:50
1
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 SlideDi...
Corsiglia asked 21/8, 2012 at 5:27
10
Solved
Hello I have tried to override the theme to the dialogFragment for fullscreen but the full screen I wanted was an overlay on top of the previous activity so when the dialogFragment is opened, we st...
Flat asked 14/10, 2015 at 0:26
© 2022 - 2024 — McMap. All rights reserved.