本文介绍了如何隐藏蓝线标题divder alertdialog?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我alertdialog在我activity.I加入定制警报对话框的自定义标题查看。我只需要删除显示alertdialog的瓷砖下面的蓝线。

I have alertdialog in my activity.I added the custom title in alert dialog with custom view .i just need to remove the blue line that displays below the tile of alertdialog.

推荐答案

Thanku所有,但我得到的解决方案,使参考alertdialog的titledivider使用下面code.Hope这有助于有人来改变它的颜色。

Thanku All but I got the Solution to get reference to titledivider of alertdialog to change its color using below code.Hope this helps somebody.

int divierId = dialog.getContext().getResources()
                .getIdentifier("android:id/titleDivider", null, null);
View divider = dialog.findViewById(divierId);
divider.setBackgroundColor(getResources().getColor(R.color.creamcolor));

这篇关于如何隐藏蓝线标题divder alertdialog?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-21 08:35