summaryrefslogtreecommitdiffstats
path: root/src/com/android/contacts/common/list/ContactListItemView.java
Commit message (Collapse)AuthorAgeFilesLines
* Avoid drawable resources from being scaled.Danny Baumann2016-05-081-3/+37
| | | | | | | | CheckableFlipDrawable should only scale contact photos, not drawable resources. Change-Id: I63c161c4c5495621d4783ca2bdb92376bb4af43b Ticket: CD-553
* Fix height calculation of ContactListItemViewRichard MacGregor2016-04-291-1/+2
| | | | | | | | | | | | | | | | | | | | | Height calculation compared height without padding against preferred height that included padding. Existing comments stated that a height calculation was supposed to includepadding, but didn't. Add the padding back into the calculation. To test this: - Include an app that reports a contact's presence, and therefore shows the presence icon. - Make sure contact also has an email or similar. Open contacts app and search for the email address. - Three rows of information should show up for that contact, those being Name, Presence, and email. The issue fixed is that the top and bottom text is cutoff due to bad height calculation. Ticket CD-576 Change-Id: I9a639ec0d505e679e36bd1a5a4097aa808e7c320
* (2/2) T9 cleanupStephen Bird2016-03-251-71/+2
| | | | | | | | | | We can remove the changes we made to ContactListItemView since we are now using the adapter to auto-merge multiple mimetype items. This fixes ripples and let's us clean up quite a bit on the app side of things Ticket: CD-370 CD-339 CD-359 CD-385 CD-384 CD-380 CD-378 CD-372 Change-Id: I929957720cb836bfbe9bf5be187ce8d7df8a1b1c
* Add setDrawable to assign a drawable directlyStephen Bird2016-03-251-0/+10
| | | | Change-Id: Ib91d51a8c2218a8dcfabfef93d0533ee9d77a823
* [1/2] Use provider string instead of user nameRichard MacGregor2016-03-251-15/+1
| | | | | | | Use provider string instead of user name for search extra number field Ticket CD-333 Change-Id: I6ae2e716ad03a06478b1e3e773a24456a9b44aa0
* T9 searchStephen Bird2016-03-251-4/+89
| | | | | | Add views and methods for displaying incall usernames. Change-Id: I8a1add14734a84a455937b984224422f3b2d75d5
* Add a checkable QuickContactBadge.Danny Baumann2015-11-171-6/+17
| | | | | | | To be used from multi picker UI. FlipDrawable and CheckableFlipDrawable were kanged from UnifiedEmail. Change-Id: Ic910071da9314526c3d75ab354b62645399824ce
* ContactsCommon: Add optional text highlight colorcretin452015-11-171-2/+6
| | | | Change-Id: Ia2b7786ea32fc9cda029d90df7ba3f3ac4782fe4
* Rename PhoneNumberUtils APIsBrian Attwell2015-06-021-3/+2
| | | | | | | | | | In response to more API review. And removed unneeded permission from RequestPermissionsActivity. Bug: 21571895 Change-Id: Ia1fa69da07a3427997919ba61c77fcbad7e79f2a
* Change list shortcut item styling.Andrew Lee2015-03-231-8/+8
| | | | | | | | | - Remove background drawable on contact list item view shortcuts. + Swap add person icon from black to white, for tinting. + Tint icons blue instead of white. Bug: 19372539 Change-Id: Ib0353f6e9020bdbc923bacce71bca565a874fabb
* Multi-select to share. Part 1Brian Attwell2015-02-271-4/+63
| | | | | Bug: 19549465 Change-Id: If438bddfaaee1f69e4c888716f926abcd00ddbc6
* Use unhidden PhoneNumberUtils TtsSpan methodsBrian Attwell2015-02-051-3/+3
| | | | | Bug: 18777272 Change-Id: Ie6d19e39176d06da0c039e6e056bdbc438cc3ccd
* Set snippet/data/phonetic textview text alignment to startWalter Jang2014-11-121-0/+3
| | | | | | Bug 18268394 Change-Id: I9caa9ac5ae4a7df892e546413d7e9dce79ed3f31
* Set TtsSpans on names and snippets that could be phone numbersWalter Jang2014-10-291-0/+16
| | | | | | Bug: 17322140 Change-Id: I9afa9c59e1db6c5ad7123bdb37d288fa64faeddf
* Correctly setGravity for RTL modeYorke Lee2014-07-301-0/+2
| | | | | | | | | | Ensure that by the time setGravity is called for RTL-related aligning, that getLayoutDirection() returns the correct values. This value is not usually correct in the constructor, because the view does not have a parent to resolve it from yet. Bug: 16162786 Change-Id: Iea6cbcd05e39a5c45641dbb1230d4be85b45ff15
* Fix PinnedHeaderListView behavior with padding.Sai Cheemalapati2014-06-301-3/+8
| | | | | | | PinnedHeaderListView now behaves as expected if left/ right padding is specified. Change-Id: Idc5e3b6b90ab73cfe5f7e0d60ca16067e650c9a7
* am 84f6ef0c: Merge "Add support for full-bleed selection of contact list ↵Andrew Lee2014-06-111-4/+11
|\ | | | | | | | | | | | | items." into lmp-preview-dev * commit '84f6ef0cfd5ef768b14119952df7b8f2fa0a02ee': Add support for full-bleed selection of contact list items.
| * Add support for full-bleed selection of contact list items.Andrew Lee2014-06-091-4/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Adding the concept of "adjustSelectionBoundsEnabled", which allows us to control whether the headerWithoutBounds is used to override the selection list items bounds. We want to be able to do this in some cases (eg. in the contacts list when there is a header on the left) but in others (eg. a search list), we want the ripple to fill out the entire bounds of the list item. - Allow for this to be set by the ContactEntryListFragment, and then passed through the ContactEntryListAdapter to the ContactListItemView. - No longer apply scrollbar padding to the list view regardless of whether the scrollbar is present, because this messes with the ripple propagation. Bug: 15517457 Change-Id: I174a462ac1e45b987ac0ee70de318ed037d91762
* | am 8668f83e: Merge "Match contact list items to redlines for Dialer." into ↵Andrew Lee2014-05-301-7/+8
|\| | | | | | | | | | | | | lmp-preview-dev * commit '8668f83e7c37027870ffe2ea5c72d9977f9fc0e1': Match contact list items to redlines for Dialer.
| * Match contact list items to redlines for Dialer.Andrew Lee2014-05-301-7/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | - Add text offset top functionality in the pinned header and headers. In the pinned header this was done with padding, because the pinned header is a (assumeedly vertically centered) child and then the parent doesn't need to be privy to these details. - Update width and font size. I imagine we want these changes to be consistent between Dialer and Contacts, which is why this was done here instead of in Dialer. Bug: 15332945 Change-Id: If2ebf8117f528316b256a86ed9922f917e9c75ae
* | am f6141bd8: Merge "Updating contact list item for Dialer search redlines." ↵Andrew Lee2014-05-301-2/+7
|\| | | | | | | | | | | | | into lmp-preview-dev * commit 'f6141bd806446928038f97bedcbdc3b69b5f1e15': Updating contact list item for Dialer search redlines.
| * Updating contact list item for Dialer search redlines.Andrew Lee2014-05-291-2/+7
| | | | | | | | | | | | | | | | | | | | - Add text offset field so that the text can be properly aligned after taking into account inherent padding. - Set elegant text height to false on name/data TextViews. - Increase small text size. Bug: 15328499 Change-Id: Ib86ab2a3f1bde676f0950453653a90d51b26fb0b
| * DO NOT MERGE Changed margins of Dialer and Contact list items to match ↵Sai Cheemalapati2014-05-281-1/+7
| | | | | | | | | | | | | | | | | | | | | | redline spec. Changed text color of items to match spec (#4d4d4d). Fixed text size issue in People app. Bug: 15165159 Change-Id: Ib07111d6d829363f5258fbe6475dd8d1918b8ec7 (cherry picked from commit 3bc19a3bb1ed23b03352fff6de69a89e763a315e)
* | Changed margins of Dialer and Contact list items to match redline spec.Sai Cheemalapati2014-05-281-1/+7
| | | | | | | | | | | | | | | | Changed text color of items to match spec (#4d4d4d). Fixed text size issue in People app. Bug: 15165159 Change-Id: Ib07111d6d829363f5258fbe6475dd8d1918b8ec7
* | am 58a793ee: Provide Color.BLACK as default name text color.Andrew Lee2014-05-281-3/+3
|\| | | | | | | | | * commit '58a793ee1253f8f46dd7f754a51f61a6bbcdce60': Provide Color.BLACK as default name text color.
| * Provide Color.BLACK as default name text color.Andrew Lee2014-05-271-3/+3
| | | | | | | | | | Bug: 15248629 Change-Id: I722fef6cd23b10bdbebbe8d3d04c3923376301cf
| * [DO NOT MERGE] Add attibute for color on contacts list search itemsNancy Chen2014-05-231-0/+5
| | | | | | | | | | | | | | | | | | Adding the ability to change the color on the contacts list search items. The actual colors are defined in Dialer. Bug: 15118603 Change-Id: I8e332e9c448cbcc4e4f64349d9ff5474bb06eb2f (cherry picked from commit f88b7b9d1a07414053a4a90d13d453a02bd58ac7)
* | Fixes comment typo in ContactListItemViewPaul Soulos2014-05-271-1/+1
| | | | | | | | Change-Id: I961c4fa58c060d05a30acf11e88116dd6daf23c4
* | Add attibute for color on contacts list search itemsNancy Chen2014-05-231-0/+5
|/ | | | | | | | Adding the ability to change the color on the contacts list search items. The actual colors are defined in Dialer. Bug: 15118603 Change-Id: I8e332e9c448cbcc4e4f64349d9ff5474bb06eb2f
* Merge "Add circular photo support to ContactPhotoManager"Yorke Lee2014-05-011-0/+1
|\
| * Add circular photo support to ContactPhotoManagerYorke Lee2014-05-011-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * Use RoundedBitmapDrawable to draw circular bitmaps * Add isCircular to DefaultImageRequest, and add circular support to LetterTileDrawable * Temporarily disable fading in contact photos using TransitionImageDrawable Bug: 13747208 Change-Id: I4d087b2dab701014297912ccb6cfac36ecffc673
| * Merge "Moves section header in contacts list to the left side."Andrew Lee2014-04-281-66/+33
| |\
* | | Polishing text style and measuring for section headers.Andrew Lee2014-05-011-22/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Added section header text color. - Updated section headert style. - Fixed selection bounds measurement in ContactListItemView. - Deleted unused methods and imports in ContactListItemView. Bug: 13956531 Change-Id: I1dea8691bb77fae90847474414ff6143c8fea5f5
* | | Merge "Moves section header in contacts list to the left side."Andrew Lee2014-04-281-66/+33
|\ \ \ | |/ / |/| / | |/ Change-Id: I59a2050e67cc0290df5fb28f7e5b8dcb844d2cf8
| * Moves section header in contacts list to the left side.Andrew Lee2014-04-281-66/+33
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Changed ContactListItemView to render section headers on the left. This includes support for RTL layouts. - Added setSectionHeaderEnabled to ContactListItemView so that left padding can be rendered if there is a section header. - Add newView() implementation in the ContactEntryListAdapter which sets setSectionHeaderEnabled on new contacts list view instance. - Changed the PinnedHeaderView to extend a TextView and gutted a lot of unneeded logic and styling (including the Counts view). - Add list_item_background_color to attributes, which is used to specify the background color for the pinned header, so that when it moves the underlying section header is not visible. - Change layout and canvas logic in PinnedHeaderListview, so that the pinned header is placed to match the new position. - Add logic to the IndexerListAdapter to match the pinned header's height to the height of the first list item in view. Bug: 13956531 Change-Id: I78a0b505833e9ce1c889904ff51c17f6c1653de1
* | Change default photo position from right to left.Andrew Lee2014-04-251-2/+2
|/ | | | | Bug: 13956531 Change-Id: I7ce2991394f7465eced2889c89b9b54887aaae2b
* Delete functionality to set count in the pinned header views.Andrew Lee2014-04-241-54/+0
| | | | | Bug: 13956531 Change-Id: Iad1ab60ae486bfa059ad14a856eb6f3aa6637bdc
* Delete contacts list item dividers.Andrew Lee2014-04-221-41/+1
| | | | | | | | - Delete setDivider method, and associated layout logic. - Delete unneeded list_item_divider attribute. Bug: 13956531 Change-Id: I56d471ae637346cb6a1b9a56c6c43de2da603256
* Temporarily disable phone number formatting in searchYorke Lee2014-04-081-6/+3
| | | | | | | | | | | Formatting the phone numbers after highlighting sequences had been assigned was causing possible IndexOutOfBoundsExceptions when applying the highlights. Temporarily disable formatting until highlighting logic is better refactored between the various PhoneNumberListAdapters and ContactListItemView. Bug: 13906816 Change-Id: I9082a68ee7c2aaa376da203a98a534098bb43e14
* Don't replace phone number text if formatted number is null.Andrew Lee2014-04-011-1/+4
| | | | Bug: 11734577 Change-Id: I21e11b9aed0dde06f96fcbdcc605cef0f2c4120f
* Format phone number before setting it on ContactListItemView.Andrew Lee2014-04-011-7/+8
| | | | | | | | | | Get the country ISO from the context in the PhoneNumberListAdapter. Then, in ContactListItemView, use PhoneNumberUtils to format the given phone number before setting it. Also, deprecates/deletes showPhoneNumber() method. Bug: 11734577 Change-Id: I890f1b090acb1814814396da654f75b23d9ef8de
* Fix ContactsCommon testsYorke Lee2014-03-181-0/+2
| | | | | | | | | | Remove stale testSetMask_LengthMismatch test Update SpannedTestUtils to check for StyleSpan instead of ForegroundColorSpan Add READ_CONTACTS permission Bug: 13516535 Change-Id: Ibe10ca6cde42277697dc185e4cab35238d190023
* Remove references to private view propertiesYorke Lee2014-03-071-2/+2
| | | | | | | | Switch usages of mTop, mBottom, mRight and mLeft which are hidden View properties to their non-hidden getter functions instead. Bug: 6948882 Change-Id: I528ab18bc91eaacc784c1e79a9a417421e14e0cd
* Copy private pointInView method to ContactListItemViewYorke Lee2013-12-031-1/+6
| | | | | Bug: 6948882 Change-Id: Ieef3d4c8933eacea59fe5a5398edc5ba0141fd2c
* Replace usages of mContext with getContextYorke Lee2013-12-021-3/+3
| | | | | Bug: 6948882 Change-Id: I730f690f36e9541dd6945abe6df9890c96d72676
* Remove private references to android.R.styleableYorke Lee2013-11-251-2/+2
| | | | | | | | Define these framework attributes in our own attr.xml and use as necessary Bug: 6948882 Change-Id: I6862451133844251315dafeffd1921720eeb4964
* Fix auto-merge conflict.Chiao Cheng2013-11-131-4/+4
|\ | | | | | | | | | | | | | | | | Merge commit 'd6714041' into manualmerge Conflicts: src/com/android/contacts/common/list/ContactListItemView.java Change-Id: Icade3af50d0c509b17341d6bcb15d5ed0419109f
| * Merge "Make fonts consistent in contact list." into klp-devChiao Cheng2013-11-141-4/+4
| |\
| | * Make fonts consistent in contact list.Chiao Cheng2013-11-131-4/+4
| | | | | | | | | | | | | | | Bug: 11674807 Change-Id: I86e08025085e140ecee7cfa796aff006ea3e270b
* | | am 02de5655: am dfd7e86b: am 538e05b3: Fix a bug with pressed state in ↵Yorke Lee2013-11-131-1/+4
|\| | | | | | | | | | | | | | | | | | | | ContactListItemView * commit '02de5655eef21607f2d20a1e643e230ce05669d6': Fix a bug with pressed state in ContactListItemView