diff options
| author | Jin Cao <jinyan@google.com> | 2014-09-12 22:59:29 +0000 |
|---|---|---|
| committer | Android (Google) Code Review <android-gerrit@google.com> | 2014-09-12 22:59:29 +0000 |
| commit | 569fbc00c666bc7df6e7259e88447945d46ddcae (patch) | |
| tree | a36128c6f27211e59a8e6dd36adc6ab708879e5c | |
| parent | e3267bcc4f39498ddb25f4014edf3c3b3725eae8 (diff) | |
| parent | bd312313f352424415b103dd05d281f8ac47d547 (diff) | |
| download | android_frameworks_opt_chips-569fbc00c666bc7df6e7259e88447945d46ddcae.tar.gz android_frameworks_opt_chips-569fbc00c666bc7df6e7259e88447945d46ddcae.tar.bz2 android_frameworks_opt_chips-569fbc00c666bc7df6e7259e88447945d46ddcae.zip | |
Merge "Set dropdown height so dropdowns wont be on top" into ub-chips-cranbrook
| -rw-r--r-- | src/com/android/ex/chips/RecipientEditTextView.java | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/com/android/ex/chips/RecipientEditTextView.java b/src/com/android/ex/chips/RecipientEditTextView.java index 1629360..7a6ae7a 100644 --- a/src/com/android/ex/chips/RecipientEditTextView.java +++ b/src/com/android/ex/chips/RecipientEditTextView.java @@ -505,6 +505,12 @@ public class RecipientEditTextView extends MultiAutoCompleteTextView implements if (entries != null && entries.size() > 0) { scrollBottomIntoView(); } + // Set the dropdown height to be the remaining height + final int[] coords = new int[2]; + getLocationInWindow(coords); + final Rect displayFrame = new Rect(); + getWindowVisibleDisplayFrame(displayFrame); + setDropDownHeight(displayFrame.bottom - coords[1] - getHeight()); } }); baseAdapter.setDropdownChipLayouter(mDropdownChipLayouter); |
