How to display a dialog fragment in almost full screen in Android -


i have dialog fragment , createview of

@override public view oncreateview(layoutinflater inflater, viewgroup container, bundle savedinstancestate) {     view view = inflater.inflate(r.layout.zse_dialog, container,false);      return view; } 

i call fragment with

expandablelistview.setonchildclicklistener(new expandablelistview.onchildclicklistener() {         @override         public boolean onchildclick(expandablelistview parent, view v,int groupposition, int childposition, long id)         {             fragmentmanager fm = getfragmentmanager();             dialogf dialogfragment = new dialogf ();             dialogfragment.show(fm, "sample fragment");              return false;         }     }); 

but seems compressed in center of screen.

how make show in full screen or in full screen margin

if have container on activity show dialogfragment, can add regular fragment, this

getfragmentmanager()     .begintransaction()     .add(r.id.container, new myfragment(), "fragment_tag")     .commit(); 

Comments

Popular posts from this blog

ios - RestKit 0.20 — CoreData: error: Failed to call designated initializer on NSManagedObject class (again) -

java - Digest auth with Spring Security using javaconfig -

laravel - PDOException in Connector.php line 55: SQLSTATE[HY000] [1045] Access denied for user 'root'@'localhost' (using password: YES) -