Search
 
SCRIPT & CODE EXAMPLE
 

JAVA

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();
Comment

PREVIOUS NEXT
Code Example
Java :: java application security best practices 
Java :: Method returns value 
Java :: android bootom app bar tab bar 
Java :: unlock the screen 
Java :: Was ist ein String in java 
Java :: open youtube by default in full landscape mode pragmatically 
Java :: dicom read with java 
Java :: how is boolean array initialized if no input is given java 
Java :: goodbye java 
Java :: extended window style values in java 
Java :: dialog background dimming in android 
Java :: check if two characters are equal java 
Java :: hwo to calculate cuberoot of numbers in java 
Java :: mint menu disapeared 
Java :: convert text type to int java 
Java :: does stream map change original value 
Java :: UIManager.setLookAndFeel Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException: Cannot invoke because "style" is null 
Java :: Child inside NestedScrollView not cover full height of screen 
Java :: java to python converter 
Java :: check if there is connexion android studio 
Java :: codding loop 
Java :: using ..replace() in jShell/java 
Java :: firemonkey android ini file 
Java :: android studio analyze apk 
Java :: confirm dialog in java 
Java :: priority queue is empty java 
Java :: UserRedirectRequiredException: A redirect is required to get the users approval spring boot 5 security 
Java :: Java Creating strings using the new keyword 
Java :: int a[ ]={4,8,3,2}; a[0] = 23; a[3]= a[1]; a[2]=12; for(int i=0; i<a.length; i++) System.out.println(a[i]); 
Java :: show all debug points intellij 
ADD CONTENT
Topic
Content
Source link
Name
1+3 =