32a9c528431f97c484f50e3b6c2e400ee44005a4 |
|
27-Apr-2018 |
Mady Mellor <madym@google.com> |
API review: setColor / setTint -> setAccentColor Test: ./gradlew slice-view:connectedCheck Fixes: 78639288 Change-Id: Ie81b0071f8fe45611e310f0578dc3b1aa9eedd88
/frameworks/support/samples/SupportSliceDemos/src/main/java/com/example/androidx/slice/demos/SampleSliceProvider.java
|
65d77ea1ec28f1a623a1a7f8e624cf08c27d5fae |
|
20-Apr-2018 |
Mady Mellor <madym@google.com> |
Grid paddings; internal text paddings NOTE: This CL only incorporates grid padding into height calculation, follow up CL will include text size + internal vertical text padding in that calculation. * Adds attributes for customized vertical text paddings * Adds attributes for grid row top / bottom paddings * Updates view code to use these attrs * ListContent now knows about style information; this will allow it to properly calculate height information * Adds ‘gallery2’ slice that is row of large images * Default to test themes true; add grid padding adjustments to theme Test: ./gradlew slice-view:connectedCheck Bug: 74393112 Fixes: 78299037 Change-Id: I489a026807fc80e0ec3c36d9097e185cd8be0ab5
/frameworks/support/samples/SupportSliceDemos/src/main/java/com/example/androidx/slice/demos/SampleSliceProvider.java
|
977517c547084945539210fd3bf075bb81077105 |
|
22-Mar-2018 |
Mady Mellor <madym@google.com> |
Fix crash when row has only has image at start or end * Title items weren’t being filtered correctly * Images incorrectly treated like wrapped actions when they’re not * Fixing the crash revealed other issues around start items / toggles and this CL fixes up some things around that + touch targets Test: ./gradlew slice-view:connectedCheck manual: tap on row slices with actions - toggle, toggle2, wifi, ride, contact Fixes: 75993180 Change-Id: Ice0988737e55369f75f27f83af4e53f478a4730e
/frameworks/support/samples/SupportSliceDemos/src/main/java/com/example/androidx/slice/demos/SampleSliceProvider.java
|
0929cbe8a1ad88cb18e0cd3b50abba21840bc592 |
|
18-Apr-2018 |
Mady Mellor <madym@google.com> |
Fix some issues with recycling row views Header wasn’t updating because the slice item is the same, need to account for summaries existing. Doesn’t fix all problems here, note details on bug. Test: ./gradlew slice-view:connectedCheck Bug: 78197099 Change-Id: I65ad6a83d9d1a1a147c1a77752973767dc5ba54c
/frameworks/support/samples/SupportSliceDemos/src/main/java/com/example/androidx/slice/demos/SampleSliceProvider.java
|
3bc2c820c8cbab1cf67dbd836697f780265f0e7a |
|
06-Apr-2018 |
Mady Mellor <madym@google.com> |
Add min to InputRangeBuilder + support in RowView * Adds subtype that only exists in support lib for noting MIN values, removed some hints that can rely on FWK * Adds notion of setMin to InputRangeBuilder, does not set this for RangeBuilder (progressbar) because that seems weird and unnecessary?? * Adds API for metadata to retrieve minimum * Adds test for metadata API * Updates view side to handle this * Updates sample in Demos + Renders Test: ./gradlew slices-view:connectedCheck Bug: 77646495 Change-Id: I84da07906d7dcf405ba939f78d4ca362b15a3008
/frameworks/support/samples/SupportSliceDemos/src/main/java/com/example/androidx/slice/demos/SampleSliceProvider.java
|
06e3d75b7a26686ec301466dfa260cfc27b2884c |
|
03-Apr-2018 |
Mady Mellor <madym@google.com> |
Fix action icon tap region * Creates SliceActionView that handles rendering all types of SliceActions * Updates action icon and toggles to use it Test: ./gradlew slices-view:connectedCheck; manual in SliceBrowser Bug: 74211621 Merged-In: I066d94fa847b035629464c85d61a453c9c1359fe Change-Id: I066d94fa847b035629464c85d61a453c9c1359fe
/frameworks/support/samples/SupportSliceDemos/src/main/java/com/example/androidx/slice/demos/SampleSliceProvider.java
|
6975e4e9eba6772c9d7d38374109a90dd4f390cd |
|
31-Mar-2018 |
Mady Mellor <madym@google.com> |
Properly handle click events + touch feedback * Always use LargeTemplateView to display in small / large modes; this simplifies some things * Adds foreground view for touch feedback to LargeTemplateView and GridRowView * Rows that don’t have actions activate the primary action on the slice (if it exists), this will apply touch feedback on the whole slice view * If the slice doesn’t have a primary action and a click listener has been set, that will be called and touch feedback will be applied. Test: manual Bug: 76011325 Bug: 74211621 Change-Id: Ic5cab455d45e5a56cd5a70ed7f21f08430a7ecd7
/frameworks/support/samples/SupportSliceDemos/src/main/java/com/example/androidx/slice/demos/SampleSliceProvider.java
|
8244917825e982fb41258adf063e26184c72e99c |
|
27-Mar-2018 |
Jason Monk <jmonk@google.com> |
Lower minSdk of slices demos Test: build Bug: 76438708 Change-Id: I939701ddfe102697ca511a8cbb13b08ad6437f8a
/frameworks/support/samples/SupportSliceDemos/src/main/java/com/example/androidx/slice/demos/SampleSliceProvider.java
|
aada2afd5f5fe864e6c3d8fd1a25463a53ac7092 |
|
28-Mar-2018 |
Mady Mellor <madym@google.com> |
Merge "Add actual documentation for builders + SliceView attributes" into pi-preview1-androidx-dev
|
f49ab625fc7f05baebfbef00beebf9a9f78dcabc |
|
28-Mar-2018 |
TreeHugger Robot <treehugger-gerrit@google.com> |
Merge "Add subtitle and primary action to range builders" into pi-preview1-androidx-dev
|
eefde12330498ed74472389b5c4dbda4239e61c8 |
|
28-Mar-2018 |
Mady Mellor <madym@google.com> |
Rename addSeeMore* to setSeeMore* because that’s what it does Bug: 77159611 Test: ./gradlew slices-view:connectedCheck Change-Id: Ia1aaab77c608179fc777149123f84c478c3a8c9e
/frameworks/support/samples/SupportSliceDemos/src/main/java/com/example/androidx/slice/demos/SampleSliceProvider.java
|
ec2359f11170a2742cd1650900de320aa22eab58 |
|
26-Mar-2018 |
Mady Mellor <madym@google.com> |
Add subtitle and primary action to range builders * Add methods to builders * Add a new height for rows showing 2 lines of text and range item * Update RowView to handle and tint progress / slider appropriately * Adds them to render tests Bug: 77156051 Test: ./gradlew slices-view:connectedCheck Change-Id: I032e911365b01c866f47acb1e6968b8f680e30eb
/frameworks/support/samples/SupportSliceDemos/src/main/java/com/example/androidx/slice/demos/SampleSliceProvider.java
|
d156eab29cd6c14308a32d7c116e16e904509a7a |
|
21-Mar-2018 |
Mady Mellor <madym@google.com> |
Add actual documentation for builders + SliceView attributes Changed one API: * HeaderBuilder#setSummarySubtitle was a gross name now its just setSummary Documentation for: * SliceView attrs * All of the builders, notably HeaderBuilder and GridRowBuilder which had some confusion in Preview1 and ListBuilder#addSeeMore Test: ./gradlew slices-view:connectedCheck Bug: 75510235 (headers) Bug: 75546200 (see more) Bug: 74620719 (attrs) Change-Id: Ia77ef55071ef77ec1878fe4a67dedcac8da52101
/frameworks/support/samples/SupportSliceDemos/src/main/java/com/example/androidx/slice/demos/SampleSliceProvider.java
|
3ec422a2e2a46b51d4cc6926fcaa35caacbdf98d |
|
21-Mar-2018 |
Jason Monk <jmonk@google.com> |
Switch slices over to IconCompat In prep for lowering min Test: connectedChecks and renders look ok Bug: 73453359 Change-Id: I59ab479348dee1c1ae66059a7dac7c4a7a2f0e71
/frameworks/support/samples/SupportSliceDemos/src/main/java/com/example/androidx/slice/demos/SampleSliceProvider.java
|
891ce204e1ecd60342507c7bd0c1160bac93be01 |
|
23-Mar-2018 |
Mady Mellor <madym@google.com> |
Ensure if text is loading the textview is still taking space Test: manual - loadlist, loadgrid and fyft app Bug: 74212891 Change-Id: Iad9aa986073549253d7e52f27da16ed993cbcdf8
/frameworks/support/samples/SupportSliceDemos/src/main/java/com/example/androidx/slice/demos/SampleSliceProvider.java
|
63fb9955b209f1bb9d19e41df9784bfbdf63defe |
|
10-Mar-2018 |
Mady Mellor <madym@google.com> |
Support “Updated 5 min. ago” for Slices with expired content * SliceView controls indicating that updated text should be shown; if the content is expired we show the “Updated x time ago” * Hidden API to turn this functionality on / off * RowView renders it Adds cases to render tests: Custom toggle: - no subtitle => updated text shows in subtitle spot Weather: - non-row as first item => no updated text Ride: - small version has long summary => truncated subtitle with updated text - big version has shorts summary => full subtitle with update text Test: ./gradlew slices-view:connectedCheck Bug: 74338434 Change-Id: I5c61b3067d478979b01c0d492b97a35b758e5823
/frameworks/support/samples/SupportSliceDemos/src/main/java/com/example/androidx/slice/demos/SampleSliceProvider.java
|
e7f1c6cf75ce36c633075445bd676572a9fe0f47 |
|
09-Mar-2018 |
Mady Mellor <madym@google.com> |
Add TTL notion to list builder * TTL is required to be explicitly set, new constant INFINITY to use for infinite TTL * Also saves when the slice was built (HINT_LAST_UDPATED) * Introduces SliceMetadata which will be the class for all info queries about the slice / slice template that a presenter might need. * Adds methods for expiry and last updated time to SliceMetadata * Moves the keywords / loaded state / action methods in SliceUtils into SliceInfo; deprecates them SliceUtils version * Adds tests for SliceMetadata Test: ./gradlew slices-view:connectedCheck Bug: 74338434 Change-Id: Id00e8dd49d52b1ade2ffbd823c56e38338a12dd0
/frameworks/support/samples/SupportSliceDemos/src/main/java/com/example/androidx/slice/demos/SampleSliceProvider.java
|
f0da2e67517c774cb034bd73830a3dfc8818afcc |
|
21-Mar-2018 |
Mady Mellor <madym@google.com> |
Rename GridBuilder to GridRowBuilder * Deprecates GridBuilder + creates new version with new name * GridBuilder had some deprecated methods, I’ve removed these out of GridRowBuilder. Test: ./gradlew slices-view:connectedCheck Bug: 75567927 Change-Id: I468007fe17c3131717c9fbe0083816eebdfbbc62
/frameworks/support/samples/SupportSliceDemos/src/main/java/com/example/androidx/slice/demos/SampleSliceProvider.java
|
c50cc30733ad1058f98523c25f7413745638332a |
|
07-Mar-2018 |
Mady Mellor <madym@google.com> |
Update shortcut view / slice actions to work together * Adds constructor to SliceAction that takes image mode * ShortcutView now prefers the primary action specified in the header of the Slice Bug: 74074403 (will make some of the work here easier) Test: ./gradlew slices-view:connectedCheck Change-Id: Id13f4aa9c6e65699802ddb788e2777d67802726f
/frameworks/support/samples/SupportSliceDemos/src/main/java/com/example/androidx/slice/demos/SampleSliceProvider.java
|
def582a5836579a3fadabfdbe4413cb1652bf098 |
|
13-Mar-2018 |
Aurimas Liutikas <aurimas@google.com> |
Fix imports for samples code. A follow up after factor to make it so androidx imports go in the correct order. Test: ./gradlew buildOnServer Change-Id: Ibb836331e3acb87e98190caef74940b4ed39aa79
/frameworks/support/samples/SupportSliceDemos/src/main/java/com/example/androidx/slice/demos/SampleSliceProvider.java
|
bb51b5909dd8d5b233cd675fbc6fe74c42f48d3c |
|
09-Mar-2018 |
Mady Mellor <madym@google.com> |
Filter out anything HINT_KEY_WORDS when extracting content from Slice * Add list of keywords to sample app (wifi slice) and render tests Test: ./gradlew slices-view:connectedCheck look at wifi slice Bug: 74086214 Change-Id: Ie724022564f712797578fe945e15263dd43cf0f2
/frameworks/support/samples/SupportSliceDemos/src/main/java/com/example/androidx/slice/demos/SampleSliceProvider.java
|
2f93cbdf078099dee48d666f95cc842e064974cb |
|
09-Mar-2018 |
Mady Mellor <madym@google.com> |
Merge "HeaderBuilder should have overloaded methods for loading" into pi-preview1-androidx-dev
|
09ec20c424ec3e546b10424a401c2343c2df205a |
|
07-Mar-2018 |
Mady Mellor <madym@google.com> |
HeaderBuilder should have overloaded methods for loading Updates sample app to have more realistic grid / list loading examples, includes example for header Test: manual: look at loadlist and loadgrid in slice browser Bug: 74212891 Change-Id: I6fc756fed298ac512289b38abdf5103a1be91346
/frameworks/support/samples/SupportSliceDemos/src/main/java/com/example/androidx/slice/demos/SampleSliceProvider.java
|
4c4a519b7320e1736f55dcd20351d10f692d492c |
|
07-Mar-2018 |
Mady Mellor <madym@google.com> |
Apply content descriptions to templates * Adds content description to GridContent / RowContent * Updates views to apply a content description - GridRowView: on the whole row, or per cell - RowView: on the whole row - Also applies description to any action buttons * Updates samples to add some content descriptions, also fixes a couple of things in samples Test: manual — test slices with talkback on in sample app Bug: 74212452 Change-Id: Ifb5d8ddbabdeba1e384b7b717781d2e04431fd5b
/frameworks/support/samples/SupportSliceDemos/src/main/java/com/example/androidx/slice/demos/SampleSliceProvider.java
|
ac5fe7c617c66850fff75a9fce9979c6e5674b0f |
|
06-Mar-2018 |
Aurimas Liutikas <aurimas@google.com> |
Refactor support library Test: None Change-Id: I92e450c739fc9d77e8f8840bed4165ab88247fd6
/frameworks/support/samples/SupportSliceDemos/src/main/java/com/example/androidx/slice/demos/SampleSliceProvider.java
|
f27b1ffc67228d73326ec3426fef4c9db75cd6fd |
|
06-Mar-2018 |
Aurimas Liutikas <aurimas@google.com> |
Revert "Refactor support library." This reverts commit b31c3281d870e9abb673db239234d580dcc4feff. Change-Id: Icfa5b9af633739ad2c857dff22a2181bac6661ef
/frameworks/support/samples/SupportSliceDemos/src/main/java/com/example/androidx/slice/demos/SampleSliceProvider.java
|
b31c3281d870e9abb673db239234d580dcc4feff |
|
20-Feb-2018 |
Aurimas Liutikas <aurimas@google.com> |
Refactor support library. Test: None Change-Id: I11a047324832801555673dac45ec1d6590a6338b
/frameworks/support/samples/SupportSliceDemos/src/main/java/com/example/androidx/slice/demos/SampleSliceProvider.java
|
55312b3aeb642f17fc373aab94182b3456e3ac47 |
|
23-Feb-2018 |
Mady Mellor <madym@google.com> |
Show see more for grid row * Add notion of see-more item to GridContent * Update GridRowView to display see more - Use custom cell if available otherwise - For image only rows show an overlay “+n” on top of last item - Otherwise replace last item with circle-style “+n more” * Adds examples to sample app and render tests - Gallery slice demos overlay - Subscription slice demos circle-style and custom Test: ./gradlew slices-view:connectedCheck Bug: 68378574 Change-Id: Ic74e2763d723da28f7eb8dcffa5a9d4173384cf1
/frameworks/support/samples/SupportSliceDemos/src/main/java/com/example/androidx/slice/demos/SampleSliceProvider.java
|
588bcc115f4fbbfab66c2c7da304c42f3b2783b8 |
|
02-Mar-2018 |
Mady Mellor <madym@google.com> |
Apply image small / large / icon to RowBuilder as well * Deprecated old methods * Moved int def into ListBuilder * Update RowView to size and color it properly * Fix a couple of things in ShortcutView using this info Note: Right now ‘large’ in the row will look the same as ‘small’ Test: ./gradlew slices-view:connectedCheck Bug: 68378574 Change-Id: I5bf86190c993c972dc66400e3d3e7a69224b51b1
/frameworks/support/samples/SupportSliceDemos/src/main/java/com/example/androidx/slice/demos/SampleSliceProvider.java
|
6c93ecda9ef87731a378e0f14e319b6554f8982e |
|
03-Mar-2018 |
Alan Viverette <alanv@google.com> |
Merge "Move slices to androidx.slice package." into pi-preview1-androidx-dev am: 71f41d78f9 Change-Id: I7f22286a0843dab6afeb6e976066151cce890313
|
85ef1446b82c8783a50af92c4cb1389fe0d0e907 |
|
02-Mar-2018 |
Aurimas Liutikas <aurimas@google.com> |
Move slices to androidx.slice package. Bug: 74113185 Test: ./gradlew buildOnServer Change-Id: I7738e22118cb0b1efcb158a1d5138124e721e8e6
/frameworks/support/samples/SupportSliceDemos/src/main/java/com/example/androidx/slice/demos/SampleSliceProvider.java
|
53380fecd1a1537e913578d1e53aa516d3f6e58e |
|
15-Feb-2018 |
Mady Mellor <madym@google.com> |
Show the see more item when scrolling is disabled on long list * Added to wifi sample / render test to show list of fake networks, it also implements see more * Logic for determining how many list items we can show for the height when scrolling is disabled (effectively disabling scrolling on the RV) * Some adjustments to measuring / heights to support this logic Bug: 68378574 Test: ./gradlew slices-view:connectedCheck (check wifi slice) Change-Id: I0cbfa04faa6d2c02f587e40b9ad4b4244f35e388
/frameworks/support/samples/SupportSliceDemos/src/main/java/com/example/androidx/slice/demos/SampleSliceProvider.java
|
5ca9e16f4e8038f57d144024dff74c946a41c463 |
|
23-Feb-2018 |
Mady Mellor <madym@google.com> |
Add notion of image sizes to grid builder * Adds new API that take image mode for sizing * Updates samples to include an IMAGE_ICON size sample The renders for IMAGE_ICON samples look bad right now this is fixed by view side of this CL (ag/3643127) Test: ./gradlew slices-view:connectedCheck Bug: 68378561 Change-Id: Ifd4d733557eec1ed52f5a201b6dad0664adee4e1
/frameworks/support/samples/SupportSliceDemos/src/main/java/com/example/androidx/slice/demos/SampleSliceProvider.java
|
20385035e76c7c7c39f26ad22f0588775c494a74 |
|
16-Feb-2018 |
Mady Mellor <madym@google.com> |
Fixes setting a toggle as a primary action Test: manual - try out the custom toggle in SliceBrowser Change-Id: Icb9945b6a1785687fe123e9dd857cc03cf522ce1
/frameworks/support/samples/SupportSliceDemos/src/main/java/com/example/androidx/slice/demos/SampleSliceProvider.java
|
9b0a49d6b4359f229edd76d1816ba4d8dd546589 |
|
13-Feb-2018 |
Mady Mellor <madym@google.com> |
Make GridBuilder not a parent; it can only be a child of ListBuilder I think this makes more sense long-term since most things will want a header / shortcut etc. instead of duplicating that in GB, just use LB. Bug: 68378561 Test: manual, check weather / contact / gallery / loading slices check that weather is tappable Change-Id: Ic0c3c2209f414c48e2bb9cb4dd0b739b53a27795
/frameworks/support/samples/SupportSliceDemos/src/main/java/com/example/androidx/slice/demos/SampleSliceProvider.java
|
ea77b88ead29f5582dac1019325e6f48496b556f |
|
12-Feb-2018 |
Mady Mellor <madym@google.com> |
Allow GridBuilder to specify a top-level content intent Bug: 68378574 Test: manual, check weather / contact / gallery slices Check that weather is tappable Change-Id: If10c48a05c0991b371887ee167799db6a5c7641d
/frameworks/support/samples/SupportSliceDemos/src/main/java/com/example/androidx/slice/demos/SampleSliceProvider.java
|
b794b5b0f4bcd000e098265a6ec63d4b0cf3852f |
|
07-Feb-2018 |
Mady Mellor <madym@google.com> |
Add ability to manipulate the actions shown on a slice * Adds helper method to get a list of the slice actions from a Slice * Adds methods on SliceView allowing modification of the displayed actions * If the action row isn’t showing, the actions will be displayed in the header of the slice, otherwise they’ll display in the action row * If there aren’t enough actions to display in the action row, they’ll be displayed in the header instead * If the slice doesn’t have a header, and the first row has a toggle, and there are actions, the actions will only be displayed if the action row is allowed * Updates samples to use ListBuilder#setActions * Adds flag to test action row in SliceBrowser Does not consider priority when display actions; will come in follow up Test: manual Bug: 69472451 Change-Id: I1a976830ed89a8a475355a51a3f2b18b1c49027f
/frameworks/support/samples/SupportSliceDemos/src/main/java/com/example/androidx/slice/demos/SampleSliceProvider.java
|
af76b3bd62a6b218bb44917b1dddfa1ee4803149 |
|
07-Feb-2018 |
Mady Mellor <madym@google.com> |
Create an SliceAction object to represent icon actions (and shortcuts) * SliceAction supports icon actions and toggles and everything we need to represent a shortcut * Removes previous ActionBuilder that was for a group of actions instead actions can be added via ListBuilder#addAction * Any instances where we’d add an action with pending intent / icon is replaced with SliceAction in RowBuilder * Start items and end items are now encapsulated in a Slice so some changes to support ‘unwrapping’ that in view / content code * ActionContent to pull out bits from an SliceAction * Updates SliceBrowser + render tests to use new builders Bug: 68378561 Test: ./gradlew slices-view:connectedCheck; make sure screenshots look as expected Change-Id: I48cae55eed7e86124b74f479620e57e05451f2aa
/frameworks/support/samples/SupportSliceDemos/src/main/java/com/example/androidx/slice/demos/SampleSliceProvider.java
|
f6b7a703cedbe1e6634c5b798954eb4672df6f38 |
|
08-Feb-2018 |
Mady Mellor <madym@google.com> |
Merge "Add API for adding "see more" row / action to a list or grid slice"
|
968346929453133f937381a2e685bc4e47788e2c |
|
29-Jan-2018 |
Mady Mellor <madym@google.com> |
Update view side for small template / header changes * Lists will show a header item, if a header wasn't added it uses the first list item. If the first list item has a toggle, it allows the toggle to show. This functionality may change. * When a list is shown in small format, the subtitle text will use the header summary, if it exists. * Updates examples in sample app Changes for manipulating actions that get shown in small format will come in separate CL. Bug: 68378574 Bug: 69472451 Test: look at ride, contact, wifi slice in small / large formats from slice browser app Change-Id: I6ce87bc4457892ed7cb82ec582b9ba287604d43b
/frameworks/support/samples/SupportSliceDemos/src/main/java/com/example/androidx/slice/demos/SampleSliceProvider.java
|
e3b00e2b2346e4da67d083b3475ffc9302d72898 |
|
10-Jan-2018 |
Mady Mellor <madym@google.com> |
Add API for adding "see more" row / action to a list or grid slice Since the presenter of the slice can disable scrolling on the slice not all content is guaranteed to be shown. This CL adds an option on the template builders to add either: * custom row to be displayed when content is cut off * custom action that will be hooked up to SliceView's default presentation of "see more" (presentation bit will come in later CL) This change only adds the API and does none of the actual work. Test: none Bug: 69472451 Change-Id: Ic283efee624ebb2425914f835c1ffb30e9ccc7b0
/frameworks/support/samples/SupportSliceDemos/src/main/java/com/example/androidx/slice/demos/SampleSliceProvider.java
|
853c11f11cd3d1378eac2c37d1e8c258420644a8 |
|
17-Jan-2018 |
Amin Shaikh <ashaikh@google.com> |
Add builder for range/input range - Add InputRangeBuilder and RangeBuilder to ListBuilder - Added sample slices for these row types Test: manually tested SliceBrowser with sample progress and slider slices Bug: 68378584 Change-Id: If2807935ff0d921de1dd0b7dd16c9b86a0d37792
/frameworks/support/samples/SupportSliceDemos/src/main/java/com/example/androidx/slice/demos/SampleSliceProvider.java
|
ba4198f4bc37284c5a6e8ce993f3652d3e3c88e6 |
|
18-Jan-2018 |
Mady Mellor <madym@google.com> |
Adds methods indicating if content is loading to slice template builders * Allows apps to indicate that specific content in a row will be added / updated in the builders * Adds method to query loading state of a Slice loaded state of the presented slice changes * If empty slice is provided, assume the slice needs to be loaded Bug: 68378574 Test: manual Change-Id: Ibd0857a72df05267dde821788eb9a9e14cdb630d
/frameworks/support/samples/SupportSliceDemos/src/main/java/com/example/androidx/slice/demos/SampleSliceProvider.java
|
8a71dde4314b29493bca91790ce5aec4ea789c47 |
|
29-Jan-2018 |
TreeHugger Robot <treehugger-gerrit@google.com> |
Merge "Themes for presenter"
|
87a9bf551f300ae379245a3edcb836f628439237 |
|
20-Dec-2017 |
Mady Mellor <madym@google.com> |
Alter actions / summary API for ListBuilder (builders) - new builder: HeaderSliceBuilder: has text / content intent and supports alternate summary text - new builder: ActionSliceBuilder: can have actions with priority added to it - ListBuilder can have a header slice and action slice added to it - Adds subtype (hint for now) for priority - removes notion of header from RowBuilder todo: view side of things, this is just API Test: none Bug: 68378574 Change-Id: I7b2e80abed056e8b3a53acd7ba80811a5d0dbac8
/frameworks/support/samples/SupportSliceDemos/src/main/java/com/example/androidx/slice/demos/SampleSliceProvider.java
|
0922d59222960ed7c88c5e5098399e33a343c9c6 |
|
24-Jan-2018 |
Mady Mellor <madym@google.com> |
Themes for presenter * Adds custom view attributes to SliceView to enable theming * Custom text sizes / colours * Presenter can control padding via adding padding to SliceView or to style * Adds API to change tint color for the SliceView * Simple custom style example hidden via flag in browser app Test: manual -- change things in the style in sample app Bug: 69472451 Change-Id: I9b870da500fef38adfd5d5c8f44930e207c193ba
/frameworks/support/samples/SupportSliceDemos/src/main/java/com/example/androidx/slice/demos/SampleSliceProvider.java
|
e92587f49a38cc30d889b5d417f0e461b6b582b2 |
|
24-Jan-2018 |
Mady Mellor <madym@google.com> |
Updates to example slices in demo app - New reservation slice that demos big picture and text only in a grid layout - Ride slice now has tinted text / better matches mocks - Gallery slice has actions / better matches mocks Test: manual, look at reservation, ride, and gallery slices in demo app Change-Id: Ibbcc0e4054005f36b81d4a5a5c6cd185941f517b
/frameworks/support/samples/SupportSliceDemos/src/main/java/com/example/androidx/slice/demos/SampleSliceProvider.java
|
bfeddbaf2e0d5707b101a91fa1287c93757ff4a9 |
|
10-Jan-2018 |
Amin Shaikh <ashaikh@google.com> |
Support multiple toggles in the same row. - Added a sample slice containing 2 toggles - Prefer displaying action items as end items instead of deferring to the format of the first end item Test: manually running SliceBrowser and checking all slices Change-Id: I83617bcb5a43a79cc0d472908a213ec85313420a
/frameworks/support/samples/SupportSliceDemos/src/main/java/com/example/androidx/slice/demos/SampleSliceProvider.java
|
a09cb677db982c92d3172fa79a6a4585fc29da14 |
|
08-Jan-2018 |
Jason Monk <jmonk@google.com> |
Refactor builders to support multiple versions This is how we will handle differing versions of support lib. We will run down a list of supported specs until an implementation of the builder is selected. Test: manual Bug: 68378561 Change-Id: I948ad7f2ba1fd91f1090e062600fd000fb29a9c7
/frameworks/support/samples/SupportSliceDemos/src/main/java/com/example/androidx/slice/demos/SampleSliceProvider.java
|
b283d3faaa82be91532d8bb15c205e7a0eb9855f |
|
10-Jan-2018 |
TreeHugger Robot <treehugger-gerrit@google.com> |
Merge "Allow slice rows to include multiple toggles."
|
3831ee680656fd78ff62d9c656f696a86388cbad |
|
09-Jan-2018 |
Amin Shaikh <ashaikh@google.com> |
Do not cancel previous toast PendingIntents. - Create a unique PendingIntent for each toast message created in SampleSliceProvider, so that previous PendingIntents are not cancelled. Test: opened SliceBrowser and clicked on each icon in the contacts slice Change-Id: Ib6d1258658d7323af3db2a88adf92323023192d0
/frameworks/support/samples/SupportSliceDemos/src/main/java/com/example/androidx/slice/demos/SampleSliceProvider.java
|
d264a86530b606566e3c8d83e334018afd65a646 |
|
08-Jan-2018 |
Amin Shaikh <ashaikh@google.com> |
Allow slice rows to include multiple toggles. This change only updates the builder to allow multiple toggles to be added to a single RowBuilder; the view code has not been updated to render 2 or more toggles. Test: manually running SliceBrowser Change-Id: I29758cc7e91c95ad5b2e0f382fdf915c5500c579
/frameworks/support/samples/SupportSliceDemos/src/main/java/com/example/androidx/slice/demos/SampleSliceProvider.java
|
db971ff8e940b67d0e52135fafec835e813ded00 |
|
20-Nov-2017 |
Mady Mellor <madym@google.com> |
Better builder for grid formats of slices - Builder with concept of GridRow / Cell to construct a grid layout - Added a bunch of samples for grid templates in sample app Test: run sample app, look at contact, gallery, weather slices Bug: 68378574 Change-Id: I594f7696371fd6740550e6444ad906efad26d26c
/frameworks/support/samples/SupportSliceDemos/src/main/java/com/example/androidx/slice/demos/SampleSliceProvider.java
|
49a1b3e1a2c2553e95c2d0267dda5cd132a31fd5 |
|
11-Dec-2017 |
Mady Mellor <madym@google.com> |
Support summary content and restrict end items (builders) - RowBuilder restricts a row to only have one timestamp / toggle - RowBuilder restricts a row to only have actions or icons but not a mix of them in the endItems - ListBuilder allows a summary row to be added, this is what will be shown in small format Test: manual, look at the ride slice in the demo app Bug: 68378574 Change-Id: Idbbf8dd87e349caaa7e3f1f11a83eb80c73a38c1
/frameworks/support/samples/SupportSliceDemos/src/main/java/com/example/androidx/slice/demos/SampleSliceProvider.java
|
c1334184900d93f73e879d02a32715a5579aa55f |
|
11-Nov-2017 |
Mady Mellor <madym@google.com> |
Small template improvements and better builders - Disables “start items” from being displayed in the first element of a template (small or large), rows after that can have start items - Adds proper builder for row elements, marking a row element as a header indicates which row should be used for the small template - Adds custom toggle icon as an option for toggles - Adds a couple more examples to the demo app - Update the builder model to not have sub-builders Bug: 68378574 Test: select small template in demo app and look at wifi toggle slices Change-Id: I237a16e25b588b23ef7ba40fb41ed2e543c204af
/frameworks/support/samples/SupportSliceDemos/src/main/java/com/example/androidx/slice/demos/SampleSliceProvider.java
|
ed97495ab4fc5b6f16b022bbfbc37f0cd835cce3 |
|
27-Nov-2017 |
Jason Monk <jmonk@google.com> |
Add SliceLiveData.fromIntent Test: samples Fixes: 68378579 Change-Id: I9ba7b560d1bf850d0f150cdc6c64882c3eb602d1
/frameworks/support/samples/SupportSliceDemos/src/main/java/com/example/androidx/slice/demos/SampleSliceProvider.java
|
dcb5e2f13fa8471f62a7f4625b4dc6e449358cbd |
|
16-Nov-2017 |
Jason Monk <jmonk@google.com> |
Compat for slices Support back to v19. Test: Run samples on API 28 and API 27 Change-Id: Ib8f7b30575f6c2126eab4a285780a68858629396
/frameworks/support/samples/SupportSliceDemos/src/main/java/com/example/androidx/slice/demos/SampleSliceProvider.java
|
8b099f294dac82878af162e6b5842413abbee2a6 |
|
15-Nov-2017 |
Jason Monk <jmonk@google.com> |
Add make files for slices Test: make Change-Id: I1e1b93c365074b40dc7bfa7f41c7ad7f8d523f10
/frameworks/support/samples/SupportSliceDemos/src/main/java/com/example/androidx/slice/demos/SampleSliceProvider.java
|
0c76d3038c814e26f15b16ce2e09e28bcbcedcc6 |
|
21-Nov-2017 |
Jason Monk <jmonk@google.com> |
Slice updates to follow platform API changes Test: run sample app Change-Id: I8ca7e54dd03a0233dd8e1fe8cbdeeeae2896807e
/frameworks/support/samples/SupportSliceDemos/src/main/java/com/example/androidx/slice/demos/SampleSliceProvider.java
|
db8aa8c68d0e51eddc1f58140e292fe5164bb52b |
|
08-Nov-2017 |
Mady Mellor <madym@google.com> |
Updates SmallTemplate to allow presentation of toggles, add sample to demo - Adds temporary class to contain hints until things are in framework - Supports single toggle or toggle with content intent a la settings style. - Adds a new hint to indicate toggles, hint selected can be used to indicate the toggle is selected. - Adds an intent extra that indicates the toggle state when toggle action is performed. - Some updates to small template to be more inline with spec - Adds a sample toggle slice to the demo app Test: Manual with SliceDemos - Search for the /wifi slice from the menu Bug: 68378574 Change-Id: I015eed3fc89a66622d0f521ae6c288c7482b5bb2
/frameworks/support/samples/SupportSliceDemos/src/main/java/com/example/androidx/slice/demos/SampleSliceProvider.java
|
8a452e96e2308fe9515aa91b8e5b369eeefc25e7 |
|
01-Nov-2017 |
Jason Monk <jmonk@google.com> |
Add slices modules to supportlib - Core: contains common slice utilities, all hidden - Builders: contains builders that translate templates into hints - Views: contains SliceView and code to interpret hints into slice rendering - Samples: Generate one template and add Slice Browser Test: Manual, code copied/ported from P Bug: 68378561 Change-Id: I3193db81090b45f32365f496aa0141ed5ccb8770
/frameworks/support/samples/SupportSliceDemos/src/main/java/com/example/androidx/slice/demos/SampleSliceProvider.java
|