Commit Graph

52 Commits

Author SHA1 Message Date
Yigit Boyar
e70d01bbf5 Add color picker to cardview demo
Bug: 17668891
Change-Id: Id54bae8e37ffb4d1f077ca4ef9a721766277c02e
2014-10-14 12:31:08 -07:00
Chris Banes
cb838606af Merge "Update Support7Demos for L appcompat" into lmp-mr1-dev 2014-10-03 08:37:00 +00:00
Yigit Boyar
52af255018 Don't layout removed scrap views
This CL also changes the addView logic in demo LM. Previously, removed
views were not added. Now, RV takes care of this so LM can simply add them.

Bug: 17783492
Change-Id: I375405ef888fd43f9da0e1a1c13ae54bae381b44
2014-10-02 17:43:03 +00:00
Chris Banes
cbeaa03cb8 Update Support7Demos for L appcompat
New Toolbar samples along with some improvements
for the other Action Bar activities.

Change-Id: I28dca1bd86ea4c269b711f4d10283e71384a33ac
2014-10-02 10:08:24 +01:00
Yigit Boyar
98f71019b1 SupportV7 Navigation Bar Demo
Change-Id: I4347762a621a887ccac03372071abac5b56b52f3
2014-08-29 15:31:39 -07:00
Yigit Boyar
4d101ac303 Add grid manager demo to Support7Demo app
Change-Id: Ie90a4e2be35db1500adcf8e358b3d9d8fccc68b2
2014-08-07 12:46:06 -07:00
Yigit Boyar
eb785dc7f3 Add elevation settings to cardview demo app
Bug: 16501750
Change-Id: I831f191c8db1864ba2f1dfa3af9ffbe4005b2e0c
2014-07-30 13:29:01 -07:00
Yigit Boyar
cc33d7ec0f Update divider item decorator to account for view translation
Bug: 16241985
Change-Id: Id441a07fe547493007e9e05d1039bac526847a1c
2014-07-17 16:37:21 -07:00
Chet Haase
73244273b9 Add RecyclerView animations for change actions
Issue #15691746 RecyclerView item animations for changed/resizing item views

Change-Id: Ibe735eefa704189d17f63406de941d76282e9272
2014-07-10 07:46:18 -07:00
Chris Banes
170658dd69 Update Support7Demos to include Palette demos
Change-Id: Iff13ca1a2551e54a98c655955654cf8be5930d0b
2014-07-08 09:20:06 +01:00
Yigit Boyar
c77710e3eb Remove calls to LM.getItemCount in demos.
Bug: 15410611
Change-Id: Ie31616f792501f29fbb9e68f742563fbb1cde0ca
2014-06-12 15:58:16 -07:00
Chet Haase
2d719d6c71 AnimatedRecyclerActivity demo supports simpler RV item animations
Add logic to AnimatedRecyclerActivity to allow it to opt into, or out of,
predictive item animations in RecyclerView.

Issue #15542012 Simplify RecyclerView animations

Change-Id: Ibb089a98c4d465730cfbff2a9dec369e28feff82
2014-06-10 12:35:41 -07:00
Yigit Boyar
1d6673588c Remove deprecated RecyclerView methods
Change-Id: If9b0aca85221d64dbbb5cda75f985a91de6c67d2
(cherry picked from commit 67bdb44d98)
2014-05-29 17:53:37 +00:00
Yigit Boyar
b5de9c7b9d Added CardView demo to SupportV7 demo app
Change-Id: Ie1b81426dc67c67766eb20fb8f1fc984d25a42cf
2014-05-27 18:32:53 -07:00
Chet Haase
3b3ab0e040 Add demo for animating RecyclerView actions
Change-Id: Ie076db6646cf734706fe2ea8659ee57f3a7742e9
2014-05-17 15:21:44 +00:00
Chet Haase
abbe7bd1e0 Revert "Add demo for animating RecyclerView actions"
This reverts commit 828b2aa2f4.

