Android Customer Dialog make Exam
Android Customer Dialog make Exam
Declare and use
like this
MoveRouteListDlg dlg = new MoveRouteListDlg (context);
dlg.show();
public class MoveRouteListDlg extends Dialog implements android.view.View.OnClickListener{
private Context context;
public MoveRouteListDlg(Context context) {
// setting dialog style info
super(context, R.style.MoveDialog);
this.context = context;
LayoutInflater inflater = (LayoutInflater) context.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
// setting layout info
View layout = inflater.inflate(R.layout.move_route_dlg, null);
addContentView(layout, new LayoutParams( LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT));
confirm_btn = (Button) layout.findViewById(R.id.confirm_btn);
confirm_btn.setOnClickListener(this);
}
@Override
public void onClick(View v) {
}
}
R.style.MoveDialog
Declare and use
like this
MoveRouteListDlg dlg = new MoveRouteListDlg (context);
dlg.show();
public class MoveRouteListDlg extends Dialog implements android.view.View.OnClickListener{
private Context context;
public MoveRouteListDlg(Context context) {
// setting dialog style info
super(context, R.style.MoveDialog);
this.context = context;
LayoutInflater inflater = (LayoutInflater) context.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
// setting layout info
View layout = inflater.inflate(R.layout.move_route_dlg, null);
addContentView(layout, new LayoutParams( LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT));
confirm_btn = (Button) layout.findViewById(R.id.confirm_btn);
confirm_btn.setOnClickListener(this);
}
@Override
public void onClick(View v) {
}
}
R.style.MoveDialog
댓글
댓글 쓰기