diff options
| author | Kevin Lin <linkevin@google.com> | 2014-01-24 12:45:00 -0800 |
|---|---|---|
| committer | Kevin Lin <linkevin@google.com> | 2014-01-24 14:03:58 -0800 |
| commit | b10d1c652d0416c284d9792fc9a0a92b3acd51ca (patch) | |
| tree | 29b5c74b918e5043ea04a41a43bc612e880a8433 /res/values | |
| parent | f5c24c97ddba4bf2c626898734669f85c3acb00f (diff) | |
| download | android_frameworks_opt_chips-b10d1c652d0416c284d9792fc9a0a92b3acd51ca.tar.gz android_frameworks_opt_chips-b10d1c652d0416c284d9792fc9a0a92b3acd51ca.tar.bz2 android_frameworks_opt_chips-b10d1c652d0416c284d9792fc9a0a92b3acd51ca.zip | |
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
Diffstat (limited to 'res/values')
| -rw-r--r-- | res/values/attrs.xml | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/res/values/attrs.xml b/res/values/attrs.xml index 44c2500..6b26bcb 100644 --- a/res/values/attrs.xml +++ b/res/values/attrs.xml @@ -15,13 +15,17 @@ --> <resources> <declare-styleable name="RecipientEditTextView"> - <attr name="invalidChipBackground" format="reference" /> + <attr name="avatarPosition"> + <enum name="right" value="0" /> + <enum name="left" value="1" /> + </attr> <attr name="chipBackground" format="reference" /> <attr name="chipBackgroundPressed" format="reference" /> <attr name="chipDelete" format="reference" /> - <attr name="chipAlternatesLayout" format="reference" /> - <attr name="chipPadding" format="reference" /> - <attr name="chipHeight" format="reference" /> <attr name="chipFontSize" format="reference" /> + <attr name="chipHeight" format="reference" /> + <attr name="chipPadding" format="reference" /> + <attr name="disableDelete" format="boolean" /> + <attr name="invalidChipBackground" format="reference" /> </declare-styleable> -</resources> +</resources>
\ No newline at end of file |
