java - How to change the height of a button and a map when a bottomSheet expands and collapses -
i have app contains button , map , bottom sheet . button set @ top of bottom sheet , when bottom sheet expands hides button. want when bottom sheet expands height of button , map changes same value bottom sheet changed with. (i know value button , map should translated dont know how implement , value 110 dp)
java code
controlbutton = (button) findviewbyid(r.id.controlbutton); bottomsheet = findviewbyid(r.id.bottom_sheet); bottomsheetbehavior = bottomsheetbehavior.from(bottomsheet); bottomsheetbehavior.setpeekheight((int) getapplicationcontext().getresources().getdimension(r.dimen.card_view_height)); bottomsheetbehavior.setstate(bottomsheetbehavior.state_collapsed); bottomsheet.setvisibility(view.invisible);
card_view_height value need button height change with
Comments
Post a Comment