diff options
| author | Jin Cao <jinyan@google.com> | 2014-09-12 23:12:39 +0000 |
|---|---|---|
| committer | Android Git Automerger <android-git-automerger@android.com> | 2014-09-12 23:12:39 +0000 |
| commit | 46b38b7ffe4a3c7d05a993470229e0dd0301fc4e (patch) | |
| tree | 659085b9d479f57421cb9ed91a4664a862185cfa | |
| parent | 066a2608a922e1fc67a24589bf2c7dc61fe56eb5 (diff) | |
| parent | 569fbc00c666bc7df6e7259e88447945d46ddcae (diff) | |
| download | android_frameworks_opt_chips-46b38b7ffe4a3c7d05a993470229e0dd0301fc4e.tar.gz android_frameworks_opt_chips-46b38b7ffe4a3c7d05a993470229e0dd0301fc4e.tar.bz2 android_frameworks_opt_chips-46b38b7ffe4a3c7d05a993470229e0dd0301fc4e.zip | |
am 569fbc00: Merge "Set dropdown height so dropdowns wont be on top" into ub-chips-cranbrook
* commit '569fbc00c666bc7df6e7259e88447945d46ddcae':
Set dropdown height so dropdowns wont be on top
| -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 78bc72a..10187d6 100644 --- a/src/com/android/ex/chips/RecipientEditTextView.java +++ b/src/com/android/ex/chips/RecipientEditTextView.java @@ -504,6 +504,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); |
