Skip to content

AlertDialog from support-v7 library #30

@johnjohndoe

Description

@johnjohndoe

Are you planning to switch to the android.support.v7.app.AlertDialog which supports defining an accent color, including pre-Lollipop Android versions?

You would need to replace the import for the AlertDialog and reference a style for it:

AlertDialog.Builder builder = new AlertDialog.Builder(mContext, R.style.AppDialog);

The styles.xml cool look like this:

<style name="AppDialog" parent="Theme.AppCompat.Light.Dialog.Alert">
    <item name="colorAccent">@color/accent</item>
</style>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions