Questions tagged [appcompatdialog]

8 questions
13
votes
4 answers

How to Build AppCompatDialog From AlertDialog.Builder or Equivalent?

Before this I used a DialogBuilder to create AlertDialog like this AlertDialog.Builder builder = new AlertDialog.Builder(context); ... ... AlertDialog dialog = builder.create(); How can I build the new AppCompatDialog from a dialog builder, or is…
5
votes
0 answers

AppCompat-styled dialog containing a fragment

I want an AppCompat-styled dialog - background, title, button position, button tint etc. - containing a Fragment. With a custom DialogFragment onCreateDialog() can return an AppCompatDialog, then in onCreateView() a new layout can be inflated and…
3
votes
0 answers

Why is the text selection tool is half shown and is not clickable

I have an AppCompatActivity which contains android.app.Fragment. In fragment I have a button on the toolbar which fires the method showDialog(): @Override public boolean onOptionsItemSelected(MenuItem item) { if (item.getItemId() ==…
2
votes
1 answer

Chromecast custom MediaRouteChooserDialog

I am having trouble with customizing the MediaRouteChooser / MediaRouteController dialogs (I would need different layouts, some extra actions). The cast button is set up by calling CastButtonFactory.setUpMediaRouteButton(getApplicationContext(),…
cylon
  • 735
  • 1
  • 11
  • 26
2
votes
1 answer

Using AppCompatDialog Removes titles from the Dialog

Once I switched from ActionBarActivity to AppCompatActivity one of the only changes I did was add this line: true Here is my entire styles.xml file: This is working with Android Support Library v7, revision…
ddd
  • 481
  • 6
  • 17
0
votes
1 answer

AppcompatDialog and Fragment in Android

I want to use AppCompatDialog in place of DialogFragment. Is there any way to do without removing the Fragment part of it?
karsas
  • 1,231
  • 4
  • 12
  • 24
-1
votes
1 answer

Android Dialog + Leak Canary

I was trying to use built-in AlertDialog with onDismiss listener (without it result was same) and custom AppCompatDialog subclass. After dialog dismissed, current activity should finish. But few seconds later memory leak push appears. If I put…
wingear
  • 819
  • 9
  • 21