Pages

Subscribe:

Labels

Tuesday, 27 September 2011

Android Custom Dialog without title

AlertDialog alertDialog;
AlertDialog.Builder builder = new AlertDialog.Builder(this);
LayoutInflater inflater = (LayoutInflater)getSystemService(LAYOUT_INFLATER_SERVICE);
View layout = inflater.inflate(R.layout.linkpopup,null);
CheckBox dontdisplay=(CheckBox)layout.findViewById(R.id.dontdisplay);
Button popupok=(Button)layout.findViewById(R.id.linkpopupok);
dontdisplay.setOnCheckedChangeListener(new OnCheckedChangeListener(){
      @Override
      public void onCheckedChanged(CompoundButton buttonView,    boolean isChecked) {
             if(isChecked)
                        db.updateDegfaultvalues("dontflag",1);
            else
                        db.updateDegfaultvalues("dontflag",0);
       }
});
popupok.setOnClickListener(new OnClickListener(){
    @Override
     public void onClick(View arg0) {
             alertDialog.cancel();
    }
});
       builder.setView(layout);
       alertDialog = builder.create();
       alertDialog.show();

5 comments:

Anderson Joey said...

Great blog post. I used to be checking continuously this blog and I am impressed! Extremely helpful information specially the closing phase :) I deal with such info a lot. I used to be seeking this particular information for a very lengthy time. Thanks and good luck.
custom training

bar kerark said...

This blog is given very good information about this topic and the blog very knowledge full and all post are attractive
servidor de nuvem no brasil

Geetha Devi said...

Given so much info in it, These type of articles keeps the users interest in the website, and keep on sharing more Android Training institute in chennai with placement | Best Android Training in velachery

Cynix Technologies said...

Good information .thank you for sharing Android Online Training

soumya Reddy said...

Very Good Informative Content Android Online Training

Post a Comment