Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- AlertDialog.Builder builder=new AlertDialog.Builder(this);
- LayoutInflater inflater = getLayoutInflater();
- // Inflate and set the layout for the dialog
- // Pass null as the parent view because its going in the dialog layout
- View view=inflater.inflate(R.layout.custom_dialog, null);
- builder.setView(view);
- Dialog dialog = builder.create();
- dialog.requestWindowFeature(Window.FEATURE_NO_TITLE);
- Button btnPositive=(Button) view.findViewById(R.id.btnPositive);
- Button btnNegative=(Button) view.findViewById(R.id.btnNegative);
- Button btnNeutral=(Button) view.findViewById(R.id.btnNeutral);
- TextView txvTitle=(TextView)view.findViewById(R.id.title);
- TextView txvMessage=(TextView)view.findViewById(R.id.message);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement