History log of /frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/GuidedActionsStylist.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
cb60a4567ebaf69b87395764e8744fbaee408a09 25-Apr-2016 Dake Gu <dake@google.com> GuidedStepFragment: no longer slide content on IME open

Since key line offset was moved to above center of screen.

Bug 28381660

Change-Id: I89e552d15b58d3864b7d8b05e8c5a21f6453139e
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/GuidedActionsStylist.java
009c666bbd09f54e9a7a5786d22bfd3135117277 22-Apr-2016 Susnata Basak <susnata@google.com> Merge "Fixing styling issue with GuidedStepFragment." into nyc-dev
50c611b216a4b2c8eb2bbd2a2848bb6da34677be 21-Apr-2016 susnata <susnata@google.com> Fixing styling issue with GuidedStepFragment.

Change-Id: Ia2780de5c44925872d9d5a0996dd99caefdfece1
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/GuidedActionsStylist.java
16ab389e0bd11594059f8164a1477045ee625154 20-Apr-2016 Dake Gu <dake@google.com> Leanback: Add onGuidedActionCanceled

onGuidedActionEdited() was called for the cancel case and confirm case,
which was very confusing.
Now deprecate this method and introduce onGuidedActionCanceled() method.

Bug 28279231

Change-Id: I000491611b78a7aaba11ed61a5196ac34d7babd6
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/GuidedActionsStylist.java
015eaf265571c84b5d37311f58bc69b2eb4af8d4 30-Mar-2016 Dake Gu <dake@google.com> Fix GudiedStep GridView focus 2nd try

Setting focusable in style/layout doesn't work for RecylerView,
so set the attribute in GuidedActionsStyleList.

Making grid view not focusable causing another issue: in Fragmet
to Fragment transition, fragment.onResume() does not have any item
view in the action list yet. So actionlist.requestFocus() gets
ignored. Fixing this by declaring focusableViewAvailable() when
RecylerView layout pass added focusable children.

Bug 27886380

Change-Id: Ic95db8fb60d6e6c309f5a8d45642dbe0505d457b
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/GuidedActionsStylist.java
b2121d7935303972c0d515c29b9771c74311c8ba 05-Mar-2016 Keyvan Amiri <keyvana@google.com> DO NOT MERGE ANYWHERE Leanback Support Library: Fixed issue with GuidedStepFragment actions
disappearing after an action is collapsed

The recycler view, by default, prunes children of mActionsGridView
when they were pushed off of the screen after expanding actions.
Fixed that by disabling the pruning behavior before an action
is expanded (after the first click on an action),
and enabling it back after the action is collapsed
(after the second click on that same action).

Bug: 27482284
Change-Id: Ibf0ba8c3bae271059e6bea0202fefe9b16acc867
(cherry picked from commit 0740d73b910f78f4ee33db9bdee0b4d5a0aa20f6)
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/GuidedActionsStylist.java
ed6ddac644df9949403f1a01e1224a37cb568feb 20-Feb-2016 Dake Gu <dake@google.com> GuidedStepFragment item accessibility fix

set VisibleToUser=false is a hack fix, the EditText is visible
to user. Instead, make EditText not clickable and not focusable,
so the EditText will not get a11y focus.

Bug 26692260

Change-Id: I997b899e317f44e6c043df4406619e648fb5998c
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/GuidedActionsStylist.java
942f79291db75ccf6ecd0351d23a444a43dd0501 09-Feb-2016 Dake Gu <dake@google.com> GuidedStep API review change

Added API to set min date and maxDate on GuidedDatePickerAction.
And API changes for Bug 27076166

Change-Id: I32a542fd005688fd9a1dca211e28a51e882ca38f
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/GuidedActionsStylist.java
918306ceb829009d348a749a7a648ba3a727e2c3 04-Feb-2016 Dake Gu <dake@google.com> GuidedAction: Make single line text work

Just setMaxLines(1) is not enough, needs to call setSingleLine(true)

Bug 26349478

