History log of /frameworks/opt/chips/src/com/android/ex/chips/DropdownChipLayouter.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
23f4fd2e3581f29e164d4b62a9095ab1e492c009 07-Oct-2015 Michael Berberet <berberet@google.com> Patch for the third_party chips library to fix functionality with phone numbers.

Currently the popup from touching a chip uses the Rfc822Tokenizer to extract email addresses from the destination for the SingleRecipient adapter type. This behavior doesn't work for phone numbers, as anything within parentheses (ie. area codes) get removed from the destination.

Change-Id: I333c1a55b5475aa3559bf721af402ae0db024342
/frameworks/opt/chips/src/com/android/ex/chips/DropdownChipLayouter.java
d829c9383940496eedd0ab6027efad36a0ec235c 30-Sep-2015 Ben Brosbe <benbro@google.com> Allowing subclasses of DropdownChipLayouter to optionally have their own logic for styling string matches

Change-Id: I2c483ddd4e0b64a9efa961de0005eba89e2b8a61
/frameworks/opt/chips/src/com/android/ex/chips/DropdownChipLayouter.java
e78ad406f0b2ee0d031b71b33e6094a6961f7c79 13-Aug-2015 Greg Bullock <gregbullock@google.com> UX tweaks to make permission request entry match mocks.

This is another rollforward of ag/747527.

See mock at https://goto.google.com/qwkrj and current screenshot
at https://screenshot.googleplex.com/F84J6xuG5zJ.

Ensure that the bottom border of the contacts autocomplete permission
request entry extends to the far left of the screen.
Also add a shadow to the bottom.

This is achieved by having an additional view its own style whose
visibilility is toggled according to the entry type.

Change-Id: I22cf40320b4ea9b77e4a0ea4a93c949d5e87c3c6
/frameworks/opt/chips/src/com/android/ex/chips/DropdownChipLayouter.java
0d4d806606fa8210ad09430fab3a230a1c4e3681 13-Aug-2015 Greg Bullock <gregbullock@google.com> This broke a bunch of people due to some style name mismatches.

This reverts commit 174917b0eae33cf51af7fab947c49738028ed018.

Change-Id: I3a07b5dbee5bd2bf7237cff6fb84dd724114f10d
/frameworks/opt/chips/src/com/android/ex/chips/DropdownChipLayouter.java
174917b0eae33cf51af7fab947c49738028ed018 12-Aug-2015 Greg Bullock <gregbullock@google.com> UX tweaks to make permission request entry match mocks

https://folio.googleplex.com/gmailq/Android/Redlines/03_Compose#%2F01_Mobile_004_permission_03.png.

Ensure that the bottom border of the contacts autocomplete permission request entry extends to the far left of the screen.

Also add a shadow to the bottom.

This is achieved by having a separate layout for regular person entries and permission entries.

See https://x20web.corp.google.com/users/gr/gregbullock/www/Screenshot_20150812-140329.png

Reviewed in critique CL: https://critique.corp.google.com/#review/100454209

Change-Id: I9384e95f3ab3bcb1a0a6865de9edc9d3efe2a2d5
/frameworks/opt/chips/src/com/android/ex/chips/DropdownChipLayouter.java
f1ad4f6dba7c6ea28f529736b8662faa6fb498f8 16-Jul-2015 Milos Stankovic <miloss@google.com> Adding support for permission.

Change-Id: I01956311049afb887808d24119a2649cbe7cda4d
mocks: https://folio.googleplex.com/gmailq/Android/UR18/03_M_permission#%2F01_autocomplete.png%3Fz=width&f=hidden
see: http://cl/97951906
/frameworks/opt/chips/src/com/android/ex/chips/DropdownChipLayouter.java
84f848c6601f1759689c5318e8d01924ce2f0b2b 16-Jun-2015 Braden Walker <bradenw@google.com> Add the ability to display an indicator icon and text for a recipient.

Change-Id: I40a3fd4856dec74aacdf2624853f6fab183ff182
/frameworks/opt/chips/src/com/android/ex/chips/DropdownChipLayouter.java
6f86e3b4ab4137d43769d78abd9a45ed84e6e50d 11-Feb-2015 Scott Kennedy <skennedy@google.com> Allow setting the divider start margin in the chips dropdown

Change-Id: I1c25bbadb1a697e8e69fc6b881c5935bdac97a24
/frameworks/opt/chips/src/com/android/ex/chips/DropdownChipLayouter.java
e5d17d57be3b89a6adb7d429a4cb3cb1fbb422ff 11-Feb-2015 Scott Kennedy <skennedy@google.com> Highlight the text that matches the constraint

The name and email will now be the same color, and the first instance
of text that matches the query will be highlighted a darker grey.

This code was copied from Inbox.

Change-Id: Ia7857bc31880259db0e7876eb50617f764fc3ceb
/frameworks/opt/chips/src/com/android/ex/chips/DropdownChipLayouter.java
6c3f99e2e9f0f1ada622c7ab25876b69fa82b146 22-Jan-2015 Jin Cao <jinyan@google.com> Add content description to the chips delete icon

b/19102218

