Skip to content

Commit

Permalink
ReLayout toolbar after measure()
Browse files Browse the repository at this point in the history
The toolbar layout needs to be relayout after the call to measure() otherwise, for example, having centered content in the toolbar will appear as left align after stopping and restarting the activity (i.e. switching off the screen)
  • Loading branch information
Marco Cova committed Jul 9, 2013
1 parent e2cf4bd commit ced8ae0
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,7 @@ public void enableFor(View parent, int position) {
itemToolbar.measure(parent.getWidth(), parent.getHeight());

enableFor(more, itemToolbar, position);
itemToolbar.requestLayout();
}


Expand Down

0 comments on commit ced8ae0

Please sign in to comment.