Commit Graph

2737 Commits

Author SHA1 Message Date
Robert Hahn
a6b10a96b7 Merge "WIP: Added transitions to MainFragment." into mnc-ub-dev 2015-08-18 17:17:21 +00:00
Kris Giesing
ec63848268 Merge "Add editable actions to Guided Step test activity." into mnc-ub-dev 2015-08-10 19:59:40 +00:00
Robert Hahn
742e2682a9 WIP: Added transitions to MainFragment.
In order to show how to use transitions, they
have been added to the MainFragment. Thus the
transitions are used when an example gets opened.

Change-Id: I9703c7832a2d2ef2a09ddb91e1676dfc1ac4f24a
2015-08-06 15:37:56 -07:00
Robert Hahn
d811b8ef9a Merge "Polished Grid example and added a few missing details at Launcher fragment. Video- and Music examples now also use an Activity. BackgroundHandler in MainFragment removed." into mnc-ub-dev 2015-08-06 21:35:37 +00:00
Dake Gu
3dfa612939 am 6ad53c99: Merge "BrowseErrorFragment: fix NPE of not attached BackgroundManager" into mnc-dev
* commit '6ad53c992dc9043c024699d512e3784e18aef1e2':
  BrowseErrorFragment: fix NPE of not attached BackgroundManager
2015-08-06 21:05:31 +00:00
Dake Gu
6ad53c992d Merge "BrowseErrorFragment: fix NPE of not attached BackgroundManager" into mnc-dev 2015-08-06 20:43:55 +00:00
Kris Giesing
6a07105bcd Add editable actions to Guided Step test activity.
b/21403345

Change-Id: I29ffee64c54f44d80cbfcd62bd3a1b78f22ae117
2015-08-05 19:46:21 -07:00
Robert Hahn
26b7df1102 Polished Grid example and added a few missing details at
Launcher fragment. Video- and Music examples now also use
an Activity. BackgroundHandler in MainFragment removed.

Removed unused Log-Tag field and added correct background.
Changed Grid Zoom factor.
Moved Grid- and Card example to their own packages and
they now are started using an Activity.
Launcher fragment uses correct primaryColor and its row
has been lowered.
Music and Video consumption example are using Activities
as well. Thus BackgroundManager in MainFragment is
unnecessair, which is why it got removed.

Change-Id: I928614314677706f19e648666697f0a710d88e0a
2015-08-05 19:10:12 -07:00
Robert Hahn
aeedeb7d60 Cleaned up strings.xml
Removed unused strings.

Change-Id: I4752b86795a0b03b7de33bad3d736ba3ab2d8392
2015-08-05 10:24:20 -07:00
Robert Hahn
63e8181cee Removed Browsing example from Showcase app
There are no plans for now to show a
browsing example which is why it can be
removed for now. There was no code written
so far for this example.

Change-Id: I0580021ddc0f385d616074c61cc1c449e75357ad
2015-08-05 10:16:38 -07:00
Robert Hahn
80116aacde Polished Wizard example for Showcase app
Extracted Strings, added JavaDoc,
refactored the call of the second Wizard
screen to be less error-prone code.

Change-Id: Ib8a8af7019818b29d71ee1bed1cac3e2b56e8c11
2015-08-05 10:04:31 -07:00
Robert Hahn
9f8ccdc5af Rearranged classes and removed unused
resources.

Rearranged classes into packages to
provide a better overview as well as
removing an unused mp3 file.

Change-Id: I9e3b63ceef919d6f0d57479260c93376578793cf
2015-08-04 14:58:39 -07:00
Robert Hahn
8dd090f514 Cleanup and usage of new ImageCardView
The Showcase app now makes use of the new
ImageCardView which is stylable through
XML and uses less Views.
Cleaned up DetailView.
Cleaned up styles and layouts.
Added Copyright notices.

Change-Id: Ib37485d5b57be6a0f4b5321ac61b41a0808eaf35
2015-08-04 14:04:14 -07:00
Dianne Hackborn
226bc5165f am 424fb606: Change MNC codename to just M.
* commit '424fb60606196329311b7400b587fafd506cf907':
  Change MNC codename to just M.
2015-08-01 16:51:55 +00:00
Dianne Hackborn
424fb60606 Change MNC codename to just M.
Change-Id: If86839c5d1f0bf4f013aa786ba2dc5bcb39527f8
2015-07-29 15:21:36 -07:00
Dake Gu
94296eca10 BrowseErrorFragment: fix NPE of not attached BackgroundManager
BrowseErrorFragment also shows Background for selected item.
Need attach BackgroundManager to window.

b/22796403

Change-Id: I80bbaf48c85a318fdd0e07d4efd3d1b72876c03d
2015-07-28 13:50:54 -07:00
Robert Hahn
63dcb5b4bd Implemented Card-, DetailView-, GridView-, Music- & Video,
Wizard-, Dialog examples

