2

I need to put a white border around this default dialog box

enter image description here

Here is the xml code on which I am working:

<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android"  >

<solid android:color="#000000" />

<stroke
    android:width="25dp"
    android:color="#FFFFFF" />

<corners android:radius="10dp" />

</shape>

But it doesn't produce the desired result. The result is coming like this:

enter image description here

How do I solve this issue?

Veronika Gilbert
  • 471
  • 2
  • 8
  • 16
  • btw you can make a custom dialog – Randyka Yudhistira Apr 13 '15 at 07:39
  • I think your question is something like [this question][1] [1]: http://stackoverflow.com/questions/2394477/make-android-activity-looks-like-dialog – Robust Apr 13 '15 at 07:45
  • your question is similar to this question http://stackoverflow.com/questions/14439538/how-can-i-change-the-color-of-alertdialog-title-and-the-color-of-the-line-under – Prabhakar Apr 13 '15 at 08:05

1 Answers1

-1

Create a 9-patch image like this

enter image description here

and apply it in this manner

<style name="RunesDialog" parent="@android:style/Theme.Dialog">

        <item name="android:windowBackground">@drawable/cadre_dialogue/>
        ......
</style>
Fahim
  • 12,198
  • 5
  • 39
  • 57