Я пытаюсь создать пользовательский AlertDialog
с изображением текста и кнопок.Когда я показываю это, я получаю белую рамку, которая выглядит ужасно.
![enter image description here](https://i.stack.imgur.com/eM3Ty.png)
Как мне избавиться от этой белой границы?
Здесь мой пользовательский диалог:
public LinearLayout customeLL;
public void alertD()
{
AlertDialog ad;
AlertDialog.Builder builder;
Context mContext = getApplicationContext();
TextView a = new TextView(getApplicationContext());
a.setText("Test dialog");
ImageView img = new ImageView(getApplicationContext());
img.setBackgroundResource(R.drawable.bottombar_bg);
LinearLayout customeLL = new LinearLayout(getApplicationContext());
customeLL.setOrientation(LinearLayout.VERTICAL);
customeLL.addView(img,curWidth,37);
customeLL.addView(a,curWidth,37);
builder = new AlertDialog.Builder(myClass.this);
builder.setView(customeLL);
ad=builder.create();
ad.show();
}
Как вы можете видетьtopborder и изображение имеют пространство в 2-3 пикс.