The Launcher card needs to be animated. When expanding cards
with an animation some animation artifacts might occur since the
transition system moves the cards to be centered again. Thus, the
two animations are competing with each other. Currently I'm waiting
for a change on leanback's transition system or another way to
animate cards.
Another animation artifact occurs when collapsing the SideInfo-cards,
which I hope to be resolved once we clarified how to do proper card
animations in the framework.
There are some minor issues with in the DetailView since some API
methods are missing for customization such as setting the details-
and ActionBars background color.
Removed obsolete package.
Finished music example.
Finished video example.
Bug 22362006
Added Dialog example.
WIP Testing new ImageCardView XML styling.
WIP Settings example.
WIP Wizard example.
Finished Dialog example.
Gradle uses environment variable to reference support libraries.

Change-Id: I8f911d2e5aeb1fb8764f45d20fda1dc0fc69773a
2015-07-22 17:48:26 -07:00
Vadim Tryshev
09e174875c am 1461b8e9: Merge "Fixing a crash introduced by my previous CL." into lmp-mr1-ub-dev
* commit '1461b8e9a0573442d8259c5035025e847cb511d7':
  Fixing a crash introduced by my previous CL.
2015-07-10 01:31:11 +00:00
Vadim Tryshev
1461b8e9a0 Merge "Fixing a crash introduced by my previous CL." into lmp-mr1-ub-dev 2015-07-09 22:39:18 +00:00
Benjamin Weiss
f3b07d469e am c84455c1: Introduce sample for RoundedBitmapDrawable
* commit 'c84455c11fdace9bc5c82aae99318bd9cd2480fa':
  Introduce sample for RoundedBitmapDrawable
2015-07-07 15:58:31 +00:00
Benjamin Weiss
c84455c11f Introduce sample for RoundedBitmapDrawable
Shows how to set an image to circular using
the setCircular API.

Change-Id: Ic65b9feb74942b6bd1c9debcf88fad5935df6d67
2015-07-07 11:49:45 +01:00
Makoto Onuki
e31d4f4948 Use Android Studio project, also call TelephonyManager.getLine1Number().
Bug 22031904

Change-Id: I6e4615c9e130b77d45c92b5b903f7995521a95a7
2015-06-29 14:53:14 -07:00
Vadim Tryshev
218d64bd51 Fixing a crash introduced by my previous CL.
I didn't notice that method deleteItem(View) is used via reflection.
Restoring its (unused) parameter, which is needed for reflection,
but keeping a better name deleteSelectedItems.

Actually, we have a problem that click handlers like this one are also
used as helper methods for other handlers, where View parameter is
unnecessary, but I don't think it's worth fixing, so let's pass View and
not use it.

Bug: 21643257
Change-Id: Ibc0cd919706156ddc00890f322e51cb0774bc26b
2015-06-29 13:27:24 -07:00
Vadim Tryshev
3823d992ee am 43774e87: Eliminating AnimatedRecyclerView demo crashes.
* commit '43774e878dd1ea72eab77bf46d9c01b6deae8ce3':
  Eliminating AnimatedRecyclerView demo crashes.
2015-06-27 01:42:18 +00:00
Vadim Tryshev
43774e878d Eliminating AnimatedRecyclerView demo crashes.
Also, some minimal cleanup.

Bug: 21643257
Change-Id: I956d8fd63b1e51b03e215ac3434ff7c73c0bdce3
2015-06-26 18:29:17 -07:00
Dake Gu
5c79773336 am b0d646c8: SupportLenabackDemo: Make StepFragment public
* commit 'b0d646c83364fb0b43d1b42db52afb81fcfdf1c3':
  SupportLenabackDemo: Make StepFragment public
2015-06-24 22:33:53 +00:00
Dake Gu
b0d646c833 SupportLenabackDemo: Make StepFragment public
If for any reason e.g. BrowseActivty crash or rotate screen on phone,
system needs a public empty parameter constructor to restore
fragment stack.

Change-Id: I4c001b4b95a1958ff7f2cb42688582c8261a71e0
2015-06-24 15:07:03 -07:00
Chris Wren
b6ba3c5f64 remove setLatestEventInfo from API samples
Bug: 18510449
Change-Id: I26a9dbc6c92b226e28798e5a348c9357c85405ab
2015-06-11 16:51:44 -04:00
Chris Banes
28701d108d Revert "Tinted icons sample"
This reverts commit 8e7ff4c3f2.

Change-Id: I011cc2afc4de0a572f42faaa4b19b90ba661140c
2015-06-11 08:32:41 +00:00
Vladislav Kaznacheev
d18f135ae2 am d57a9edb: Adding AsyncListUtilActivity to Support7Demo
* commit 'd57a9edb663615b84ac7467328619e5801053787':
  Adding AsyncListUtilActivity to Support7Demo
