안드로이드에서 타이틀 없이 Dialog를 만들수 있나요?
조회수 3634회
안드로이드에서
dialog = new Dialog(this);
dialog.setContentView(R.layout.my_dialog);
이런식으로 커스텀 다이얼로그를 만드려고하는데요. 제목이 출력되는 것만 빼고는 잘 돼요. Title을 빼도 다이얼로그가 팝업되면 그부분이 공백으로 나와서 문제에요.
다이얼로그의 제목 부분을 숨기는 방법이 없을까요?
LayoutInflater inflater =
(LayoutInflater) this.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
View view = inflater.inflate(R.layout.map_dialog, null);
AlertDialog.Builder builder = new AlertDialog.Builder(this);
builder.setView(view);
// dialog = new Dialog(this);
// dialog.setContentView(R.layout.map_dialog);
dialog = builder.create();
((TextView) dialog.findViewById(R.id.nr)).setText(number);
이렇게 해봤는데 제목을 숨기는 속성은 어딨는지 모르겠어요.
댓글 입력