Material-dialogs: Is it possible to disable all caps on dialog button items?

Created on 1 Mar 2016  路  2Comments  路  Source: afollestad/material-dialogs

Hi there,

Just need to know whether it is possible to disable all caps on dialog buttons. If so, how?

Thanks!

questiodiscussion

All 2 comments

Nevermind got it to work. Used this method:

public void MakeDialogButtonsLowercase(MaterialDialog myDialog){
        MDButton negative =myDialog.getActionButton(DialogAction.NEGATIVE);
        MDButton positive =myDialog.getActionButton(DialogAction.POSITIVE);
        negative.setAllCaps(false);
        positive.setAllCaps(false);
    }

This is what it works for me:

<style name="MyTheme">
    ...

    <item name="md_button_casing">literal</item>

</style>
Was this page helpful?
0 / 5 - 0 ratings

Related issues

MFlisar picture MFlisar  路  3Comments

RezaOruji picture RezaOruji  路  3Comments

timbremer picture timbremer  路  6Comments

arpanbag001 picture arpanbag001  路  4Comments

bahmandamia6982 picture bahmandamia6982  路  6Comments