I have an activity in my Manifest I used to style with a Dialog Theme. I can not find how to replace this in AppCompat
library.
<activity
android:name=".LoginActivity"
android:theme="@android:styles/Theme.Holo.Dialog"
android:configChanges="orientation|screenSize|keyboardHidden"
android:label="Login" >
Is there a Material-based equivalent?
There is no material based theme for a dialog in AppCompat yet, see here
Will appcompat automatically theme dialogs to look like the Lollipop version?
Response
Not yet, but it's on the todo list.
Update:
In version
22.1
of theSupport Library
you can now get the material dialog style by using AppCompatDialogJava code
Use this theme
Import support v7 alert dialog
Output like this,
This should work for you: https://github.com/afollestad/material-dialogs
I used it to build the dialog in a
DialogFragment
, with custom styles applied. Works great.Use the latest Appcompat library
and in Manifest use the following theme