forked from organicmaps/organicmaps
[android] Added FloatingMarkerView layout params removal
This commit is contained in:
parent
7c4eeb0b86
commit
95723cc3eb
1 changed files with 2 additions and 0 deletions
|
@ -149,6 +149,7 @@ public class FloatingMarkerView extends MarkerView
|
|||
LayoutParams toBecomeDependent = isInvertedOrder ? imgParams : textParams;
|
||||
|
||||
toBecomeAnchor.removeRule(RelativeLayout.END_OF);
|
||||
toBecomeAnchor.removeRule(RelativeLayout.RIGHT_OF);
|
||||
toBecomeDependent.addRule(RelativeLayout.END_OF, anchorId);
|
||||
|
||||
mFloatingTriangle.setRotation(isInvertedOrder ? 0 : TRIANGLE_ROTATION_ANGLE);
|
||||
|
@ -163,6 +164,7 @@ public class FloatingMarkerView extends MarkerView
|
|||
anchorId = isInvertedOrder ? mTextContentContainer.getId() : mFloatingTriangle.getId();
|
||||
|
||||
toBecomeAnchor.removeRule(RelativeLayout.END_OF);
|
||||
toBecomeAnchor.removeRule(RelativeLayout.RIGHT_OF);
|
||||
toBecomeDependent.addRule(END_OF, anchorId);
|
||||
|
||||
mFloatingTriangle.setLayoutParams(triangleParams);
|
||||
|
|
Loading…
Add table
Reference in a new issue