65128dc6219435ec82477235e117efdf94c75101 |
|
17-Apr-2017 |
Maurice Lam <yukl@google.com> |
Fix edge case for ItemGroup notify propagation When removing the last item in a nested ItemGroup, make sure getChildPosition returns the position of where the item would have been so that the removal notification can be propagated properly. Test: ./gradlew connectedAndroidTest test Bug: 37361727 Change-Id: I50f5ceb50c2c7432056427a9d11a181dc384f4e7
/frameworks/opt/setupwizard/library/main/src/com/android/setupwizardlib/items/ItemGroup.java
|
7204767830ba57c641422aeb98a74be719a51e08 |
|
28-Mar-2017 |
Maurice Lam <yukl@google.com> |
Notify the correct position when removing the last item Change ItemGroup#getChildPosition to return the position even for empty childrem, so that when removing the last item in a nested ItemGroup, the notification propagation will still be correct. Test: ./gradlew connectedAndroidTest test Bug: 36634677 Change-Id: I612e0c624dabee1bfaa6133fe976527e85523634 (cherry picked from commit 4dd5de226fefd5c2fdf040543157357f53ea932e)
/frameworks/opt/setupwizard/library/main/src/com/android/setupwizardlib/items/ItemGroup.java
|
ab45bdf67a01ba13efb45334cc43f9632de6f034 |
|
26-Feb-2016 |
Maurice Lam <yukl@google.com> |
Support RecyclerView notifications in items Propagate the recycler view notifications notifyItem{Changed/Removed/Inserted} in ItemHierarchy so that recycler view animations can be used with ItemHierarchy more easily. Test: ./gradlew connectedAndroidTest test Bug: 36388000 Change-Id: I583952044995b174baec2610422611f6d40a9a11
/frameworks/opt/setupwizard/library/main/src/com/android/setupwizardlib/items/ItemGroup.java
|
00358e4d12e6c7ba0f1da1fa9ad57f87da9b3b1a |
|
25-Mar-2016 |
Maurice Lam <yukl@google.com> |
[SuwLib] Implement ButtonBarItem Implement ButtonBarItem which can contain one or more buttons to be displayed in a horizontal row. Bug: 27600894 Change-Id: Id3879ee8fc0bd09c04bc8d98a0bbd301d1b410b8
/frameworks/opt/setupwizard/library/main/src/com/android/setupwizardlib/items/ItemGroup.java
|
960c0ea0b1d36904beef0f01715dd43a211e88ca |
|
09-Oct-2015 |
Maurice Lam <yukl@google.com> |
[SuwLib] Add nested items support Add nested items support to items framework, which allows ItemGroups to be placed inside another ItemGroup. Handling of children elements are at discretion of the parent, but for the case of ItemGroup it will provide a flattened view of the items. Change-Id: I17bfd8ee276bf47d388873e68e67324c755425b3
/frameworks/opt/setupwizard/library/main/src/com/android/setupwizardlib/items/ItemGroup.java
|
5bf291fde3dfd64f264d525534730514a279c8fc |
|
06-Oct-2015 |
Maurice Lam <yukl@google.com> |
[SuwLib] Implement Items framework Items framework is a framework modeled after preferences, which uses XML to inflate a collection of items. Instead of using activity or fragment directly like preferences, a ListAdapter is created and you can use that with any existing ListViews. SetupWizardItemsLayout is a convenient wrapper around SetupWizardListLayout which will automatically inflates android:entries in its attributes to populate the list. Note: A recycler view adapter is under consideration Change-Id: I5eb8853c160cf86fa5b6f21a01dfa4b0030643f6
/frameworks/opt/setupwizard/library/main/src/com/android/setupwizardlib/items/ItemGroup.java
|