summaryrefslogtreecommitdiffstats
path: root/res/layout
Commit message (Collapse)AuthorAgeFilesLines
* Merge "Use swipe helper for swiping" into klp-devYorke Lee2013-08-163-9/+13
|\
| * Use swipe helper for swipingYorke Lee2013-08-163-9/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Use SwipeHelper for swiping, in SwipeableListView for regular favorites. SwipeHelper and SwipeableListView are copied from DeskClock, with minor modifications (to prevent swiping or call log items, and all contact buttons). * Make ContactTileRow implement SwipeHelperCallback so that tiled favorites can be swiped. * Remove PhoneFavoriteGestureListener * Add selectable item backgrounds to undo buttons on removal dialog * Moved common code shared by PhoneFavoriteRegularRowView and PhoneFavoriteSquareTileView to PhoneFavoriteTileView * Standardize layout ids for phone_favorite_regular_row_view and phone_favorite_tile_view * Add long click listener to PhoneFavoriteTileView to trigger the start of a drag and drop operation * Remove any contact entries that are in the removal dialog phase if the app is paused Bug: 10257340 Bug: 10341201 Bug: 10328093 Bug: 10290239 Bug: 10262721 Bug: 10257340 Change-Id: I20448048b658759f6de75d643d2150be5a6ba8af
* | Add contentDescription for dialpad buttonYorke Lee2013-08-161-1/+1
|/ | | | | Bug: 10314527 Change-Id: I67dc33f233ca6634dcab33f17ead8145363dcce7
* Merge "Hide dial button in-call so that in-call chooser dialog shows up" ↵Yorke Lee2013-08-101-2/+3
|\ | | | | | | into klp-dev
| * Hide dial button in-call so that in-call chooser dialog shows upYorke Lee2013-08-091-2/+3
| | | | | | | | | | Bug: 10248510 Change-Id: Ib70b6b5eee8f1f16e2a9ea306292e324bfe3474d
* | Merge "Extract ShowAllContactsFragment and add it to its own activity" into ↵Yorke Lee2013-08-102-3/+28
|\ \ | | | | | | | | | klp-dev
| * | Extract ShowAllContactsFragment and add it to its own activityYorke Lee2013-08-092-3/+28
| |/ | | | | | | | | Bug: 10244050 Change-Id: I9c815aecc3fe9f0db239129749fb5be3c73f51be
* / Fix dialpad actionbar item heightsYorke Lee2013-08-091-2/+2
|/ | | | | Bug: 10259963 Change-Id: I5c95583a1dbff09d38456fc838183652a460fbff
* Remove unused resources from DialerYorke Lee2013-08-082-76/+0
| | | | Change-Id: Iea5e470d63462a2252bece4e712ec8d2daeeb621
* Removing and renaming classes from DialerYorke Lee2013-08-089-576/+220
| | | | | | | * No code was changed, just either removed or renamed * Reshuffled a couple of ids around in dialpad_fragment to fix some compile time errors that somehow weren't caught before Change-Id: I9e2381edfb14b0940015deb8cbd94786a1242f43
* Code cleanup for call log related itemsYorke Lee2013-08-055-250/+2
| | | | Change-Id: I2aa0458e1fb74abaea60a02f430a4e413dfed365
* Initial cleanup of unused old dialer codeYorke Lee2013-08-021-1/+1
| | | | | | | Removed unused classes and renamed NewDialpadFragment to DialpadFragment. Removed some unused static imports Change-Id: If16a8bfe8cc113a570514b6d0edd87cb946758fa
* Adds undo favorite removal dialogue redlines.Christine Chen2013-07-312-43/+65
| | | | Change-Id: I2edcccdd4acdd3ff281132efc66e21def228002f
* Merge "Redlines for CallDetailActivity (call history items and voicemails)"Yorke Lee2013-07-313-14/+19
|\
| * Redlines for CallDetailActivity (call history items and voicemails)Yorke Lee2013-07-303-14/+19
| | | | | | | | | | | | | | | | | | | | * Swapped out new assets * Changed background colors as necessary * Add padding view at bottom of seek container * Changed color of drawables * Removed unused assets Change-Id: I654ba417e03b2a32039504ae2de51fd75c5bec20
* | Adds Drag and Drop UI to the Dialer main view.Christine Chen2013-07-312-10/+98
| | | | | | | | | | | | | | | | | | | | - Adds drag and drop listner. - Changes the FavoritesTileAdapter to use an array stored in cache to populate the view. - Adds animation for drag and drop. - Adds swipe to delete an entry. Change-Id: I0717fb3d256b2ab2353f86a998de07edb24e9b4c
* | Adds all contacts fragment.Christine Chen2013-07-312-0/+95
| | | | | | | | Change-Id: Iea03cbb82c9ca9fdff51686a722bea5d301add44
* | Merge "Dialpad modifications to match the rest of the redlines"Yorke Lee2013-07-314-23/+70
|\ \
| * | Dialpad modifications to match the rest of the redlinesYorke Lee2013-07-314-23/+70
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Reduced size of star and pound keys * Made star and pound key gray * Add voicemail image view * Add light versions of menu assets * Renamed other menu assets to be more consistent * Assign proper menu items to dialpad fragment Change-Id: I67f2e7eecb177fc8ab7b4bc9b2855b385c622a7f
* | | Add voice search button in DialerYorke Lee2013-07-301-0/+10
| | | | | | | | | | | | Change-Id: Ic8dcf4a1f886d3292af438e5995474539e88b179
* | | Merge "Change overlay and styles for contact tiles"Yorke Lee2013-07-301-19/+25
|\ \ \ | |/ / |/| |
| * | Change overlay and styles for contact tilesYorke Lee2013-07-301-19/+25
| |/ | | | | | | | | | | | | | | * Add shadow overlay * Change font and color of contact tile name * Change various padding values Change-Id: I298a2cc58ed3cf1ab310bb5c5cfc243e3eee117e
* | Merge "Implement dialpad in XML"Yorke Lee2013-07-303-50/+58
|\ \ | |/ |/|
| * Implement dialpad in XMLYorke Lee2013-07-303-49/+57
| | | | | | | | Change-Id: I603eb29203b2ae65fe35f423c574a33bb86662a2
* | Redlines for phone number list fragmentsYorke Lee2013-07-291-1/+2
| | | | | | | | | | | | | | | | | | | | | | * Add and remove padding for regular search and smart dialing search fragments. * Move background colors to individual fragment views instead of the app, so that they can define their own background colors without causing overdraw. * Remove unused imports in SearchFragment Change-Id: Id1523c5760ea3cf5e675df8f89e5bd299a95eb18
* | Add actionbar items on dialpad fragment to match redlinesYorke Lee2013-07-262-8/+22
|/ | | | Change-Id: Iea40db1bd4162a3e5f5a80e7af8b2902afd438b1
* Redlines for call history screen, as well as most recent call logYorke Lee2013-07-231-12/+2
| | | | | | | | | | * Add and change background and layout for CallLogListItem * Create wrapper view for most recent call log item * Change actionbar background in Call History activity * Hide phone number in call log items * Add tab indicator drawables Change-Id: Ic86c3fac857971aba58ba3ac1d79ddebaf663da6
* Style and layout changes to match redlinesYorke Lee2013-07-224-64/+37
| | | | | | | | | | | | | | | | * Swapped out some icons with newly added assets. * Changed search view into edit text with accompanying close button so that it can be more easily styled. * Changed various background colors. * Tweaked padding values to match redlines * Removed margins from PhoneFavoriteRegularRowView and PhoneFavoriteTileView and instead use a standardized set of margins for all rows in PhoneFavoritesTileAdapter * Added bottom_border_background drawable to create a bordered background. * Remove PhoneFavoritesTileAdapter.ViewTypes.STARRED/STARRED_PHONE since they are no longer relevant Change-Id: I65dfd5adf6cfbcb2c9d283aef2bd10e5d2a82dc7
* Initial commit of all new dialer activities, layouts and stylesYorke Lee2013-07-169-129/+351
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | As far as possible, this change does not modify any behavior/look of the existing dialer. All modifications to classes/layouts/style attributes that would affect functionality of the old dialer are instead done in separate new files. Added new versions of all activities, fragments, layouts, menus and resources that have been rewritten or modified. The activities do not have intent filters yet in order to not interfere with the existing dialer. Added some new values in colors/styles/dimens for the newly added layouts. Added NewCallLogActivity to separate the CallLogFragment from DialtactsActivity. All call log and voicemail entries are now presented in a separate (New)CallLogActivity. IntentProvider.getCallDetailIntent now takes a cursor instead of an adapter for more flexibility. Add OnListFragmentScrolledListener interface for DialtactsActivity to receive callback when one of its children fragment is scrolled. Added slide in and slide out animations for DialpadFragment. Add slide up and hide animations for search view All menu options now show up in a PopupMenu in NewPhoneFavoriteFragment. Added call log adapter into NewPhoneFavoriteMergedAdapter. Rewrote layout of DialpadFragment to show up as a fragment partially overlaying the screen. Removed some unused code in DialpadFragment (smart dialing, menu handling) Add fragments and adapters for SmartDial. - Update Dialer database to support highlight masking and record contact data Uri, as well as photo uri - Add a fragment and adapter for smart dialing - Add SmartDialCursorLoader to load SmartDial results. - Typing in the dialpad now returns smart dialing results instead of regular search results QuickContactTiles for all sub-adapters of PhoneFavoriteMergedAdapter now use light theme instead of the the default dark theme. Removed all redundant call log filter and contacts to display filter code Moved Dialer specific UI list-related classes to the Dialer package Change-Id: I34885813e4fa79b69e29ac870a87a56d6f08a5e7
* Adding new copies of classes for new Dialer UIYorke Lee2013-07-166-0/+561
| | | | | | | No code has been modified at all in this CL. All classes were copied from existing classes and renamed to add the New prefix. Change-Id: Idbb522c9dd1ef5db8e3dffcb73155ca603f861b2
* Animation for smart dialing suggestionsYorke Lee2013-05-142-13/+29
| | | | | | | | | | | | | | | | | | | | | | Suggestions now appear with a fade in and slide up animation. Suggestions vanish with a fade out and slide down animation. If a suggestion is moved into the middle, it slides to the left/right as appropriate. Change the layout containing suggestions to a LinearLayout, in order to better support animations. Renamed SmartDialAdapter to SmartDialController, and also refactored it to handle entries for a LinearLayout instead of a GridView, as well as adding animation support and view management. Use null object pattern in SmartDialEntry to better handle null entries. Start displaying suggestions on the first digit entered. Bug 8840240 Change-Id: If4e16006c0b36d2244434e0b2d8f3d3b997b0ad2
* Fix for bug #8146846 Phone App should be mirrored for RTL languagesFabrice Di Meglio2013-04-0515-73/+75
| | | | | | | | - replace left/right properties with start/end ones (Dialer will never be unbundled) - add mirrored version of some drawables - update AndroidManifest Change-Id: Ia7f5b6ad13dd75fe42f1ee763dda5ab18e2d92c7
* Smart Dialling v2 with phone number supportYorke Lee2013-02-122-13/+25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Behavior: Use a prefix tree to cache contacts instead of an array list Perform matches against phone numbers as well DialpadFragment now ignores results from stale tasks where queries no longer match Add ability to not use default phone number for phone number disambiguation dialog Contacts are now ranked by the order which they were sorted by in the ContactsProvider (affinity) Change remapAccentedChars to always return lowercase characters to avoid overhead of uppercase character conversion Resource/Layout changes: Tweak margins so that the section containing smart dial suggestions looks cleaner Use color resource instead of hardcoding color values Add phone number to SmartDial items ContentObserver: Add a contentobserver to be notified on changes in contacts Refactored cache to allow for forced cache refreshes Use a single instance of SmartDialCache Tests: Added SmartDialTrie tests Comments: Comment cleanup Change-Id: Ica2854e2845d4d75048aa1fd982f139496d21bf3
* Add a "No contacts" description to PhoneFavoriteFragmentYorke Lee2013-01-071-0/+11
| | | | | | | | | | | | | | | Add an additional "No contacts" view to the sub-header view returned by PhoneFavoriteMergedAdapter. This is required because the empty view functionality provided by a simple list view does not work because PhoneFavoriteMergedAdapter is a combination of two adapters. This "No contacts" view provides the illusion of an empty view for the 2nd adapter that displays all contacts without phone numbers, even if the first adapter does contain contacts. Bug: 5522729 Change-Id: I7dcc4cd7b4b2b28fefea4be384de40318654e165
* Moving ProportionalLayout to ContactsCommon.Chiao Cheng2012-12-062-2/+2
| | | | | Bug: 6993891 Change-Id: I30ef5d9fe8d293d6029c58b578f5b2440c14edef
* Major resource move and clean-up.Chiao Cheng2012-12-054-0/+152
| | | | | | | | Moving resources from Contacts to ContactsCommon and Dialer as necessary to remove dialer dependencies on contacts app. Bug: 6993891 Change-Id: Ieb3a31c1f4f8294b17c1829bb56313ab1f3cafe7
* Add content description to More Options buttonYorke Lee2012-11-131-0/+2
| | | | | | | Cherrypicked for master Bug: 434822 Change-Id: I5bf21c7b1a6cd8d53489105fb3ef0d6b7936cf72
* Add smart dialling capabilities to dialerYorke Lee2012-11-072-4/+42
| | | | | | | | | | | | | | | | | | Layout changes to dialpad fragment to make space for smart dial suggestions. This feature does not appear in landscape mode. SmartDialTextView automatically resizes text to fit within the bounds of the view. SmartDialAdapter highlights certain portions of the matching name based on match positions provided by SmartDialNameMatcher. SmartDialLoaderTask is an AsyncTask that caches all contacts with a phone number into memory, or matches all contact names against a provided query to return a list of matches (maximum of 3). SmartDialNameMatcher contains utility functions to remove accents from accented characters and normalize a phone number. It also contains the matching logic that determines if a contact's display name matches a numeric query. Added some tests for SmartDialNameMatcher Bug: 6977981 Change-Id: I43e1a70d8d0d46e02fc67fe1caaec9a1769124f5
* Moving PhoneNumberInteraction from Contacts.Chiao Cheng2012-10-312-0/+72
| | | | | Bug: 6993891 Change-Id: Id4701c00455de609850a5afea74e68c6bd84cbb3
* Two cherry picks.Chiao Cheng2012-10-171-3/+6
| | | | | | | Combined cherry pick from old call log change and recent layout change. Bug: 7366229 Change-Id: I7ca3b7213f1339023f5de5be630708df9a134963
* Moving resources from Contacts to Dialer.Chiao Cheng2012-09-051-0/+133
| | | | | | | - Also moving some shared utilities. Bug: 6993891 Change-Id: I5fa18d26e4f5423f4d3f3450b8f3e3dacbfb947a
* Initial move of dialer features from contacts app.Chiao Cheng2012-08-2111-0/+954
Bug: 6993891 Change-Id: I758ce359ca7e87a1d184303822979318be171921