android alert dialog box- not able to remove defaut blue line
<p>I am using custom dialog and I want to remove this blue line. How can I do this?</p>

<p>I tried  <code>alert.requestWindowFeature(Window.FEATURE_NO_TITLE);</code> and some other method but no effects</p>

<p>below code is not working!</p>

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

<p><a href="https://i.stack.imgur.com/Bqz8f.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Bqz8f.png" alt="this image"></a></p>