Change-Id: I0f773b5c42530cad924e454dc816ddc372db95f7
2014-05-15 00:01:07 +00:00
Chet Haase
828b2aa2f4 Add demo for animating RecyclerView actions
Change-Id: Ieb14cfb627663f507c24205d697347a1da389094
2014-05-14 14:01:18 -07:00
Yigit Boyar
c270d6d8ba Updated recycler view demo with smooth scrolling
Change-Id: I039d10a0e707e05dd4c5ce37344f4ecc80d00880
2014-05-02 13:08:21 -07:00
Yigit Boyar
7cbaf60e92 LinearLayoutManager examples
Added a new activity to Support7Demos to showcase LinearLayoutManager.
Extracted helper classes from RecycleViewActivity so that they can be used in other examples.

Change-Id: Id00325afee00eefd259f688e65d6124e23d6eb83
2014-03-27 15:51:53 -07:00
Adam Powell
c12c207351 Update RecyclerView sample to show use of ItemDecoration
Add dividers between list items. These modify the space allocated for
each item.

Change-Id: I995a172ed0b6acef6b84faaa50c02f0ae8db1002
2014-03-13 09:40:35 -07:00
Adam Powell
ff08b2c10c Update Support7Demos for RecyclerView API change
LayoutManager#layoutChildren updates as well as onCreate/onBind
changes for adapters

Change-Id: I9cd1940dac8d3fd60d9219a87ae5b05c609346d6
2014-02-21 18:39:54 -08:00
Adam Powell
8c433780af Update Support7Demos for new RecyclerView additions
Use item range changes instead of full adapter updates

Change-Id: Ia796bdb5138f4762b3fe325da3e5bf02e31042d4
2014-02-13 11:43:26 -08:00
Adam Powell
b9767caa95 Updated Support7Demos to follow RecyclerView API changes
Move off of deprecated RecyclerView API to illustrate preferred
practices.

Change-Id: I6d2b6450bbb29c55090802b2ccafab6661036dcb
2014-01-28 18:51:11 -08:00
Adam Powell
35421b1229 Follow RecyclerView API changes
Change-Id: Ic273cc51cc9d7096a7a0d8b5f90accd5986e275a
2014-01-23 16:11:09 -08:00
Adam Powell
ebea7fc21e Update sample for RecyclerView
Fix some issues around relayout. Add data set changes and cheese.

Change-Id: Ie3651fa16f2eadd0bf1b168b95509172fcf425fe
2014-01-22 10:50:21 -08:00
Adam Powell
544a42f00f Example activity for RecyclerView
Also includes a very basic custom RecyclerView LayoutManager.

Change-Id: Ic6dca39a4e71dbe8b3b82965299bc554fad18a43
2013-12-19 22:17:33 +00:00
Chong Zhang
c1eb23062b Add sample code to customize the MediaRouteControllerDialog
Bug: 11320487
Change-Id: I365c93173a74e99c63d919d2852690eed174d3b3
2013-11-05 09:53:24 -08:00
Chong Zhang
fd6d06a19c mrp sample: refactor and use helper class
Bug: 10955351

Change-Id: Ib607d27bc93a35460c6acd295d29afad3f255e25
2013-10-21 16:36:15 -07:00
Jeff Brown
6a81c4be16 Fix NPE in sample code.
Change-Id: I61b348192cd39813027ae5b4d2cedb2e84b701f1
2013-10-21 11:23:24 -07:00
Jeff Brown
5d3d35ee89 Always register the RCC even for local playback.
Change-Id: I6f2ca31b746f9f53ef9aa6edb674514979ad1893
2013-09-28 00:52:07 +00:00
Chong Zhang
184f79db44 Support7Demo: fix video playback on GB
Change-Id: I2d403832d82428746dd3ccdbe0cfd56315d72ed9
(cherry picked from commit dbcc746cb0d727ac9aed60bb4156b3bf9f4668aa)
2013-08-26 16:25:45 +00:00
Jeff Brown
9299c6cdd8 Ensure sample runs on Gingerbread. (DO NOT MERGE)
Unfortunately, the video does not play due to a MediaPlayer
exception but at least this version does not crash.