Change-Id: Ib648b7cde6009127381a402ae0f5a536ae27fa66
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/GuidedActionsStylist.java
0f96ae4965103bade4bebe7776b2ee35cd603112 26-Jan-2016 Dake Gu <dake@google.com> GuidedStepFragment: made Picker accessibility friendly

Interpreting keys in Picker view does not work with accessibility services.
Talkback 4.4 expects the view to be focusable to drive the UI. The change
makes Picker's child views focusable. Also added new functions to
block focus out of item view when it's activated for editing.

Bug 26725708

Change-Id: I332fe577dffa4fe86a83dfe25e13cb90444d5da3
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/GuidedActionsStylist.java
b6b910bb30da6b2af318e77d0ab2f3575187f7bc 22-Jan-2016 Dake Gu <dake@google.com> GuidedStepFragment: Accessibility of checkable item

Set checkable and checked status of item.

Bug 26729943

Change-Id: I82e652499b527e80ff28503be5baf1f426fbf47d
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/GuidedActionsStylist.java
b88b36aa081a500eb0e9d4be0bac85b33cd57dde 05-Jan-2016 Dake Gu <dake@google.com> Adding datepicker in GuidedStepFragment

Add GuidedDatePickerAction. Added a new VIEW_TYPE_DATE_PICKER in
GuidedActionsStylist to handle GuidedDatePickerAction. The behavior
is abstracted as a "click to activate/deactivate" widget, allowing
subclass to support action other than DatePicker. The transition
shares same code for drop down list (i.e. sub actions).

Fix the generic Builder class problem, passing the concrete Builder
class as generic parameter.

Switch Picker to use standard activated status from a customized
"expanded" attribute.

And API review changes

Bug: 25390757
Bug: 26509683
Bug: 26509387
Bug: 26509381

Change-Id: I35cb5f99a1e81acaa51366cf17b1353180c7a549
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/GuidedActionsStylist.java
6626b899cb2565105f20e4ee2060a5104826d1dd 20-Jan-2016 Dake Gu <dake@google.com> Leanback: Accessiblity navigation fix

1. disable accessiblity focus of header view in the RowsFragment
because the focusfinding model of talkback is not same as leanback,
causing unpreditive manner. Disable it before we figure out how to
customize accessibility focus finder.

2. Fix guided action item's accessibility focus, make TextView not
focusable before it's in editing and disable focusable after TextView
loses focus.

Bug 26692260

Change-Id: I55291ed8db734d592f0e8a7c2ce9afe796cc6fba
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/GuidedActionsStylist.java
023bf7d01378f30a63dce3d0a1112eb56bd6b99f 12-Jan-2016 Dake Gu <dake@google.com> GuidedStepFragment: fix missing Icon

A regression caused by code lost in refactoring.

Bug 26473407

Change-Id: Ie40c13f6b0e9656b0a8b906aac2f094b855b8f01
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/GuidedActionsStylist.java
7a45714d94e3e5566e3879042f7ee2b93eb5c62a 03-Dec-2015 Dake Gu <dake@google.com> GuidedStepFragment: Fix "next icon" direction in RTL

Change-Id: Ia31383635d76373dd0cf5f4cf241b790482ce7cc
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/GuidedActionsStylist.java
fb23f1271e21761bb523948d9ea9c60c42ae7251 03-Dec-2015 Dake Gu <dake@google.com> GuidedStepFragment: Fix bug of sub actions focus

Bug 26007404

Change-Id: Ib02b0cb3b8c92b30e822a7e7bb09e728ee82a473
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/GuidedActionsStylist.java
1db5382081756ee276c1fb88f5ebdbc138b70249 02-Dec-2015 Dake Gu <dake@google.com> GuidedStepFragment: switch to material selector/ripple effect

Use android:attr/selectableItemBackground for highlighting.
Add a customized LinearLayout to support foreground before v23.

Change-Id: Ie7f0448e3782853c20938826560aa137957cec49
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/GuidedActionsStylist.java
1ed9dc77616514e20c51baa67a04adab42e4135e 01-Dec-2015 Dake Gu <dake@google.com> GuidedStepFragment: Support animation of expanding sub actions

Bug 24979518

