change background and text color in AlertController android -


how can change background , text color in alertcontroller? there way without using xml, can add or modify here color can changed? able change color of bluetooth_discoverable not able change background color in top , down area icon present.

void createdialog(){ final alertcontroller.alertparams p=malertparams; p.miconid=android.r.drawable.ic_dialog_info; p.mtitle=getstring(r.string.bluetooth_permission_request); view view=getlayoutinflater().inflate(r.layout.bluetooth_discoverable,null); p.mview=view; textview tv=(textview)view.findviewbyid(r.id.message); if (menableonly) { tv.settext(getstring(r.string.bluetooth_ask_enablement)); } else {   v.settext(getstring(r.string.bluetooth_ask_enablement_and_discovery,mtimeout)); } p.mpositivebuttontext=getstring(r.string.yes); p.mpositivebuttonlistener=this; p.mnegativebuttontext=getstring(r.string.no); p.mnegativebuttonlistener=this; setupalert(); } 


Comments

Popular posts from this blog

php - failed to open stream: HTTP request failed! HTTP/1.0 400 Bad Request -

java - How to filter a backspace keyboard input -

java - Show Soft Keyboard when EditText Appears -