Commit Graph

3060 Commits

Author SHA1 Message Date
susnata
91926c0c7d Changing generic parameter name to make it less ambiguous.
Change-Id: I80f634e66533fbce34ed149cbe0eae2a5695adac
2016-03-24 21:14:06 +00:00
Susnata Basak
a381fcebcc Merge "Adding build scripts to SupportLeanbackShowcase app." into nyc-dev 2016-03-24 21:11:00 +00:00
susnata
0b8d2f0080 Adding build scripts to SupportLeanbackShowcase app.
Change-Id: I438004a2cd87b739f9d6629a07f77c1262819eb6
2016-03-24 13:58:11 -07:00
Sungsoo Lim
79e05d5970 Support7Demos: Add an override annotation
Change-Id: Ice0a1960733a15cb5d78e28686f700cf3aad1409
2016-03-24 16:58:12 +09:00
Sungsoo Lim
813d715270 Support7Demos: Enable the route discovery action only when needed
Bug: 27464709
Change-Id: I4b685d8857d1f8efa830b430f4d694776b758f92
2016-03-24 16:33:24 +09:00
Sungsoo Lim
47c8954cab Merge "Land MediaBrowserCompat sample in Support4Demos" into nyc-dev 2016-03-24 04:04:18 +00:00
Dake Gu
08a9ce3d4b Entrance Transition for Page fragment in Browse
Change-Id: If78436ae25f6b4ba4e420f1751abcf5cf9a7683b
2016-03-22 12:12:04 -07:00
Dianne Hackborn
cfb240e53b Merge "Add sample for observing only photos changes." into nyc-dev 2016-03-21 23:31:01 +00:00
Dianne Hackborn
a4a1bb7dca Add sample for observing only photos changes.
Change-Id: I954fb466fb21d73f88b1dd1bc86eac617a628073
2016-03-21 13:31:34 -07:00
Chris Banes
c099ea6b05 Improve SwipeRefreshLayout demos
am: 74cecd8

* commit '74cecd82333990bc03d6828e9d44ca2a2d45df96':
  Improve SwipeRefreshLayout demos
2016-03-21 10:09:30 +00:00
Chris Banes
74cecd8233 Improve SwipeRefreshLayout demos
Adds a nested scrolling, and non-scrolling demo

Change-Id: I5ce7e647f3ec976c55553dbc62d42889700ef444
2016-03-21 10:03:36 +00:00
Sungsoo Lim
67d3c4a873 Land MediaBrowserCompat sample in Support4Demos
Bug: 26883964
Change-Id: Ief13490dc4e497acd6160b17a0d8e3d038b75457
2016-03-21 13:35:56 +09:00
Kirill Grouchnikov
c5d7529123 Sample code for using custom views in TabLayout tabs
Change-Id: I5623729e52bd701914f84e3fd41fa3e5c71245b8
2016-03-16 11:55:03 -04:00
Dake Gu
a070f85677 LeanbackDemo: Search requests runtime permission
Bug: 23958590
Change-Id: I058b80050285b9912fefbcaca3f897f8a6b87b3d
2016-03-15 18:30:16 -07:00
Makoto Onuki
8950c62362 Merge "Don't override the setting activity shortcut" into nyc-dev 2016-03-15 20:04:36 +00:00
Susnata Basak
8689804cc9 Merge "Adding page fragment inside BrowseFragment demo" into nyc-dev 2016-03-15 18:37:45 +00:00
susnata
b0a80e28d5 Adding page fragment inside BrowseFragment demo
Change-Id: If6f453f2398d8fc5beba16e2a2e126566b9b65e2
2016-03-15 11:22:16 -07:00
Makoto Onuki
ed8e4d8529 Don't override the setting activity shortcut
- Also dump updated shortcuts on logcat

Bug 27548047

Change-Id: Id6a80e518dd801f530bbd30b6379ed86d7cf8a2b
2016-03-15 11:10:23 -07:00
Makoto Onuki
05b869cfcc Don't use the launcher shortcut APIs when not allowed.
Bug 27548047

Change-Id: Ie9f85b1662be9b071458180c128554711642e55e
2016-03-14 15:14:40 -07:00
Susnata Basak
d91a35d096 Merge "Adding PageRow to BrowseFragment demo." into nyc-dev 2016-03-11 02:38:35 +00:00
Makoto Onuki
618cfbf728 Shortcut Demo: update shortcuts
Bug 27548047