Change-Id: Ie2d5bf7c25c30db89f6edffd6f71a26e9bca2090
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/GuidedActionsStylist.java
be6eb618b4ba8a74d69fa04c77c717b1fcbea818 20-Nov-2015 Dake Gu <dake@google.com> GuidedStepFragment: support expand/collapse sub actions.

Refactored GuidedActonsStylist.ViewHolder to be subclass of
RecyclerView.ViewHolder, since GuidedActionsStylistis already
assumes running in RecyclerView and adding scroll listener.
There is no benefit of hiding RecyclerView.

Added support to disable focus right / left in actions list
view. We don't allow focus to the side buttons from sub actions.
Also disable focus left so it won't be interpreted by a bottom
BrowseFragment as open fast lane.

Expand/collapse animation is yet to be added.

Bug 24979518

Change-Id: I4309e63347e5b85b746477f988721fd4fca67943
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/GuidedActionsStylist.java
8e5ae27d6db125867640b672cc97d4a158fdfd48 18-Nov-2015 Dake Gu <dake@google.com> GuidedStep: sync selectorView translationY to focused view

Current implementation assumes the focused view stays at fixed Y location.
This is no longer true for expanded actions.

This CL added support to sync selectorView Y position to focused
view Y position. And due to the conflicts of both IME and scroll changes
selector Y position, added common parent for change Y position for IME.

Simplified selectorView animation implementation.

Fixed bug that FadeAndShortSlide resets transitionY to 0.
Fixed a mismatch of transitionName for guidedactions_root2.
Remove unnecessary transition excludes since the views are already part
of shared element transition.

Tested by changing alignment rule of VerticalGridView.

Change-Id: Id9f676e607aa6e3e9fed14e5b2687e4ad0951f45
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/GuidedActionsStylist.java
4705eed4421d3b00923b56062765206dea21387e 13-Nov-2015 Dake Gu <dake@google.com> GuidedStepFragment: Allow app to override Ime Action text

Change-Id: Idcc713472639bacb9767ee6d64de1bf6452b272b
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/GuidedActionsStylist.java
11cb62de8bfc6b5b6d22811ad12a1e60451b82be 11-Nov-2015 Dake Gu <dake@google.com> GuidedStep: support checkbox and use standard android drawable

Introduce a special checkset id for checkbox.

Current implementation uses non-standard View and animation resource for
radio. Switch to use standard android checkbox/radio defined in the
theme.

Bug 25631132

Change-Id: I0c9356a624dfd9b3b2dfc38be2b1dcb3eea125b7
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/GuidedActionsStylist.java
43e10e99e55c1c2eeca31fa13e9cc84160850f59 09-Nov-2015 Dake Gu <dake@google.com> GuidedStepFragment: allow move focus to button action list

Add a GuidedActionAdapterGroup to maintain single ImeOpen flag and
control next focus after editing. This would allow focus move
between different action lists.
Code refactoring moves editing logic from GuidedActionAdapter into
GuidedActionAdapterGroup.

Don't openIME in onKeyUp event, this causes timing issue that onKeyUp
can be fired on a different view of keyDown. Move openIME into onClick
event.

Remove references to Adapter objects and view objects after Fragment
onDestroyView(), fix potential View leaking.

Change-Id: If89a7bf67bd62ff02d3ac2a2c64a1164d3fa76bd
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/GuidedActionsStylist.java
1cf203ef9c991909e6a85455aebdb26de77280a4 07-Nov-2015 Dake Gu <dake@google.com> GuidedStepFragment: fix initial selector view size flicking

In layout pass, onLayout of VerticalGridView triggers a focus change event
where we change LayoutParams of the selectorView, but because parent RelativeLayout
does not re-measure the selectorView in RelativeLayout.onLayout, parent RelativeLayout
calls selectorView.layout() with the obsolete values and leave the view size
inconsistent with LayoutParams.

Our current workaround "post a Runnable" causes one frame flicking when fragment
is initially loaded.

One non-trivial fix is to override RelativeLayout and re-measure the selectorView
between VerticalGridView.onLayout() and selectorView.onLayout().

