| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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>
|
| |
|
|
|
|
| |
Additionally add a dynamic way to set maxChipsParsed
Change-Id: I8e88d4268b8e2ecc6de26d8cf69a985821c8e9f0
|
| |
|
|
|
|
|
|
|
| |
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
|
| |
|
|
|
|
| |
b/19102218
Change-Id: I94f6cc642a12793dc7ee38afad6589d52f262d1a
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
- 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 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
|
| |
|
|
|
|
|
|
| |
To ensure that the numbers are properly translated.
b/18011726
Change-Id: Id01bd690ac87875b17cfa4222e00b764aef9fba1
|
| |
|
|
|
|
|
|
| |
Announce when chip's dropdown opens.
b/17262070
Change-Id: Ic99ee22f4a4f41e0f0d468496992822f8b60dbdd
|
| |
|
|
|
|
|
|
|
|
| |
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
|
| |
|
|
|
|
|
|
|
|
|
|
| |
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
|
| |
|
|
|
|
|
|
|
|
|
|
| |
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
|
| |
|
|
|
|
| |
b/16851158
Change-Id: Icb4c511671c512e6095c8fa9607dc4d898ba2b08
|
| |
|
|
|
|
| |
b/16872653
Change-Id: Ic1e587bea6426a163dbdccb7ae42d4f8dfa205f4
|
| |
|
|
|
|
|
|
|
| |
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
|
| |\ |
|
| | |
| |
| |
| | |
Change-Id: Ied4449f02ef5683764fcfeb9b95b6d0c665c1132
|
| | |
| |
| |
| |
| |
| | |
b/16818548
Change-Id: Idb3a112af7a16f05bfcf9e2f9ae14f3ef32aecef
|
| | |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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
|
| |/
|
|
|
|
|
|
|
|
| |
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
|
| |
|
|
|
|
|
|
|
|
| |
Updated UI for alternates/single chips dropdown.
Not included: X button next to selected chip for removal.
b/15934812
Change-Id: Id34e28f1783f85ffbe33f82b1d230c3def27589a
|
| |
|
|
|
|
|
|
|
| |
Restyle recipient chips to quantum redlines, also
remove padding style from non-autocomplete dropdowns.
b/15934812
Change-Id: I28eef0f4b9d622f81782d12f279e78af10c14458
|
| |
|
|
|
|
|
|
|
| |
Separate layout for chips that have icons on the lefthand
side and icons on the righthand side.
b/15934812
Change-Id: I7b58197e46ad48bb838ee5e0c34bb06b0b74dfba
|
| |
|
|
| |
Change-Id: I4b5684896e4e70b6f44f3feb2bf0f997265be848
|
| |
|
|
| |
Change-Id: I0d39a630492b08cd647bb39c2aab1bc4a86b8aee
|
| |
|
|
|
|
| |
Fixes b/12569794.
Change-Id: I5c2bb4195f8073bb7778b98dcf332d3efbffb934
|
| |
|
|
|
|
| |
TESTED=phone
Change-Id: I582224467b4626afd1414889166f4fbbc773897f
|
| |
|
|
|
|
| |
Fixes b/12569794.
Change-Id: I927a5d3e0d4af42a3ca3fbbb87ba201fe7bb830e
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
| |
|
|
|
|
| |
Part of b/6801151 Improvements to chips for gmail
Change-Id: Iaa447404be250eccc33e91e9abdfeafec73354af
|
| |
|
|
|
|
|
| |
Fixes b/6546713 Blank suggestion is sometimes shown even if nothing was typed
per ux
Change-Id: I5c6d1f6620426bd96abca1bad650663ab6c5c426
|
| |
|
|
|
|
| |
Fixes b/6546711 Chips suggestion is below selected chip
Change-Id: I14821855b510b30e8eb4798eb4cc4a9c69f4dca9
|
| |
|
|
|
|
| |
Fixes b/6468243 While adding chips to the To field display label "Return" instead of "Done"
Change-Id: I42f9a845c553f0aa01971c5b3221ce5d0504c810
|
| |
|
|
|
|
|
|
|
|
| |
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
|
| |
|
|
| |
Change-Id: I8d4f944e91e12f2a0779ac863c1862110dffb832
|
| |
|
|
|
|
|
|
| |
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
|
| |\ |
|
| | |
| |
| |
| |
| |
| | |
Fixes bug:5520790 polish chip suggestions dropdown
Change-Id: I7da7e913aa243e95671b6df4c3488bf1bf0e09ef
|
| |/
|
|
|
|
| |
Fixes b/5517138 chips: background selection color for chips dropdown is orange, not blue
Change-Id: Ie0fce4cafe73186659eb822882cc64675806d2a3
|
| |
|
|
|
|
|
|
| |
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
|
| |
|
|
|
|
|
|
| |
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
|
| |
|
|
| |
Change-Id: I4e768a0e6006d42c227053625713f676affea447
|
| |
|
|
|
|
|
| |
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
|
| |
|
|
|
| |
Part of bug:5162602 Alignment of elements in compose screen seems off (master/tot/prime)
Change-Id: I6ed2063c164ff7dbe3aa7b030a500176b16eb301
|
| |
|
|
|
|
| |
Fixes b/5143564 implement single chip copy
Change-Id: I598a53a60ba29b99637b2d1633b3884811938317
|
| |
|
|
|
|
| |
Fixes Bug:5111405 Email auto-complete is using wrong theme?
Change-Id: I6b35aeaa9daf42bd90b7c24ff389949985da8fa0
|
| |
|
|
|
|
|
|
|
| |
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
|
| |
|
|
|
|
|
| |
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
|
| |
|
|
| |
Change-Id: I2a41c661f8395c9521f9c5af8660f7ba08d56717
|
| |
|
|
| |
Change-Id: I0ced5414470d9a452da7296d217228802bb60ca1
|