javiersantos / MaterialStyledDialogs

A library that shows a beautiful and customizable Material-based dialog with header. API 14+ required.
Apache License 2.0
1.17k stars 155 forks source link

In Android version 7 the header icon is not working correctly . #38

Open nithinlal191 opened 7 years ago

nithinlal191 commented 7 years ago

The icon will cut to half sometimes, I am using this code

  public static void infoDialogue(Context context, String info) {

    final MaterialStyledDialog.Builder dialogHeader_1 = new MaterialStyledDialog.Builder(context)
            .setStyle(Style.HEADER_WITH_ICON)
            .setIcon(new IconicsDrawable(context).icon(MaterialDesignIconic.Icon.gmi_info).color(Color.WHITE))
            .withIconAnimation(false)
            .setTitle("Info")
            .setDescription(info)
            .setHeaderColor(R.color.yellow)
            .setNegativeText("OK");
    dialogHeader_1.show();
}