http://blog.androgames.net/10/custom-android-dialog/

аюсь создать кастомAlertDialog с изображением текста и кнопок. Когда я показываю это, я получаю белую рамку, которая выглядит ужасно.

Как я могу избавиться от этой белой границы?

Вот мой пользовательский диалог:

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();

    }

Как видите, верхняя граница и изображение имеют пространство в 2-3 пикселя.

Ответы на вопрос(3)

Ваш ответ на вопрос