Android - add fragment with custom dimensions -
currently, adding fragment using following code. private void addfragment(fragment fragment, string fragmentname) { log.i("adder", "adding fragment " + fragmentname); fragmenttransaction fragmenttransaction = fragmentmanager.begintransaction(); fragmenttransaction.add(r.id.fragment_container, fragment, fragmentname); fragmenttransaction.commit(); } following code resizing added fragment. private boolean readjustfragment(fragment fragmenttobeadjusted, fragmentcoordinates fragmentcoordinates) { if (fragmenttobeadjusted != null) { view view = fragmenttobeadjusted.getview(); relativelayout.layoutparams params = new relativelayout.layoutparams(fragmentcoordinates.getwidth(), fragmentcoordinates.getheight()); params.leftmargin = fragmentcoordinates.getx0(); params.bottommargin = fragmentcoordinates.gety0(); view.setlayoutparams(params); view.requestlayout(); return true; } return...