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)

collapsed bottom sheet

expanded bottom sheet

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

Popular posts from this blog

java - Jasper subreport showing only one entry from the JSON data source when embedded in the Title band -

serialization - Convert Any type in scala to Array[Byte] and back -

SonarQube Plugin for Jenkins does not find SonarQube Scanner executable -