summaryrefslogtreecommitdiffstats
path: root/res/values
Commit message (Collapse)AuthorAgeFilesLines
* chips: suggested contactsJorge Ruesga2015-10-183-0/+29
| | | | | | | | | | | | | | | This change adds support for custom suggested contacts (not associated/present in the contacts provider) in BaseRecipientAdapter. Basically an implementor MUST overload BaseRecipientAdapter#loadSuggestedEntries and return a set of SuggestionEntry. This class also should react to onAddSuggestion and onDeleteSuggestion methods, invoked when the user request add/delete the suggested contact. Vectors/SVG: https://cloud.ruesga.com/f/633563d38f/ Change-Id: I8312cba56251caab82b92e4e7520f8c9db7d9690 Signed-off-by: Jorge Ruesga <jorge@ruesga.com>
* Chips: Add a view attribute for maximum number of chips parsedRaj Yengisetty2015-10-101-1/+2
| | | | | | Additionally add a dynamic way to set maxChipsParsed Change-Id: I8e88d4268b8e2ecc6de26d8cf69a985821c8e9f0
* Highlight the text that matches the constraintScott Kennedy2015-02-102-3/+7
| | | | | | | | | 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
* Add content description to the chips delete iconJin Cao2015-01-221-7/+5
| | | | | | b/19102218 Change-Id: I94f6cc642a12793dc7ee38afad6589d52f262d1a
* Clean up chipsJin Cao2014-12-151-1/+0
| | | | | | | | | | | | | | | - 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
* Adding customized chip color supportKaikai Wang2014-12-091-0/+4
| | | | | | | | | | Adding customized chip color attributes to selected and unselected states, so that chip consumers can use their own colors for the chips to better serve their UX requirements. Without specifying these colors, the chips UI will keep the current default color scheme Bug: 18293881 Change-Id: I269c478df312ea634f90bd1c97a7a08c3d14d9d7
* Use $d instead of $s for number formattingJin Cao2014-10-221-1/+1
| | | | | | | | To ensure that the numbers are properly translated. b/18011726 Change-Id: Id01bd690ac87875b17cfa4222e00b764aef9fba1
* Announce chips dropdown for accessibilityJin Cao2014-09-161-0/+2
| | | | | | | | Announce when chip's dropdown opens. b/17262070 Change-Id: Ic99ee22f4a4f41e0f0d468496992822f8b60dbdd
* Allow for keyboard navigation down chips listJin Cao2014-09-021-3/+2
| | | | | | | | | | Replace the old dropdown background with simply selectableItem because the autocomplete list doesn't require states such as activated (mostly used for alt/single recipient popup). b/17322127 Change-Id: I742850854f568852c7b1f5fdf2a6bca247ba3b59
* [Quantum chips] change chips into ReplacementSpanJin Cao2014-08-182-2/+1
| | | | | | | | | | | | There seems to be an issue with ImageSpan where it sets the default text cursor size to the height of the ImageSpan. In this CL I changed the chips to extend ReplacementSpan and simply draw the chip ourselves by overriding the draw method. b/16700424 Change-Id: I66a8bf3068e24a669121c7323323fd03138ca7b3
* [Quantum chips] code cleanup and restylingJin Cao2014-08-102-10/+14
| | | | | | | | | | | | Cleaned up the variable placements in RecipientEditTextView and removed some outdated functionality. Updated the style for alternate/single recipient dropdown to redline. b/16851158 Change-Id: I0829be08cbf6d603c4b029aec820937379c5dad2
* Support custom popup anchor in RecipientEditTextViewJin Cao2014-08-082-1/+2
| | | | | | b/16851158 Change-Id: Icb4c511671c512e6095c8fa9607dc4d898ba2b08
* [Quantum chips] support RTL in dropdownJin Cao2014-08-071-0/+2
| | | | | | b/16872653 Change-Id: Ic1e587bea6426a163dbdccb7ae42d4f8dfa205f4
* [Quantum chips] draw chips programmaticallyJin Cao2014-08-061-0/+4
| | | | | | | | | Why use assets when we can draw chips background programmatically. Even better, it's faster (maybe) and more space efficient (def). b/16732676 Change-Id: Ib8dac66eb7e04bf0da08aa9cabe6349402484c5c
* Merge "Don't use "done" for string name." into ub-chips-cranbrookAndrew Sapperstein2014-08-041-1/+1
|\
| * Don't use "done" for string name.Andrew Sapperstein2014-08-061-1/+1
| | | | | | | | Change-Id: Ied4449f02ef5683764fcfeb9b95b6d0c665c1132
* | [Quantum chips] add custom dividers for autocompleteJin Cao2014-08-062-2/+9
| | | | | | | | | | | | b/16818548 Change-Id: Idb3a112af7a16f05bfcf9e2f9ae14f3ef32aecef
* | [Quantum chips] restyle text viewsJin Cao2014-07-311-2/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | Restyle the text views and their parent layout to properly align vertically when one of the textviews is set to GONE. Previously lost the behavior with the change from RelativeLayout to LinearLayout since LinearLayout will always set the child to top regardless of it's layout_gravity. b/16383133 Change-Id: I6543af42f1e7e05e6a213ba3f37107d90439808d
* | [Quantum chips] add delete button in dropdownJin Cao2014-07-311-23/+15
|/ | | | | | | | | | 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
* [Quantum] update alt/single chips to quantumJin Cao2014-07-292-12/+14
| | | | | | | | | | Updated UI for alternates/single chips dropdown. Not included: X button next to selected chip for removal. b/15934812 Change-Id: Id34e28f1783f85ffbe33f82b1d230c3def27589a
* [Quantum chips] restyle recipient chips to quantumJin Cao2014-07-292-3/+10
| | | | | | | | | Restyle recipient chips to quantum redlines, also remove padding style from non-autocomplete dropdowns. b/15934812 Change-Id: I28eef0f4b9d622f81782d12f279e78af10c14458
* [Quantum] chips autocomplete to quantum styleJin Cao2014-07-292-3/+58
| | | | | | | | | Separate layout for chips that have icons on the lefthand side and icons on the righthand side. b/15934812 Change-Id: I7b58197e46ad48bb838ee5e0c34bb06b0b74dfba
* Update dropdown assets/layouts for MaterialScott Kennedy2014-07-103-7/+30
| | | | Change-Id: I4b5684896e4e70b6f44f3feb2bf0f997265be848
* Update assets/dimensions/defaults to match Material specScott Kennedy2014-07-091-2/+2
| | | | Change-Id: I0d39a630492b08cd647bb39c2aab1bc4a86b8aee
* RTL - properly set text alignment and direction.Andrew Sapperstein2014-03-041-1/+4
| | | | | | Fixes b/12569794. Change-Id: I5c2bb4195f8073bb7778b98dcf332d3efbffb934
* Added support to choose vertical alignment for image spans.Kevin Lin2014-02-261-0/+4
| | | | | | TESTED=phone Change-Id: I582224467b4626afd1414889166f4fbbc773897f
* Support RTL in chips library.Andrew Sapperstein2014-01-273-3/+19
| | | | | | Fixes b/12569794. Change-Id: I927a5d3e0d4af42a3ca3fbbb87ba201fe7bb830e
* Main changes to the chips library:Kevin Lin2014-01-241-5/+9
| | | | | | | | | | | | | | | | | | | | | | | 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
* Merge from ur8mindyp2012-12-031-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Merges in: Fixup delete logic Its only a delete if the user has removed a single character, otherwise, we are looking at replacement, probably from a reverse lookup Ia7c7b94d9e2fb037cb19abdb6696f7df0d351856 Make sure we only use the invisible chips optimization if we are showing the "more" chip In the case of calendar, we never shrink the field, so this optimization can't be used I30e3312b8e686be5143f96d3d2820e023158957d mMaxLines was not being set correctly; dont draw hidden chips on first render pass mMaxLines was always zero Setting the value correctly avoids an extra layout which makes it faster to render chips Use an "invisible" recipient chip for anything > than max chips we can show before showing the more chip; this avoids a lot of unnecessary drawing and decoding of 9 patches in the first pass; once these are resolved (or the user makes them visible), they will be correctly drawn as visible chips Part of b/7492291 First 2 contacts takes too long to resolve into chips when there are many contacts I37817381f93efb968940031d8a8b77fb62c8919a Change-Id: I4cbe5eacaa6fc5d1d94a5663133da82621582824
* Change # more to +#Mindy Pereira2012-07-101-1/+1
| | | | | | Part of b/6801151 Improvements to chips for gmail Change-Id: Iaa447404be250eccc33e91e9abdfeafec73354af
* Rather than change the text, just remove the waiting for entries row.Mindy Pereira2012-05-251-3/+0
| | | | | | | Fixes b/6546713 Blank suggestion is sometimes shown even if nothing was typed per ux Change-Id: I5c6d1f6620426bd96abca1bad650663ab6c5c426
* Fix offset of alternates list dropdown.Mindy Pereira2012-05-232-1/+2
| | | | | | Fixes b/6546711 Chips suggestion is below selected chip Change-Id: I14821855b510b30e8eb4798eb4cc4a9c69f4dca9
* Change text on "done" to say "return"Mindy Pereira2012-05-091-0/+3
| | | | | | Fixes b/6468243 While adding chips to the To field display label "Return" instead of "Done" Change-Id: I42f9a845c553f0aa01971c5b3221ce5d0504c810
* Support phone numbers in Chips UITom Taylor2012-04-061-1/+4
| | | | | | | | | | Bug 5066294 Add Zak's work for supporting phone numbers in the Chips UI. The default remains email-centric, but the phone number option works great for apps like Messaging. Change-Id: I17cd8460f1b96f28ced8bbb32e145581dae6d807
* Make attributes related to chip backgrounds styleable.Mindy Pereira2011-12-161-0/+7
| | | | Change-Id: I8d4f944e91e12f2a0779ac863c1862110dffb832
* Add styleable attributes to chips. This first one is a test.Mindy Pereira2011-12-161-10/+3
| | | | | | | | We will need this in order to be able to support both dark and light themes for chips fields. If nothing is specified, just falls back to the default background. Change-Id: Ibc0e5391969bfee1615b14bafe83f065d81c6331
* Merge "Cleanup offsets for tablet and crespo chips dropdown" into ics-mr1Mindy Pereira2011-11-011-1/+1
|\
| * Cleanup offsets for tablet and crespo chips dropdownMindy Pereira2011-11-011-1/+1
| | | | | | | | | | | | Fixes bug:5520790 polish chip suggestions dropdown Change-Id: I7da7e913aa243e95671b6df4c3488bf1bf0e09ef
* | Use system default list item backgrounds for the chips dropdown list.Mindy Pereira2011-10-262-22/+0
|/ | | | | | Fixes b/5517138 chips: background selection color for chips dropdown is orange, not blue Change-Id: Ie0fce4cafe73186659eb822882cc64675806d2a3
* Use flagNoFullScreen instead of flagNoExtractUiMindy Pereira2011-10-141-2/+2
| | | | | | | | This is the suggestion from the ime team to make apps using Chips to behave better with the changes they have made to the ime. Fixes bug:5410786 When in landscape w/ Smart Keyboard, can't scroll to top Change-Id: Ib88011778e580358cd22ccca3d2575ebe0a0aeb0
* Make the space part of the replacement image span.Mindy Pereira2011-09-231-0/+1
| | | | | | | | This eliminates the need for manually adding extra spaces at the end. This also fixes bug:5323325 Chips sometimes have no spacing between them on deleting since now the space is ALWAYS deleted when the chip is deleted. Change-Id: I8923940a070bcc1ce6894af3efa1449e98aa4830
* New assets for chips backgrounds.Mindy Pereira2011-09-071-2/+2
| | | | Change-Id: I4e768a0e6006d42c227053625713f676affea447
* Fix the height of the chips fields.Mindy Pereira2011-08-261-2/+0
| | | | | | | Requires changes in email and gmail, too. Fixes bug:5223556 heights of compose view text fields are too tall on phone/ tablet Change-Id: If93c858404a3774ddc3e13a1aefd9946ec311015
* Center text in chip; fix dropdown item spacingMindy Pereira2011-08-181-2/+3
| | | | | Part of bug:5162602 Alignment of elements in compose screen seems off (master/tot/prime) Change-Id: I6ed2063c164ff7dbe3aa7b030a500176b16eb301
* Add ability to copy a single recipient chip.Mindy Pereira2011-08-092-0/+4
| | | | | | Fixes b/5143564 implement single chip copy Change-Id: I598a53a60ba29b99637b2d1633b3884811938317
* Fix style of autocompletetextview we use for chips.Mindy Pereira2011-08-021-1/+1
| | | | | | Fixes Bug:5111405 Email auto-complete is using wrong theme? Change-Id: I6b35aeaa9daf42bd90b7c24ff389949985da8fa0
* Make more chip, dropdown match pixel perfects.Mindy Pereira2011-07-251-1/+1
| | | | | | | | | 1) the destination type should be uppercase; there is not textview style to do this 2) fix the heights of the dropdown items to be 48dip 3) text for more says "NUMBER more..." and is styled Change-Id: I8a391bbd3703c1ccd1415b78d5e843107b1d2095
* Turn off extract mode for chips fields.Mindy Pereira2011-07-251-1/+2
| | | | | | | Per updated spec. Also, shrinks the height of chips in landscape mode so that the user can see more content per row. landscape no extract only for phones Change-Id: I6dcdabb464f1555a2fe1803ff1597c530398a590
* Add styling to the library so apps can have a properly styled widget.Mindy Pereira2011-07-202-0/+29
| | | | Change-Id: I2a41c661f8395c9521f9c5af8660f7ba08d56717
* Update suggestions dropdown to match pixel perfect layouts.Mindy Pereira2011-07-132-0/+4
| | | | Change-Id: I0ced5414470d9a452da7296d217228802bb60ca1