Questions tagged [appcompatdialogfragment]
12 questions
22
votes
3 answers
What is lifecycle of DialogFragment
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.
DialogFragment extends Fragment so its lifecycle is…
Khemraj Sharma
- 46,529
- 18
- 168
- 182
13
votes
1 answer
AppCompatDialogFragment issue with appcompat-v7:23.1.0
I updgraded appcompat v7 from version 23.0.1 to version 23.1.0
And I found this surprise concerning the AppCompatDialogFragment:an extra space shows up at the top of the dialog
Anyone else is experiencing this?
Here my code:
public class…
Daniele B
- 16,703
- 21
- 96
- 154
3
votes
1 answer
AppCompatDialogFragment with ConstraintLayout dialog width
I'm trying to have a AppCompatDialogFragment with a root layout as a ConstraintLayout.
The root layout have a layout_width set to wrap_content.
But when I execute the code, the dialog is shrink have a fixed width even if the content change.
Here's…
Azartys
- 393
- 5
- 13
1
vote
1 answer
AppCompatDialogFragment change background color
How do I change the background color of AppCompatDialogFragment.
My class is extends AppCompatDialogFragment and I don't know how to change the property background color of all the dialog.
public class MyClassName extends AppCompatDialogFragment {…
Guy Luz
- 2,184
- 9
- 26
0
votes
1 answer
getHeight() doesn't get the height of the layout
I'm going to use dialog fragments.
There is an item called writing_comment_item.xml in the dialogfragment, and I want to set the height of 5 items.
I used the inflate() function, I used getHeight() to get the layout.
But as a result of debugging,…
ybybyb
- 283
- 1
- 10
0
votes
1 answer
Android customizing DialogFragment issue
I'm trying to customize layout of a DialogFragment my idea was to create a rounded corners dialog with buttons text color set to colorPrimary:
import android.app.Dialog;
import android.content.Context;
import android.content.DialogInterface;
import…
weirdgyn
- 718
- 10
- 40
0
votes
0 answers
AppCompatDialogFragment listener not passing values when I do
The line 'listener2.applyTexts2(infor);'
gives me an error that I pass a null object reference on applyTexts2. I debugged this line and 'infor' has all values passed to it normally, yet it still says that it is null. What did I do wrong?
(I am…
Dan
- 27
- 6
0
votes
2 answers
How to force the soft input to overlap bottom-anchored View?
TL;DR: soft keyboard should overlap a bottom-anchored view instead of pushing it up. Gitlab link for an mcve.
Summary:
I have an AppCompatDialogFragment (androidx) which appears fullscreen on phones and has fixed dimensions on tablets (using…
Droidman
- 10,609
- 14
- 85
- 134
0
votes
0 answers
DialogFragment is not dismissed in live for some scenario
I am using a AppCompatDialogFragment. My dialogFragment is not dismissed in some scenario.
The scenario flow is
Showing the dialogFragment
dialogFragment UI has a Button.In button click a api is called and after api response i dismiss the dialog…
Abu Yousuf
- 4,421
- 2
- 23
- 39
0
votes
1 answer
How to call AppCompatDialogFragment from Fragment
I have a class that extends from AppCompatDialogFragment
public class SendLetterDialogFragment extends AppCompatDialogFragment {
public static SendLetterDialogFragment newInstance() {
Bundle args = new Bundle();
SendLetterDialogFragment…
Igor Skryl
- 668
- 7
- 20
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…
Jeffrey Rajan
- 3,041
- 2
- 24
- 35
-2
votes
2 answers
Error showing support.v7.AppCompatDialogFragment using show() method
I am using v7 support AppCompatDialogFragment in my app
import android.support.v7.app.AppCompatDialogFragment;
public class LoginDialogFragment extends AppCompatDialogFragment {
}
Throughout the app I am using default Fragment and FragmentManager…
Azim Ansari
- 1,298
- 10
- 18