Change-Id: I354cd468217f735dd79407de59a855cace247a85
2016-03-10 15:21:12 -08:00
Makoto Onuki
ad5c8aaf19 Improve shortcut demo
Bug 27548047

Change-Id: Iba717ec910e1fd48e623f5dea4604fc27e5d2818
2016-03-10 12:40:09 -08:00
Makoto Onuki
ebdd0c2e4e Improve shortcut demo
- Add launcher demo
- Now we build two of launchers and publishers, for better testing

Bug 27548047

Change-Id: Iede6abcf611261c83b7486f07709b56c6f5c53e0
2016-03-10 11:24:12 -08:00
Makoto Onuki
860565e9df Merge "ShortcutDemo to call more APIs" into nyc-dev 2016-03-10 00:32:40 +00:00
susnata
35e26312db Adding PageRow to BrowseFragment demo.
Change-Id: I4669effcddb101fb63a8f32ef7de380303648d23
2016-03-09 14:33:04 -08:00
Makoto Onuki
89f3a6aa5b ShortcutDemo to call more APIs
Bug 27548047

Change-Id: I8ae8d53ba41b6649a072f565f662d45cfbb413e1
2016-03-09 14:31:37 -08:00
Vladislav Kaznacheev
229c8fdcd1 Merge "Add drag and drop to VideoViewDemo" into nyc-dev 2016-03-09 22:00:19 +00:00
Makoto Onuki
87ba16b57e Merge "Demo app for ShortcutManager" into nyc-dev 2016-03-08 23:05:31 +00:00
Makoto Onuki
eb9d55cd45 Demo app for ShortcutManager
Bug 27325877

Change-Id: I29624ee31008c2cc5e207e7544d48efc3f733bea
2016-03-07 17:27:58 -08:00
Kirill Grouchnikov
0c96d1ad22 Merge "Align the structure of percent demos with other support demo projects." into nyc-dev 2016-03-07 15:40:47 +00:00
Dongwon Kang
f0fcd7111d Merge "SupportLeanbackDemo: Fix generatev4.py" into nyc-dev 2016-03-04 22:31:19 +00:00
Dongwon Kang
3cb47c9a57 Merge "Revert "SupportLeanbackDemos: Use Fragment#onPictureInPictureChanged()"" into nyc-dev 2016-03-04 22:31:10 +00:00
Kirill Grouchnikov
aee6a006e1 Align the structure of percent demos with other support demo projects.
Top level - an activity with a list of all samples. The list is driven
by metadata collected from the manifest.
Second level - specific demos.

This allows:
* Clear labeling at the top-level of what we're demoing
* Much more flexible and scalable way to show multiple demos (instead
of one ViewPager)
* Consistent structure across all our support demo projects

Change-Id: I64a3b7788b14f0ac663be6616a2ec841ca53944e
2016-03-04 16:33:06 -05:00
Dongwon Kang
9227a46749 SupportLeanbackDemo: Fix generatev4.py
Bug: 27495998
Change-Id: If6d2bcc6f43aec7386ee141196d8fb5c8a525b3c
2016-03-04 10:37:51 -08:00
Dongwon Kang
e00ad29874 Revert "SupportLeanbackDemos: Use Fragment#onPictureInPictureChanged()"
This reverts commit 9ca8c945ae.

Backgroud: this change breaks generatev4.py conversion process due to b/27495998

Bug: 27495998
2016-03-04 10:34:21 -08:00
Aurimas Liutikas
0265072c79 Set card background using ColorStateList.
This allows Support7Demos activity to show CardView support for ColorStateList.
This sample activity already contains R.color.card_selector and now it sets it
fully.

Bug: 26791833
Change-Id: I481d510501596f0d3a59cb194a7056a20ca9b72c
2016-03-03 14:04:58 -08:00
Vladislav Kaznacheev
4f15403fbe Add drag and drop to VideoViewDemo
Play videos dragged from other apps (such as Files app).

Change-Id: I010eada2aed6a14bab04e6b583f07551d91a200c
2016-03-03 10:37:38 -08:00
Aurimas Liutikas
45da2f701d Make CardViewActivity in Support7Demos extend AppCompatActivity.
Activities that use AppCompat themes must extend AppCompatActivity.