Change-Id: I94f6cc642a12793dc7ee38afad6589d52f262d1a
/frameworks/opt/chips/src/com/android/ex/chips/DropdownChipLayouter.java
ffc0111fa742c72f2457cecc1116e4ea3c6c8c6e 16-Dec-2014 Jin Cao <jinyan@google.com> Clean up chips

- Don't reset selection when we manually change selection due
to selecting a chip. We need this selection index to make
backspace properly delete the correct chip.
- Remove selected chips code because we now use the popup for
selected indicator.
- Fix accessibility SDK (didn't crash previously because with
SDK < 16 mIsAccessibilityOn is always false anyway).
- Clean up various warnings throughout RecipientEditTextView.

b/18682890

Change-Id: Ided53c0ea29532262c1f592798381ed9bc704fc0
/frameworks/opt/chips/src/com/android/ex/chips/DropdownChipLayouter.java
a20a8d02c0b6a9440a61870ee6c7a6b6c92fbf4b 07-Aug-2014 Jin Cao <jinyan@google.com> Ensure delete listener is set for chips

When the app overrides the default DropdownLayouter,
make sure that we always set the delete listener.

b/16851158

Change-Id: I7794ef2051b837de0722df2033fe531cf4cc01f4
/frameworks/opt/chips/src/com/android/ex/chips/DropdownChipLayouter.java
b58c9a621a250c6119be2d5a77164b940a8559b0 06-Aug-2014 Jin Cao <jinyan@google.com> [Quantum chips] add custom dividers for autocomplete

b/16818548

Change-Id: Idb3a112af7a16f05bfcf9e2f9ae14f3ef32aecef
/frameworks/opt/chips/src/com/android/ex/chips/DropdownChipLayouter.java
4db8cccf3332ad7c6fb1915f9f0f169953c3953a 30-Jul-2014 Jin Cao <jinyan@google.com> [Quantum chips] add delete button in dropdown

For single/alternate recipient dropdown there is
now a delete button next to the currently selected
contact for easier removal of the selected chip.

b/16383133

Change-Id: Ied238b91b42673142de88a159b50772bd6b7b937
/frameworks/opt/chips/src/com/android/ex/chips/DropdownChipLayouter.java
6fc1fee597ebe3c30ebe5efebb4d6ea105641e0f 30-Jul-2014 Jin Cao <jinyan@google.com> [Quantum] update alt/single chips to quantum

Updated UI for alternates/single chips dropdown.

Not included: X button next to selected chip for removal.

b/15934812

Change-Id: Id34e28f1783f85ffbe33f82b1d230c3def27589a
/frameworks/opt/chips/src/com/android/ex/chips/DropdownChipLayouter.java
4ddcdaed9ef5ea83910a0513e87538130270e2e4 29-Jul-2014 Jin Cao <jinyan@google.com> [Quantum] chips autocomplete to quantum style

Separate layout for chips that have icons on the lefthand
side and icons on the righthand side.

b/15934812

Change-Id: I7b58197e46ad48bb838ee5e0c34bb06b0b74dfba
/frameworks/opt/chips/src/com/android/ex/chips/DropdownChipLayouter.java
c85e75e231fab797a4b0bda5a0d8373419718dab 10-Jul-2014 Scott Kennedy <skennedy@google.com> Update dropdown assets/layouts for Material

Change-Id: I4b5684896e4e70b6f44f3feb2bf0f997265be848
/frameworks/opt/chips/src/com/android/ex/chips/DropdownChipLayouter.java
7a4e67708498ec46c2e9b3bad69d3807d88c064e 21-Nov-2013 Scott Kennedy <skennedy@google.com> Fix directory lookups

The previous "fix" disabled the lookups.

Now we will do the lookups, with the proper lookup key and
directory id. We also do a much better job of showing directory
images.

Bug: 11693322
Bug: 12793279

Change-Id: I372711fd7b485f3183516fce2b11f9eff46a9b23
/frameworks/opt/chips/src/com/android/ex/chips/DropdownChipLayouter.java
b10d1c652d0416c284d9792fc9a0a92b3acd51ca 24-Jan-2014 Kevin Lin <linkevin@google.com> Main changes to the chips library:
Changed attribute styles
- Added an avatar position (left, right) inside the chip
- Added a disableDelete boolean
- Removed chipsAlternateLayout

Changed how to layout contacts in autocomplete list.
Added a separate class to handle layout and binding information. (This way clients can extend this class and have a customizable layout)
This new class lives inside RecipientEditTextView and is passed onto each adapter.

Merged code paths for createSelectedChip and createUnselectedChip.
Merged code paths for getView() in each of the 3 adapters by using DropdownChipLayouter.

All tests still pass since this CL is mostly infrastructure layout changes.

There are some non-backwards compatible changes with this if other clients are using this library.
BaseRecipientAdapter no longer has protected methods to override the layout and id's.
The attribute file no longer has chipsAlternateLaytout.
Both these features can still be used through the new DropdownChipLayouter class.

Change-Id: I4496232eddd194be2df6a047f75637114f2eaa52
/frameworks/opt/chips/src/com/android/ex/chips/DropdownChipLayouter.java