History log of /frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/ImageCardView.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
10c27646c1a19989f824a44ecd5dec2663db048d 19-Dec-2015 Dake Gu <dake@google.com> leanback: Dont use widget style in ContextThemeWrapper

This removes few attributes from ImageCardView widget and add few
attributes in Theme to select style for sub components.

Bug 26249596

Change-Id: Ib90c05f9471878be896121963019ddc6c05de5f2
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/ImageCardView.java
69d050a8f2cb15e48185a413327feb4fb0e7a1ac 06-Aug-2015 Dake Gu <dake@google.com> Dont change android:background in ContextThemeWrapper

ImageCardView needs a ContextThemeWrapper to create its children.
The child ImageView is used in activity transition. GhostView
creates a full screen FrameLayout using ImageView's context, which is a
ContextThemeWrapper created by ImageCardView. So the FrameLayout
accidentally inherits a background same as the ContextThemeWrapper.

While we can fix GhostView in MNC, to make it work before MNC:
use a different attribute name other than "android:background".

Similarly defines attribute for card foreground.
Move cardForeground and cardBackground default settings to base card view.

Bug: 22988113

Change-Id: I8b30c6e8730e2379b29827fe8970f1d72e45ac1f
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/ImageCardView.java
459e0eacc1c547f272bc8b897dd3cfb44243c06a 04-Aug-2015 Robert Hahn <hahnr@google.com> Fixed focus bug in new ImageCardView

b/22955551
ImageCardViewStyle had focusable defined
in style which caused all it's children
to also get set focusable=true. Thus the
VerticalGridFragment didn't know what to
set focused or not. The ImageCardView is
not set focusable in code.

Change-Id: Id8c427d86042a24d0f8c88b7adc04fb997108e6e
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/ImageCardView.java
df805b881bdb8794a068a482038df8176dd4ac4a 17-Jul-2015 Robert Hahn <hahnr@google.com> Leanback: Support for styling ImageCardView through XML

Bug: 16635577

ImageCardView can be styled by using the global Theme
attribute 'imageCardViewStyle' or specifying a style
when using the ImageCardView in a layout, or by using
the newly introduced constructor which takes a
styleResourceId as second argument. The styling allows
to specify what components the ImageCardView is using
such that only necessary Views are created and we are
able to reduce the overhead of creating unnecessary
Views.

Change-Id: I62733dad6e0460d6a303565c3386440cb02c78b8
1b5af565a8957e16f587a415fb8795bca249eb58 16-Jun-2015 Dake Gu <dake@google.com> am 048454a7: Merge "Leanback: fix fading mask and make ImageCardView up to spec" into lmp-mr1-ub-dev

* commit '048454a762e769ee6439cd2c12d791776a7cc4bd':
Leanback: fix fading mask and make ImageCardView up to spec
cb933aeb5c89f168f604bf081d6f8f4fdde6534f 12-Jun-2015 Dake Gu <dake@google.com> Leanback: fix fading mask and make ImageCardView up to spec

No longer need a fading mask per ux.

Adjusted padding, size, color up to date.

remove redundant FrameLayout.

Remove the code that change visibility based on content.
All the cards on same row should have same height, regardless
their content. Haven't yet decided how to provide a two
textviews customization.

b/21662705

Change-Id: I8c435bb12a3ee8344f463a4975a2af4c5f14f516
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/ImageCardView.java
0670f090a011e864bd726784c2a85333bf2ae7fb 02-Apr-2015 Craig Stout <cstout@google.com> Merge commit '870246af'

Change-Id: Ia2e3cc2d15ff6b3d3b88a3f1a6e822374df67bd7
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/ImageCardView.java
70acb0c19be3831a2080e4f902324de16bfbf62e 04-Mar-2015 Tor Norbye <tnorbye@google.com> Annotate support library with @ColorInt, @CallSuper, etc

Change-Id: Ifa25a628f89a07d3903cd71eb1c3639297fdf722
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/ImageCardView.java
07a94289970bb0badbd427b40eca97131638874d 19-Dec-2014 Craig Stout <cstout@google.com> Improve view recycling.

Don't start fade in until view is attached, otherwise views bound during
the leanback measure phase aren't recycled.

Don't start animation immediately when attached because the framework will
double count the child having transient state.

b/18742856

