Horje
code to close dialog containg layout Code Example
code to close dialog containg layout
    AlertDialog.Builder builder = new AlertDialog.Builder(this);

    LayoutInflater inflater = getLayoutInflater();
    View dialogView = inflater.inflate(R.layout.brush_opts_dialog,null);

    builder.setView(dialogView);


    closeBtn = (Button)dialogView.findViewById(R.id.close_btn);


   final AlertDialog dialog = builder.create();

    closeBtn .setOnClickListener(new View.OnClickListener() {
        @Override
        public void onClick(View v) {
            dialog.dismiss();
        }
    });

    dialog.show();




Java

Related
Aggregation in java Code Example Aggregation in java Code Example
processing java screen wrap Code Example processing java screen wrap Code Example
Does JVM create object of Main class (the class with main())? Code Example Does JVM create object of Main class (the class with main())? Code Example
Lists - removing Code Example Lists - removing Code Example
Read File and Resource in JUnit Test into Stream Code Example Read File and Resource in JUnit Test into Stream Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
6