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
Post a Comment