Commit Graph

3034 Commits

Author SHA1 Message Date
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
Kirill Grouchnikov
8369074daf Switch DrawerLayout to new listener API.
setDrawerListener is deprecated in favor of the new
addDrawerListener.

Change-Id: I374cff5ff481f206d5a94835c0c00e719c2f6e25
2016-02-09 17:07:03 -08:00
Dongwon Kang
faf2da3510 LeanbackDemo: Bring piped activity to full-screen when relaunched
Bug: 26696836
Change-Id: Ic0e682d79eaa76b8e53b9a7c58c667fe22d3ab42
2016-02-10 00:42:23 +00:00
Steven Dao
f290b1df4a Merge "Add role description sample to Support4Demos" into nyc-dev 2016-02-09 00:44:39 +00:00
Vladislav Kaznacheev
c2baa88d9d Merge "Introduce the example of pointer capture API" into nyc-dev 2016-02-09 00:39:58 +00:00
Vladislav Kaznacheev
2ba9c45dc0 Add example of pointer icon resource reference to ApiDemos
Change-Id: I3e88a097725b69aefd38169c0b37d64ebd6ddec5
2016-02-09 00:37:12 +00:00
Steven Dao
6993542bfc Add role description sample to Support4Demos
Change-Id: I031d018724d7a9213de8fa2d6c1626f057946b2c
2016-02-09 00:36:27 +00:00
Vladislav Kaznacheev
8789484eab Introduce the example of pointer capture API
Change-Id: I36276669ca0c8d8b200390064deca8c42603cb0d
2016-02-09 00:36:02 +00:00
Dongwon Kang
d2a8a47bc4 Merge "SupportLeanbackDemos: Use Fragment#onPictureInPictureChanged()" 2016-02-05 18:32:32 +00:00
Alan Viverette
10150941ff Fix ApiDemos layout
Change-Id: I67b15d38a8d947d30ce9c3789c5000c7850861d2
2016-02-05 12:49:44 -05:00
Alan Viverette
47683023d5 Fix duplicate IDs in Material controls demo
Change-Id: Ic87b4ae520ba22387e4902bdc6b841b635921080
2016-02-05 12:41:56 -05:00
Dongwon Kang
9ca8c945ae SupportLeanbackDemos: Use Fragment#onPictureInPictureChanged()
Instead of Activity#onPictureInPictureChanged()

Change-Id: Id31ac91c9e43569fe387f087ff2e9a6c1afac6ce
2016-02-05 16:31:25 +09:00
Vladislav Kaznacheev
f0b04a92f5 Merge "Introduce the examples of pointer shape API." 2016-02-04 20:20:47 +00:00
Keyvan Amiri
215519ac33 Merge "SupportLeanbackShowcase: Changed styles into new theme APIs" into mnc-ub-dev
am: 9e9fdcb8e9

* commit '9e9fdcb8e926467381a26e494eccae7e435a20c3':
  SupportLeanbackShowcase: Changed styles into new theme APIs
2016-02-04 00:10:12 +00:00
Keyvan Amiri
5abd85c64e SupportLeanbackShowcase: Changed styles into new theme APIs
The card styles are  converted into themes, and in the
ImageCardViewPresenter, each ImageCardView is generated through the use
of the resource ID of each specific theme.
This is to conform to the latest widget API change which moved a set of
attributes to theme for customizing widgets.

Bug: 26249596
Change-Id: Id64aeebb96bee13c6cb68f8ab69cacdfb9a98531
2016-02-03 15:58:27 -08:00
Jun Mukai
6cb3668322 Introduce the examples of pointer shape API.
Change-Id: Ib0be39d560fbc00db661f639a02c4df2e2c1867b
2016-02-03 14:54:44 -08:00
Keyvan Amiri
e3bd539556 Merge "Fixed the video view crash in SupportLeanbackShowcase master build" into mnc-ub-dev
am: 4c7054297b

* commit '4c7054297b3405205cc6c8ba86901e13bb22617d':
  Fixed the video view crash in SupportLeanbackShowcase master build
2016-02-01 23:16:48 +00:00
Keyvan Amiri
4c7054297b Merge "Fixed the video view crash in SupportLeanbackShowcase master build" into mnc-ub-dev 2016-02-01 23:11:43 +00:00
Keyvan Amiri
32be3d30dc Fixed the video view crash in SupportLeanbackShowcase master build
The "Video consumption Examples" view in SupportLeanBackShowcase was failing on
the master build (fugu-userdebug N AAC30 2573265 devkeys),
since onCreate gets called in the reverse order of fragments' appearence in the
code when using a single transaction.
Fixed that by using separate transactions per fragment addition, and now the
example video view works on the master build as well as the LMP-MR1 build.

Bug: 26894030

Change-Id: Ic020cb87049af7e2095387ca1aab017f2b026630
2016-02-01 15:00:29 -08:00
Wale Ogunwale
1d69889c68 Merge "Made some changes to window caption APIs" 2016-02-01 19:06:22 +00:00
Wale Ogunwale
cd7ce74e67 Merge "Renamed Activity class multi-window APIs" 2016-02-01 15:04:50 +00:00
Wale Ogunwale
17e2686917 Merge "Renamed FLAG_ACTIVITY_LAUNCH_TO_SIDE to FLAG_ACTIVITY_LAUNCH_ADJACENT" 2016-01-31 19:57:20 +00:00
Wale Ogunwale
f60b4f1def Made some changes to window caption APIs
As recommended by API council.

Bug: 26509365
Change-Id: I52cbe40334f65868952791150510311ab1cc00e6
2016-01-30 16:04:17 -08:00
Wale Ogunwale
45c135d672 Renamed FLAG_ACTIVITY_LAUNCH_TO_SIDE to FLAG_ACTIVITY_LAUNCH_ADJACENT
Per feedback from API council.

Bug: 26508215
Change-Id: Ic2f142a6df023bcb75ee2f91abafa9e0c35fd3bd
2016-01-30 11:34:54 -08:00
Wale Ogunwale
8b52f7e0c2 Renamed Activity class multi-window APIs
As requested by API council.

Bug: 26507736
Change-Id: I8911c0b969ae05b686bea1dc26feba12cd074e6a
2016-01-29 18:08:31 -08:00
Susnata Basak
cff66dc9a5 Merge "Updating SupportLeanbackDemo to showcase GuidedStepFragment." into mnc-ub-dev
am: c140afb120

* commit 'c140afb120c664de8757a7df7d0eb16a60d91a09':
  Updating SupportLeanbackDemo to showcase GuidedStepFragment.
2016-01-29 21:45:34 +00:00
Susnata Basak
c140afb120 Merge "Updating SupportLeanbackDemo to showcase GuidedStepFragment." into mnc-ub-dev 2016-01-29 21:39:53 +00:00