dialog - Android: Target SDK = 21 (Lollipop), but not Fully Themed on Older Devices -


i have android app target sdk of 21. reason, (specifically) alertdialogs on non lollipop devices show devices sdk level.

eg: on lollipop device, alert show how want it. on kitkat device, alertdialog shows kitkat theme.

is there way force show dialogs min sdk? or there way can fix this?

thanks!

as of version 22.1.0, appcompat provides ability show material-themed dialogs on older devices.

if have class extends dialog, change extend appcompatdialog.

if create dialogs alertdialog.builder, switch android.support.v7.app.alertdialog.builder.

see android support library 22.1 blog post more information.


Comments

Popular posts from this blog

android - MPAndroidChart - How to add Annotations or images to the chart -

javascript - Add class to another page attribute using URL id - Jquery -

firefox - Where is 'webgl.osmesalib' parameter? -