Change-Id: I21a0bde9a501454d1bbe244c49b2fd3fbdeaa120
(cherry picked from commit 89589687d8aafcfdc11d9760205e9d0b16505201)
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/ImageCardView.java
89589687d8aafcfdc11d9760205e9d0b16505201 19-Dec-2014 Craig Stout <cstout@google.com> Improve view recycling.

Don't start fade in until view is attached, otherwise views bound during
the leanback measure phase aren't recycled.

Don't start animation immediately when attached because the framework will
double count the child having transient state.

b/18742856

Change-Id: I21a0bde9a501454d1bbe244c49b2fd3fbdeaa120
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/ImageCardView.java
ceb7ab2ddd6e157cd4ade0f14a382c39428163c4 15-Sep-2014 Dake Gu <dake@google.com> Fix performance of hero transition

Use hasOverlappingRendering false for action list
details description frame and ImageCardView.

TODO for transition: Ideally ImageCardView should hasOverlappingRendering
and transition should create hardware layer for fade animation.

b/17499864

Change-Id: I4c4437c7e1ac19051ab939bea2ee0b2119d03090
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/ImageCardView.java
5358b0ca6ed795892bd097fdf15d41fb6b1a03d2 03-Sep-2014 Craig Stout <cstout@google.com> Fix memory leak when fast scrolling rows.

If a presenter starts a view property animation, then the parent row view
will have transient state which may cause a row to fail to be recycled
during a fast scroll, because RecyclerView checks transient state and
refuses to recycle a view if it or its children has running view property
animation.

This can cause a memory leak because ObjectAdapters have references to
ItemBridgeAdapters via the registered observer mechanism.

Apps should clear any view property animations in Presenter
onViewDetachedFromWindow, but in case they don't we'll do it for them in
the base class.

b/17013302

Change-Id: Ibdf5998e81dd130128f88f85d88243ec27a70dd5
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/ImageCardView.java
ae2614fe4c86c79344dc7dcb07777143b2fbd0d6 07-Aug-2014 Dake Gu <dake@google.com> ImageCardView: add methods for change info area background

b/15704903

Change-Id: I113c7be0b5b425371b536dfe252be21bc9e83aae
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/ImageCardView.java
932feed83c3dbc49c9855a1736afd9d5a3428b8e 04-Aug-2014 Dake Gu <dake@google.com> ImageCardView: add method to set drawable without animation

b/16790928

Change-Id: I4e248c09edd90617bf4d4fba60765ff3e15e960a
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/ImageCardView.java
9de363b8db05106b03d115c266859fe200d41db7 09-May-2014 Dake Gu <dake@google.com> Preparing for transition

In order to make transition work, user needs
to get current clicked view, added view parameter
in all our listeners and deprecated old version.

add methods to access imageview of cardview.

Change-Id: Ibccfae4bf13c623047475f2147a685b10e44c278
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/ImageCardView.java
961a8f12d1fbeeb86ea066f9f2c693abb2ce50f2 12-Jun-2014 Tim Kilbourn <tkilbourn@google.com> Update leanback javadoc.

Bug: 15149629
Change-Id: Ib3977c497f1fc0fd2a9cc8527347a85e8f1e8d40
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/ImageCardView.java
b6e24f60743bd2022dd496126f0ff683ff6b3713 18-Apr-2014 Andrew Wilson <anwilson@google.com> Fade in images that are loaded. Allow setting of image dimensions. Allow titles to wrap if no description.

Change-Id: I4287d9bfac10ef5457a9f3ee76c8de0b3375ba5b
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/ImageCardView.java
b55f0880c367c0b7e4132e7d954b60725e01e0b2 05-Apr-2014 Tim Kilbourn <tkilbourn@google.com> BaseCardView and ImageCardView for leanback library.

A BaseCardView defines regions that can be displayed based on view state
changes on the layout. Three regions are defined: main, info, and extra,
and info and extra regions may become visible when the layout becomes
either activated or selected. Info must appear before or at the same
time as extra.

ImageCardView is a widget based on BaseCardView, defining a simple card
widget with a main image, a title, and a content string. Optionally the
card may also contain a small image badge. The text and badge are
contained in the info region, and there is no extra section.

Change-Id: I0cc497a7eaf434da3633ff307ab10d730731bbed
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/ImageCardView.java