이미지 텍스트와 버튼으로 맞춤 AlertDialog
을 만들려고합니다. 그것을 표시 할 때 나는 끔찍한 흰색 테두리를 얻습니다.사용자 정의 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();
}
당신이 topborder 및 이미지는 2-3 픽셀의 공간이 볼 수 있듯이. 당신이 대화 테두리 당신이이 여러분이 원하는 색으로 표시 할 경우
흰색 보어가 무슨 뜻입니까? – ingsaurabh
그냥 테두리. alertDialog의 테두리 (기본값은 흰색 테두리 임) – Peter
경고 대신 대화 상자를 사용할 수 있습니다 ..? –