LayoutInflater mInflater1 = (LayoutInflater) getSystemService(LAYOUT_INFLATER_SERVICE);
View mDialogLayout1 = mInflater1.inflate(
R.layout.alert_dialog_title, null);
LayoutInflater mInflater = (LayoutInflater) getSystemService(LAYOUT_INFLATER_SERVICE);
View mDialogLayout = mInflater.inflate(R.layout.alert_dialog, null);
builder.setPositiveButton("다시하기",
new DialogInterface.OnClickListener() {
public void onClick(DialogInterface dialog,
int whichButton) {
}
});
builder.setNegativeButton("다시하기",
new DialogInterface.OnClickListener() {
public void onClick(DialogInterface dialog,
int whichButton) {
}
});
builder.setCustomTitle(mDialogLayout1);
builder.setView(mDialogLayout);
builder.create();
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:background="@drawable/melon_list_select_bar_longtap"
>
<TextView
android:text="title"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:gravity="center_horizontal|center_vertical"
android:textSize="24px">
</TextView>
</LinearLayout>
'안드로이드' 카테고리의 다른 글
안드로이드 SharedPreferences 사용(데이터 저장기능) (0) | 2011.08.16 |
---|---|
안드로이드 웹뷰 프로그래스바 android webview prograssbar wheel (0) | 2011.06.24 |
custom alertDialog 다이얼로그 완전 바꾸기 타이틀 색도 바꾸고 이미지도 바꾸고 허접 라인도 지우고 (0) | 2011.06.23 |
안드로이드 apk 디컴파일(까보자) (0) | 2011.06.22 |
안드로이드 소스 f3누르면 보이게 하는 방법(android.jar source 보이는 방법) (0) | 2011.06.20 |