I changed the position of my Maps Toolbar so that it is positioned in the left top corner of my Android App using this code:
RelativeLayout.LayoutParams toolbarParams = (RelativeLayout.LayoutParams) toolbar.getLayoutParams();
toolbarParams.addRule(RelativeLayout.ALIGN_PARENT_TOP, RelativeLayout.TRUE);
toolbarParams.addRule(RelativeLayout.ALIGN_PARENT_LEFT, RelativeLayout.TRUE);
toolbarParams.setMargins(0, 15, 10, 0);
toolbar.setLayoutParams(toolbarParams);
The position is correct, but once I click a marker, the toolbar flies in from the right side of the screen which looks bad. I'm trying to find a way to change the direction of that animation, so that it flies in from the left side of the screen, as its closer to the actual position.
I couldn't find any information on how to do it on the internet . Is it possible in any way?