But since we use scaleY anyway later, switching to use scaleY is much simpler.

Change-Id: I585609695048cffd23e67619320af187e37ffbb6
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/GuidedActionsStylist.java
0b3811639349fd5791a3f330b23b7e4b1c099c27 06-Nov-2015 Dake Gu <dake@google.com> GuidedStepFragment: morph action panel size change in fragment transaction

Use shared element transition to morph between single action panel
and double action panel. This requires different view Ids and
transitionNames for two action panels in order to match shared element
views correctly.

b/24979563

Change-Id: I507c0329071317d0c1282f8892c0f4901d72c245
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/GuidedActionsStylist.java
a97810e4e2ec2552f8247ebdadf323dae70d9e3f 04-Nov-2015 Dake Gu <dake@google.com> GuidedStepFragment: multiple fixes:

1. Handle Keyboard ENTER key correctly. Go through the same logic
that press enter icon in soft IME.

2. Add theme attribute for actions elevation value where SetupWraith
need override as 0dip

3. Make EditText not focusable if action is not editable.

Change-Id: I0e77487ba655c2d4ab729f180fe057b28e19e7e2
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/GuidedActionsStylist.java
0c047fba6b8acc3154830f12c0d09bd5e8df0f55 04-Nov-2015 Dake Gu <dake@google.com> Merge "GuidedStepFragment: fix the unfocus alpha being overriden." into mnc-ub-dev
19c1329def8d277c914cba46540d24bfde58b2a4 04-Nov-2015 Dake Gu <dake@google.com> GuidedStepFragment: fix the unfocus alpha being overriden.

A regression of fixing b/20759626: if onAnimateItemFocused()
changes item alpha, it will be overriden by animator created by
onAnimateItemPressed(false).

Introduce onAnimateItemPressedCancelled() which sets alpha without animation.
Let onAnimateItemFocused() be executed after onAnimateItemPressedCancelled().

Bug 20759626

Change-Id: I61d100d93c47afa1ad9dc6c070dc9477eb092dc9
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/GuidedActionsStylist.java
d14724d33d61385c27a00c31bbc67ad8eeb57b3c 31-Oct-2015 Dake Gu <dake@google.com> GuidedStepFragment: two columns actions

Duplicated action methods into another copy.

The weight of actions width is controlled through theme:
guidedActionContentWidthWeight, guidedActionContentWidthWeightTwoPanels.
When there is one column: actions take 40% of screen width.
When there are two columns: actions take 50% of screen width.

Two actions backgrounds are controlled through theme:
guidedActionsBackground, guidedButtonActionsBackground.

b/24979563

Change-Id: I96486921c39693771c243b18ef9897aa750c65cb
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/GuidedActionsStylist.java
e2f7aef2f45dcdfe116995b64f9a7be5c68a36a1 30-Oct-2015 Dake Gu <dake@google.com> GuidedActionsStylist: support different viewTypes and LayoutIds

Bug 25387934

Change-Id: I1ebc652b2de4d162284e111fe2a095ab3d37158d
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/GuidedActionsStylist.java
7af424644dc8daae5298a5ca2f655770270366fe 29-Oct-2015 Dake Gu <dake@google.com> Make GuidedAction extensible, add focusable attribute

Change-Id: I043c683f2e53aaa2bd923f1ca8bf09f9af8aa8d1
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/GuidedActionsStylist.java
9562425bf9bc15281ac27df817141854769c1042 26-Oct-2015 Dake Gu <dake@google.com> GuidedStep: Support action title and description InputType

Bug 25288089

Change-Id: I938de1066f768d190ff8b01fb09aa9ca4374f27e
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/GuidedActionsStylist.java
c1741246af607f6be2389056da0182c40f938348 17-Oct-2015 Dake Gu <dake@google.com> GuidedStepFragment: lots of editing improvements

1. Support editing description
2. add onGuidedActionEditedAndProceed() to control
target action to focus on when IME finished. Currently
we always focus to sibling action regardless whether the
input is correct or not.
3. add notifyActionChanged() to update action item ui
4. Dim alpha of title when disabled

