From 604c2d0ae571b307f3661ce5002441f49a64c2ed Mon Sep 17 00:00:00 2001 From: Erica Chang Date: Fri, 15 Jul 2016 08:00:19 -0700 Subject: Contacts : fix quick contacts card invite entry -QuickContactsCard's InCall "directory search" may be too long in certain languages and overlap with the "invite" text, need to line wrap Change-Id: Id5d6f069a657480ac63a928d37dd8adcc111d813 Issue-Id: CD-3117 --- src/com/android/contacts/quickcontact/ExpandingEntryCardView.java | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/com/android/contacts/quickcontact/ExpandingEntryCardView.java b/src/com/android/contacts/quickcontact/ExpandingEntryCardView.java index 4039f0b8b..c51d16605 100644 --- a/src/com/android/contacts/quickcontact/ExpandingEntryCardView.java +++ b/src/com/android/contacts/quickcontact/ExpandingEntryCardView.java @@ -899,6 +899,13 @@ public class ExpandingEntryCardView extends CardView { thirdTextView.setTag(new EntryTag(entry.getId(), entry.getThirdIntent(), entry)); thirdTextView.setTextColor(mThemeColor); thirdTextView.setVisibility(View.VISIBLE); + // set rule to make sure the header wraps before the third text + if (header != null) { + RelativeLayout.LayoutParams headerLayoutParams = + (RelativeLayout.LayoutParams) header.getLayoutParams(); + headerLayoutParams.addRule(RelativeLayout.START_OF, thirdTextView.getId()); + header.setLayoutParams(headerLayoutParams); + } } else { thirdTextView.setVisibility(View.GONE); } -- cgit v1.2.3