130dbe99821ae2ab77511f7e08ed79eb610de343 |
|
14-Sep-2015 |
Dake Gu <dake@google.com> |
Fix ItemBridgeAdapter NPE Bug 23974032 Change-Id: I37df73a76c2524b8d038e3517e3f58127c31bf21
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/ItemBridgeAdapter.java
|
08c56822b71ab0aa0b9bb03e5fd45e28f6e358b8 |
|
28-Apr-2015 |
Dake Gu <dake@google.com> |
Revert "Revert "Support multiple alignment within one ViewHolder"" This reverts commit bc0edc3ab9bac3c8d7d3cc9de1cb499ea3b4155e. Change-Id: I1f9540e54fdee874adf7239a0ead1fb5447f2610
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/ItemBridgeAdapter.java
|
bc0edc3ab9bac3c8d7d3cc9de1cb499ea3b4155e |
|
27-Apr-2015 |
Dake Gu <dake@google.com> |
Revert "Support multiple alignment within one ViewHolder" This reverts commit 86a6309c3e89ec6abc40ec045bfaef7827cbe427. Change-Id: I3385d74766e948566b7321cbe2afcf31a66282c1
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/ItemBridgeAdapter.java
|
86a6309c3e89ec6abc40ec045bfaef7827cbe427 |
|
07-Apr-2015 |
Dake Gu <dake@google.com> |
Support multiple alignment within one ViewHolder Add support of align to multiple positions within one ViewHolder of Grid View. Introduce "FacetProvider" inteface for optional features to be implemented without requiring an object must implement a java interface. Benefit is less impact on the major feature of a class, make the extra optional features loosely coupled with existing class. (And it is the only way for ItemBridgeAdapter to provide a list of optional features that are implemented by some Presenters but not others) Add a new ItemAlignmentFacet class to describe multiple alignment positions. Grid view gets optional ItemAlignmentFacet from RecyclerView.ViewHolder(rare) or RecyclerView.Adapter for a given view type. If the facet exists, it's used to calculate multiple alignment positions within this ViewHolder. At high level, for apps that using Presenter, they don't directly use RecyclerView.ViewHolder or RecyclerView.Adapter. apps put Facet in Presenter (most cases) or a ViewHolder(rare cases). For example in the new detail page design, DetailsOverviewRowPresenter will need this facet(TODO), ItemBridgeAdapter is responsible to "bridge" facet from Presenter. In the future, Facet may be used to customize child view state saving. Bug: 20094419 Change-Id: Iabef94e46f9a304ffd68e49bed10e74a57dfe4ce
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/ItemBridgeAdapter.java
|
a00bada00bff4a58436a39472ab14ccb7a8f619d |
|
31-Mar-2015 |
Craig Stout <cstout@google.com> |
Javadoc polish. Includes new package level javadoc for: android.support.v17.leanback android.support.v17.leanback.app android.support.v17.leanback.widget b/19007191 Change-Id: Id1e5d55eabbf37c0420e6e4c73abe3d4f1aabee1
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/ItemBridgeAdapter.java
|
71fddded48048acfa744ac352166770c91a1c2b1 |
|
03-Feb-2015 |
Dake Gu <dake@google.com> |
Refactoring: don't use AdapterListener in presenters Embedding presenter core logic in AdapterListenr is improper. Move the logic into overridable methods ItemBridgeAdapter.onXXXX(). This can allow high level fragment or app to use adapter listener. Change-Id: I933e1965f27ec2c856c2f647c8876ae72df26f07
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/ItemBridgeAdapter.java
|
46e7de54775fc37dc51041629c79249e6dae3242 |
|
05-Sep-2014 |
Dake Gu <dake@google.com> |
Leanback: Dim unselected grid item Also hide FocusHighlight interface from doc. b/17388123 Change-Id: I2501e8e501b6ab75570e11356413cf87fdc46d9f
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/ItemBridgeAdapter.java
|
76c3b90228d8c4afc6d24c683e9c95f41ae619c9 |
|
04-Jun-2014 |
Jerome Poichet <jpoichet@google.com> |
Removing ununsed imports Change-Id: Id398857ca752b9ac612d0e596da1cce58e6e3a6f
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/ItemBridgeAdapter.java
|
9de682083d3da5b1127969ee1fd7b74561aa9acd |
|
02-Jun-2014 |
Craig Stout <cstout@google.com> |
Fix view recycling. GridLayoutManager must recycle existing views when rebound. ItemBridgeAdapter must track view types globally. Increase the max recycle pool size (defaults to 5). b/15291691 Change-Id: I861da37f39e1a35d1d7bd38579269b814b736234
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/ItemBridgeAdapter.java
|
739e3805bf2785e6773aede5e2e1643f537305f9 |
|
07-Apr-2014 |
Craig Stout <cstout@google.com> |
Add a VerticalGridFragment. Change-Id: I35476263c52d1fef09036bbe9339c945de2f339c
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/ItemBridgeAdapter.java
|
892181367d658f347d00ea5e091aa31f086b2a20 |
|
04-Apr-2014 |
Dake Gu <dake@google.com> |
implement a default shadow on browse row card in a non-intrusive way. Automatically create a wrapper layout that wraps the view created by Presenter and adding shadows, color overlay. Change-Id: I34f4c508c01d7d3c1710e455ec0edd600735d278
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/ItemBridgeAdapter.java
|
62d36d44e03a3dd0632b156615b04563c62e83c1 |
|
02-Apr-2014 |
Dake Gu <dake@google.com> |
fix NPE when unfocused item is detached from recyclerView in layoutChildren() Avoids calling view.getParent().getChildViewHolder(view) for detached unfocused view, the viewHolder is no longer needed by FocusHighlight. b/13749349 Change-Id: I9fd9d8cd116cc537262f4bcf4401a6bed3404e48
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/ItemBridgeAdapter.java
|
462e3ba37ddd32afb7434ec0a217af335f49b9a6 |
|
25-Mar-2014 |
Dake Gu <dake@google.com> |
fix IllegalStateException for calling setHasStableIds multiple times Change-Id: I1e3013c031eb8e8ba4b727e0dbf25703eab5aec9
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/ItemBridgeAdapter.java
|
cf94c5fa8ae8edb7e26a623133207415ceeed187 |
|
20-Mar-2014 |
Dake Gu <dake@google.com> |
add support of row select animation Row select animation is controlled in RowContainerFragment that is not recommended to override. Developer can override the default dim effect either as a subclass of RowPresenter or subclass of ListRowPresenter. We also provide helper classes: ColorFilterDimmer and ColorOverlayDimmer that developers might use for their own dim effect. Change-Id: I1982aa193ccf04be557187a6338feefbd675710a
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/ItemBridgeAdapter.java
|
8b068ddbbf22a246eab49ec25a2f7c3abfbdca51 |
|
16-Mar-2014 |
Tim Kilbourn <tkilbourn@google.com> |
Add a .readme file to be copied into the sdk src. This allows the project resources to be built by ant/eclipse. Also moved default source code dir to src instead of java/src. Change-Id: I9e5002fbbfb96b98be772c1ec6653322d5563b56
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/ItemBridgeAdapter.java
|