Change-Id: I0baf9239a8a12f92b4805bab226f21f46fa63693
(cherry picked from commit 854e16afda)
2013-08-23 03:23:46 +00:00
Chong Zhang
620b29a566 media router sample: handle remote volume change
Change-Id: Ie31c24d80b0ae74d68e3ff6f6098d4f0219c391d
(cherry picked from commit 4917691795)
2013-08-14 19:58:57 +00:00
Jeff Brown
5f4e7a104b Merge "Support7Demos: media router sample" into jb-mr2-ub-dev 2013-08-02 23:36:17 +00:00
Chong Zhang
036c81a9d2 Support7Demos: media router sample
Change-Id: Ie2a6a98cd256caae84f76dd398f9113f07cd4dd3
(cherry picked from commit ba708c7f49)
2013-08-02 12:46:30 -07:00
Chris Banes
fe17cee4e4 Fix ActionBarUsage in Support7Demos
It was using SearchViewCompat and causing an FC

Change-Id: Ib69a6d68b29cc9669a6595bdd75b5369458f561b
2013-07-26 10:15:07 +01:00
Jeff Brown
972588aba0 Redefine content position in milliseconds instead of seconds.
Made a note to update some other parts of the sample that need
to be fixed after other recent API changes.

Bug: 9380827
Change-Id: I23ccfa9ab434d4c7661ae379b77fa95e128513eb
2013-06-11 18:51:17 -07:00
Jeff Brown
fad7c428e1 Update media router api.
Bug: 9380827
Change-Id: I74b5d5150336be95bd66bab35be8837c9cdf49de
2013-06-11 00:55:32 -07:00
Jeff Brown
998bd1138a Update media router API.
Bug: 9210033
Change-Id: I11a3bb3691096cdea60823d92245cbf86770f23b
2013-05-30 19:23:15 -07:00
Chris Banes
247fe6d499 Remove Toggle System UI options from Support7Demos
As system ui visibility can not be reliably controlled
at the moment for <v11. Remove this from the demo.

Bug: 8910792.

Change-Id: Id55f8ae57c0961130c2ad2ab7a5b97cc43e36883
Signed-off-by: Chris Banes <chrisbanes@google.com>
2013-05-25 13:27:28 +01:00
Jeff Brown
ff342b425c Update media router API.
Bug: 8175766
Change-Id: Ib93572738b912530e96f8772bf7961af4b57c0c7
2013-05-20 16:55:24 -07:00
Jeff Brown
8b25a68775 Update media router API.
Bug: 8175766
Change-Id: Id6f895e3c6339eee83cb616816dab8f77f5b54ce
2013-05-16 14:41:03 -07:00
Jeff Brown
5d41beb706 Update media router API.
Bug: 8175766
Change-Id: Ie780c6c6309d111019ddf7ba37612c09242b923e
2013-05-13 16:59:32 -07:00
Chris Banes
8942438f38 Update Support7Demos for MenuInflater change:
I7a4504aeae2795e8d9d6f4cd4ecd20b8d4ea7602

Change-Id: I4896483669c877f3d8ed05a81d789750b39ab32d
Signed-off-by: Chris Banes <chrisbanes@google.com>
2013-04-30 12:07:57 +01:00
Adam Powell
04c8633dee Update Support7Demos for action bar compat API changes.
Change-Id: I61914ff777a0eada9525db6fad7d53c97303eb36
2013-04-29 17:38:23 -07:00
Jeff Brown
e14dfaf571 appcompat: Add samples for options menu usage with fragments.
Bug: 8661191
Change-Id: I3664f00c09d81c01b904f8c5203a69a12180c565
2013-04-18 23:38:33 -07:00
Jeff Brown
84dc1f05b7 Update media router API.
Bug: 8175766
Change-Id: I28aeb92851caba332774664e71041c2cfdf9605e
2013-04-11 20:38:34 -07:00
Jeff Brown
e808a4b6b2 Update after API refactoring.
Bug: 8175766
Change-Id: Ibcd86fbfb54c44d9a14e79fcd760991c48c5b2ad
2013-04-02 20:00:55 -07:00
Jeff Brown
fbe0890bb4 Rename methods of RouteController.
Add basic support for returning stream ids.

Change-Id: Iaa11980e6195e23bd598075cb066c6234f000198
2013-03-22 19:46:23 -07:00
Jeff Brown
84e6be0c69 Add action bar support library samples.
These samples are simply ported from the ApiDemos package
with package names updated to use the support library
implementation instead.

Bug: 8175766
Change-Id: Idfa35708d4db65a201a20c3726bb18663c2c0a81
2013-03-20 18:20:18 -07:00