Bug: 27453786
Change-Id: I9c780fd17ee0a98ec0579b43dba754ea5d525d10
2016-03-02 14:20:08 -08:00
Chris Banes
4744854d79 Update Support Demos to use their own search icon
Change-Id: I8e1fc1ac990dd0ef1830a0e5126328b8657cf24e
2016-02-23 16:02:34 +00:00
Makoto Onuki
68bfa3736d Make ApiDemos movable to SD card
Change-Id: I53d923a44360c16d42d1b646a182c706888027a8
2016-02-16 17:03:02 -08:00
Keyvan Amiri
304b67538e SupportLeanbackDemos: Fixed password crash when no payment is selected
am: be98b3af70

* commit 'be98b3af70d0fb280dd688040b04880a9e4d543f':
  SupportLeanbackDemos: Fixed password crash when no payment is selected
2016-02-10 21:57:59 +00:00
Keyvan Amiri
be98b3af70 SupportLeanbackDemos: Fixed password crash when no payment is selected
The second Guided Step fragment crashed when a password was entered but
no credit card info was selected, because it was trying to extract "Visa"
or "Master" substrings from an empty string. Put a check for string
sizes before this extraction is performed.

Change-Id: I9b93a302f5f855b1853885ff4e5fc9a04c200766
2016-02-10 13:46:30 -08:00
Makoto Onuki
08d2a04420 Add a secondary DA to ApiDemos for testing
Bug 27107878

Change-Id: Id8179926d424ca8b4678ac028f4c9eab7a81a4c2
2016-02-10 11:28:49 -08:00
Keyvan Amiri
781069923c SupportLeanbackShowcase: Added new credit card workflow and theme background for the wizard view
am: 64cae78d53

* commit '64cae78d53a7c0d4dc0a80bfddc03ecdee2667f7':
  SupportLeanbackShowcase: Added new credit card workflow and theme background for the wizard view
2016-02-10 02:32:00 +00:00
Keyvan Amiri
767529d63b SupportLeanbackShowcase: Fixed the crash/background color/selector in Guided Step Wizard view
am: 285adeccf2

* commit '285adeccf24b63136af8d9b9075c51089f143f1d':
  SupportLeanbackShowcase: Fixed the crash/background color/selector in Guided Step Wizard view
2016-02-10 02:31:51 +00:00
Keyvan Amiri
9ad3922d43 SupportLeanbackShowcase: Provided context for calls to GuidedAction.Builder
am: 329cd510f0

* commit '329cd510f09bcff759f6e63e54aa7fb85b955444':
  SupportLeanbackShowcase: Provided context for calls to GuidedAction.Builder
2016-02-10 02:31:42 +00:00
Keyvan Amiri
64cae78d53 SupportLeanbackShowcase: Added new credit card workflow and theme
background for the wizard view

Created a payment workflow consisting of a set of fragments for
entering & adding new credit card information (checks in place
for validity of the card number as well as expiration date).
Also, changed the dropdown subaction's background colors to
be consistent with the rest of guided step fragment view.
Fixed the back key pressed to "not" exit the entire wizard on the last
fragment (it not goes back to the payment fragment section when back
button is pressed).

Change-Id: I39cf316f09b765cffbd0a7e012539c49dbe238ed
2016-02-09 18:20:57 -08:00
Keyvan Amiri
285adeccf2 SupportLeanbackShowcase: Fixed the crash/background color/selector in Guided Step
Wizard view

Guided Action layout have gone through changes that caused "Rent" action to fail
in the example wizard view. Added layout_width and layout_height to all
the containers, as well as a changing "addSharedElement" in
"TransitionsHelper" in leanback support library.

Background color was added & action selector (while loading a video) was
removed by defining new themes.

Change-Id: Ia296e02720513edaea1d4197aacb5b4f88776545
2016-02-09 18:08:31 -08:00
Keyvan Amiri
329cd510f0 SupportLeanbackShowcase: Provided context for calls to
GuidedAction.Builder

GuidedActions were created without the activity argument in the old
version; updated the API calls to use their context within the fragment.

Change-Id: I4b3433f9e0cdfe5fa84a56a78413c219fbc4d939
2016-02-09 18:06:18 -08:00
Kirill Grouchnikov
cbe66188b7 Switch DrawerLayout to new listener API.
am: 8369074daf

* commit '8369074daf4603fa483aac75a423e7041adde04e':
  Switch DrawerLayout to new listener API.
2016-02-10 02:05:40 +00:00