2015-06-11 01:34:11 +00:00
Vladislav Kaznacheev
d57a9edb66 Adding AsyncListUtilActivity to Support7Demo
Bug: 20180767
Change-Id: Ib097e3aa0f4fa9179b6bfd743fa43b584e7860ce
2015-06-10 15:13:07 -07:00
Jeff Brown
86cd5e82b9 Expand Presentation demo to test 4K mode switches.
Bug: 18241736
Change-Id: I5bedb656696bc3dfc756df35dd326ff3524152c1
2015-06-09 19:52:17 -07:00
Yuichi Araki
052cdd1e7b am 16283511: Remove unnecessary code
* commit '16283511f2bb94f00f8acee2069bbe30e100d1d6':
  Remove unnecessary code
2015-06-09 23:09:57 +00:00
James Cook
3a7f265938 Merge "Add more text samples to ApiDemos, move to Views/Text" into mnc-dev 2015-06-08 20:08:34 +00:00
Yuichi Araki
16283511f2 Remove unnecessary code
The checked status is now automatically handled by NavigationView.

Change-Id: Id2a4670d3313d40875040472e0b3b81ce8f7d60e
2015-06-08 20:04:07 +09:00
Yuichi Araki
bb348e0e22 am 3cd44d43: NavigationViewUsage saves its state on rotation
* commit '3cd44d4399571220c03673b3a546bdb04f3b47a5':
  NavigationViewUsage saves its state on rotation
2015-06-02 09:44:34 +00:00
Yuichi Araki
3cd44d4399 NavigationViewUsage saves its state on rotation
Also changes it to use app:menu instead of inflating the menu in Java.

Change-Id: I140fb042c8ea77b5a7c889abf50a1a7926e2dc8b
2015-06-02 16:42:06 +09:00
Alan Viverette
75f0029e5f More seek bars in ApiDemos
Change-Id: I4a868da4ebfd527609d9983d5236d89624c2c011
2015-05-29 16:24:22 -07:00
James Cook
6a57fe0646 Add more text samples to ApiDemos, move to Views/Text
There are many more variants of TextView and EditText than are shown
in Views/Controls. Add new pages with some of the variants and move
all the text examples to Views/Text.

Bug: 21518721
Change-Id: Ie839e9c964d019ffbe8be2170e124276b087916d
2015-05-29 14:50:40 -07:00
Trevor Johns
bb51e9c874 Increment LMP MR1 Samples package to v6 (DO NOT MERGE)
Change-Id: Ia0765f9f93933e1d9ab37ae7c66d67b789bae9b3
(cherry picked from commit 2a78abbf57)
2015-05-28 14:11:46 -07:00
Trevor Johns
68932e395b Increment MNC SDK Samples to v2 (DO NOT MERGE)
Change-Id: I9d868f7b642370d074dc9b1c0307b89376d9703e
2015-05-28 11:35:10 -07:00
Trevor Johns
296083e2fc Sync sample prebuilts for mnc-dev
Synced with /developers/samples/android commit
415e5ce8ad7128bed20c28e923f2f91bbfff46a9.

Change-Id: I8716d051213210ec991fb692f79848a9f086a52c
2015-05-27 13:34:35 -07:00
Makoto Onuki
c75eb5eeed Merge "Rename the appengine server app ID" into mnc-dev 2015-05-22 20:59:15 +00:00
Makoto Onuki
83f0e54c28 Rename the appengine server app ID
The app id has changed due to the HRD migration.  The new one got an alias,
so the old clients can still use the original URL,
which is http://samplesyncadapter2.appspot.com.

Bug 19796195

Change-Id: I1c06e6395dcadef6fa0f8ca1bb7b1185633df1f8
2015-05-22 13:58:11 -07:00
Vladislav Kaznacheev
66ca00a6a2 am eda065a4: Merge "Add StaggeredGridLayoutManagerActivity to Support7Demos" into lmp-mr1-ub-dev
* commit 'eda065a4b89d1964e87db8f15b4b586968eba42c':
  Add StaggeredGridLayoutManagerActivity to Support7Demos
2015-05-22 19:03:41 +00:00
Dianne Hackborn
27d827158f Merge "Fix service samples, especially remote services." into mnc-dev 2015-05-22 18:57:15 +00:00
Vladislav Kaznacheev
eda065a4b8 Merge "Add StaggeredGridLayoutManagerActivity to Support7Demos" into lmp-mr1-ub-dev 2015-05-22 18:53:15 +00:00
Dianne Hackborn
57f208bd11 Fix service samples, especially remote services.
Change-Id: I02c761f24ffddc1108b2c032f1820eac19ed2c05
2015-05-22 11:53:05 -07:00
Deepanshu Gupta
7282625e69 am f188f7e1: Add default application theme to SupportDesignDemo.
* commit 'f188f7e1a0b6b08ddd005c5b2af081dd647bbebb':
  Add default application theme to SupportDesignDemo.
2015-05-22 01:50:38 +00:00
Trevor Johns
ad6fba5d90 am 70e3ba7e: am 3b5ca695: am 48b7225a: Sync sample prebuilts
* commit '70e3ba7e5706e3477df68bfcfbd3c9787b427316':
  Sync sample prebuilts
2015-05-22 01:49:12 +00:00