Bug: 24979559
Bug: 25019347

Change-Id: I3258681d27761a3892f67f528539110bc7640c88
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/GuidedActionsStylist.java
42ae32908312e63b474963fef789017c75feae37 23-Sep-2015 Dake Gu <dake@google.com> Revert "Revert "GuidedStepFragment transition and new features""

This reverts commit d7b834d0339476a8867c6d14e67ed9a08d314e75.
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/GuidedActionsStylist.java
d7b834d0339476a8867c6d14e67ed9a08d314e75 21-Sep-2015 Dake Gu <dake@google.com> Revert "GuidedStepFragment transition and new features"

This reverts commit ce0bd5abebf662db7d8b42468009b227715698ec.

Change-Id: I4ee14b2e4af37f707f6232fa0a5a1cb149c51540
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/GuidedActionsStylist.java
ce0bd5abebf662db7d8b42468009b227715698ec 01-Sep-2015 Dake Gu <dake@google.com> GuidedStepFragment transition and new features

This is a re-iterate of use cases of GuidedStepFragment, new
features including allowing app to add GuidedStepFragment
on top of other content with a covering background fragment;
using activity return transition to slide out content.

Switched from fragment animation to fragment transition. Using
transition will allow us to clone a support version of
GuidedStepFragment that is impossible under fragment animation.

Clearly defined three use cases:
1. When GuidedStepFragment is launched in empty activity.
2. When GuidedStepFragment is launched on top of other content.
3. When GuidedStepFragment is replacing exisitng GuidedStepFragment.

For case 2, we need background to cover bottom content.
Three cases has different transitions settings. Case 1 does not
need Fragment enter transition because that's handled by activity
transition.

Bug 21504593
Bug 23976865

Change-Id: Id7a49d8706fb4b6d21f5f93db5ba9b21238b2c5e
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/GuidedActionsStylist.java
ac07e9d12b10138d4a449522f7082a40f18861e2 08-Aug-2015 Kris Giesing <kgiesing@google.com> Allow action item layouts that do not supply editable actions.

Fix cast operations that were throwing exceptions; make the Leanback
edit text object public to allow reuse.

b/23039755

Change-Id: Id9ceda139efeb352210831dbed0f1dfbbcccd76a
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/GuidedActionsStylist.java
4158705d3f0751d419a08c47a659abeae5f6c196 23-May-2015 Kris Giesing <kgiesing@google.com> Add support for editable actions to GuidedSteps

b/21403345

Change-Id: Id46c94e237f461fcb96439c1dea033e3c2f2a1c4
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/GuidedActionsStylist.java
674cb8b91bec1a1de9c8d3482e1044cfe481846f 28-Apr-2015 Kris Giesing <kgiesing@google.com> am 6b28bed7: Merge "Fix variable reference errors related to check groups." into lmp-mr1-ub-dev

* commit '6b28bed7db5c19985275b33ffeba3f27e9118cc4':
Fix variable reference errors related to check groups.
633f924bac2b143ae67f86eace4d5068f2acab5e 28-Apr-2015 Kris Giesing <kgiesing@google.com> Fix variable reference errors related to check groups.

Checkmarks were incorrectly turned off for the clicked view rather
than all views in the current group; checkmark fade used the wrong
animation constant.

b/20545155

Change-Id: I3d93149708f87950da9ce818a84c48d08dea2b77
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/GuidedActionsStylist.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/GuidedActionsStylist.java
162b21598d9f4fd49748b3c7e27501fe1277210d 21-Mar-2015 Christopher Lane <lanechr@google.com> Copy the drawable's level to the image view

Change-Id: Ia98c66b40b64aeab695f77de5352c41027bd29e0
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/GuidedActionsStylist.java
ebd3d9078dbaebd10a9506ca086435eb63e8a2d2 17-Feb-2015 Kris Giesing <kgiesing@google.com> Initial implementation of GuidedStepFragment

b/18935698

Change-Id: I413f04bcac739768f79e22ab6b518399302a0d8b
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/GuidedActionsStylist.java