From 19537d9ec92ec715c6712c4e93d02aef5ca69fff Mon Sep 17 00:00:00 2001 From: Laurent Meyer Date: Wed, 15 Mar 2017 15:16:18 +0100 Subject: [PATCH] Related to himanshu-soni/ChatMessageView#21 (The default is right and was not behaving as it should) --- .../me/himanshusoni/chatmessageview/ChatMessageView.java | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/chat-message-view/src/main/java/me/himanshusoni/chatmessageview/ChatMessageView.java b/chat-message-view/src/main/java/me/himanshusoni/chatmessageview/ChatMessageView.java index b13c010..7e7e3ff 100644 --- a/chat-message-view/src/main/java/me/himanshusoni/chatmessageview/ChatMessageView.java +++ b/chat-message-view/src/main/java/me/himanshusoni/chatmessageview/ChatMessageView.java @@ -155,12 +155,9 @@ private void updatePositionAndGravity() { } default: { arrowRotation = 0; - //arrowParams.addRule(ALIGN_PARENT_RIGHT, TRUE); - containerParams.addRule(ALIGN_PARENT_LEFT, TRUE); + arrowParams.addRule(ALIGN_PARENT_RIGHT, TRUE); arrowParams.setMargins(0, (int) arrowMargin, 0, (int) arrowMargin); - - //containerParams.addRule(LEFT_OF, arrowImage.getId()); - arrowParams.addRule(RIGHT_OF, containerLayout.getId()); + containerParams.addRule(LEFT_OF, arrowImage.getId()); break; } }