Expanding Button To X,y Positions
Here are my two buttons: http://prntscr.com/hos2hz (Ignore the dotted line) I want the GREEN button to expand with an animation to fill the whole of the view (highlighted in red):
Solution 1:
You can do something like this
TransitionManager.beginDelayedTransition(parent);
RelativeLayout.LayoutParams parms = (RelativeLayout.LayoutParams) child.getLayoutParams();
parms.height = RelativeLayout.LayoutParams.MATCH_PARENT;
parms.width = RelativeLayout.LayoutParams.MATCH_PARENT;
child.setLayoutParams(parms);
Post a Comment for "Expanding Button To X,y Positions"