xml - How to make an alert dialogue transparent in android -


i using alert dialog displaying checkboxes.i need transparent view whole alertview , contents.i tried many way...but not helps me...can me...any highly apppreciated....

code creating alert dialogue in java

context c = getparent();                                 m_adapter = new intrested_in_adapter(                                         requestclass.this,                                         r.layout.intrestedin, offferlist);  //                              dialog dialog = new dialog(this, r.style.newdialog); //                              mdialog = new alertdialog.builder(c,r.style.newdialog);                                 mdialog = new alertdialog.builder(c);                                 mdialog.settitle("intrested in");                                  mdialog.setadapter(m_adapter,                                         new dialoginterface.onclicklistener() {                                             public void onclick(                                                     dialoginterface dialog,                                                     int item) {                                              }                                         });                                  alertdialog = mdialog.create();                                 log.e(tag,"before background setting"); //                              alertdialog.requestwindowfeature(window.feature_no_title); //                              alertdialog.getwindow().setbackgrounddrawable(new colordrawable(android.graphics.color.transparent));                                 log.e(tag,"after background setting");                                  alertdialog.show(); 

xml alert dialogue(intrestedin.xml)

<?xml version="1.0" encoding="utf-8"?> <linearlayout xmlns:android="http://schemas.android.com/apk/res/android"     android:layout_width="match_parent"     android:layout_height="match_parent"     android:orientation="vertical"       >      <checkbox         android:id="@+id/checkbox"         android:layout_width="wrap_content"         android:layout_height="wrap_content"         android:textcolor="#000000"           /> </linearlayout> 

may helps

<?xml version="1.0" encoding="utf-8"?> <linearlayout xmlns:android="http://schemas.android.com/apk/res/android"     android:layout_width="match_parent"     android:layout_height="match_parent"     android:orientation="vertical"      android:background="@android:color/transparent" //make background transparent here using line >  <checkbox     android:id="@+id/checkbox"     android:layout_width="wrap_content"     android:layout_height="wrap_content"     android:textcolor="#000000"       /> 


Comments

Popular posts from this blog

Payment information shows nothing in one page checkout page magento -

tcpdump - How to check if server received packet (acknowledged) -