summaryrefslogtreecommitdiff
path: root/library/main/src/com/android
AgeCommit message (Collapse)Author
2016-01-29[SuwLib] Add sticky header to recycler viewMaurice Lam
Change-Id: Ib06ab550c16471fbdae3c348f9c91dd42893a138
2016-01-26[SuwLib] Allow requiring scroll in listsMaurice Lam
Add ListViewRequireScrollHelper and RecyclerViewRequireScrollHelper that will require scrolling in those layouts. SetupWizardListLayout and SetupWizardRecyclerItemsLayout are now wired properly with the requireScrollToBottom() method to require scrolling. Change-Id: I1086fe02374bfbbeb1ac3f8c4ca6981f3ced0df9
2016-01-20[SetupWizard] Add GlifLayout.setPrimaryColorMaurice Lam
Bug: 26458108 Change-Id: Ia7be66fcf1efd60e65a759006f72b3a0589d0401
2016-01-21[SuwLib] Add dark GLIF theme (placeholder)Maurice Lam
Add placeholder for dark GLIF theme, which is an extension of the dark system themes with same overlay values as the light variant. The color values of the overlays will be updated as necessary. Change-Id: If7aa2e4b849c26300d4d8ab606be7b74cc33620f (cherry picked from commit 0c0f30d332afd782dd107ef11f7fa76fb2fdd165)
2015-12-21[SuwLib] Add preference integration supportMaurice Lam
Change-Id: I2e756bcea1512886958ec70c80ae6f4616c9ed81
2015-12-15[SuwLib] Allow setting visibility of itemsMaurice Lam
Added setVisible and android:visible to Item so that it will be hidden if not visible. Change-Id: If8d2e3ec95c2f1aaffe8991c283f5c474e1f459a
2015-12-11[SuwLib] Add progress bars to GLIF layoutsMaurice Lam
Change-Id: I5a32cabcc1d89cfb978fbceb3d3f4811bccaea92
2015-12-10Merge "[SuwLib] Implement pattern drawable background"Maurice Lam
2015-12-09[SuwLib] Allow setting view IDs for itemsMaurice Lam
Add getViewId method for Items which will be assigned to the view ID. This helps especially in testing, for UiAutomator to find the views needed for the tests. Change-Id: Ie88fbffc357eca9303d37830ace44511e5d81aa7
2015-12-09[SuwLib] Implement pattern drawable backgroundMaurice Lam
- Implement the pattern background for GLIF using a custom drawable. The drawable draws the paths manually as specified in the SVG, for backwards compatibility. - Use a FrameLayout subclass to draw the custom status bar background in the case of phone layouts, and set draw the background directly for tablet / clamshell layouts. Bug: 25650709 Change-Id: I527bb47efa143ec43c1030b57087fd2414d7045b
2015-12-04[SuwLib] GLIF layout adjustment for headersMaurice Lam
- Store the list item directly in the view holder and update in onBindViewHolder, so that the click handler is not prone to adapter position changes. - Glif[List/Recycler]Layout now returns the wrapped adapter when getAdapter is called. - Disable dividers for header views Change-Id: Ie782a4de06e2296d4996cb8b81b5d7d3fc834ccf
2015-11-30[SetupWizard] Makes headers unselectableUdam Saini
bug:25863140 Change-Id: I95bf3abd8050d316b831bc5fec15a864393b051a
2015-11-24[SuwLib] Add dividers to GLIF list layoutsMaurice Lam
Add dividers with inset support to GLIF list and recycler layouts. Typical usage of this will be by specifying app:suwDividerInset to either @dimen/suw_items_text_divider_inset or @dimen/suw_items_icon_divider_inset (the default). Bug: 25726515 Change-Id: I8f569680d71d1baba093b20f3d48570d53383acb
2015-11-23[SuwLib] Implement GlifRecyclerLayoutMaurice Lam
Bug: 25726515 Change-Id: Ibb60af51928bb5fc828761c55430cc8d31fe5c98
2015-11-19[SuwLib] Implement GlifListLayoutMaurice Lam
Bug: 25726515 Change-Id: I192f33635e9919c02adfdb2c9afa1652dd84aab2
2015-11-18[SetupWizard] Implement GlifLayoutMaurice Lam
Bug: 25726515 Change-Id: Ib4ba64e648e52a9859fb6509a9ce41c692a20aa2
2015-11-16[SuwLib] Add GLIF themeMaurice Lam
Add a GLIF theme declaration to setup wizard library, which is just a direct copy of SuwThemeMaterial.Light for now, and will be updated as more of the new visual design is implemented. Bug: 25726515 Change-Id: I3f55662192c05012b9a93d77f7b1303f4a792fe5
2015-11-16[SuwLib] Deprecate material blue themesMaurice Lam
GMS core is still holding a reference to the material blue themes that will be tricky to remove. Deprecate the constants for now. Change-Id: Icbc30cd5e8d8aad78008b6cf37fcf3db723c2c50
2015-11-13[SuwLib] Remove sendActionResultsMaurice Lam
Remove sendActionResults since it cannot be used properly with startActivityForResult, which is the recommended way to start the NEXT action. Change-Id: Iae00af85b8725119accf343ad1556818e97d4bb3
2015-11-12[SuwLib] Add isLightTheme for stringsMaurice Lam
Add isLightTheme method to be able to directly tell whether a string represents a light or dark theme. Change-Id: Ib49cdcbb9047e235189a451b42f20b5cba5eb42a
2015-10-22Merge "[SuwLib] Add nested items support"Maurice Lam
2015-10-22[SuwLib] Add nested items supportMaurice Lam
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
2015-10-16[SuwLib] Fix lint errorsMaurice Lam
The log tags were too long and lint was complaining, breaking the build on ub-setupwizard-master. Removing the logs. Also completed javadocs for sendActionResults. Change-Id: Icdacd6257f0812888172eec0e2d446437f6cd205
2015-10-14Merge "Add multi-script support"Russell Brenner
2015-10-13Add multi-script supportRussell Brenner
Added API for sending results back to WizardManager, including the new bundle extra, to replace the extras for the script URI and action ID. Bug: 23392273 Change-Id: Idcd04ea47679bfc9f9a8293a022d28d32c9e2acc
2015-10-13Merge "[SuwLib] Adjust a11y event for header"Maurice Lam
2015-10-13[SuwLib] Adjust a11y event for headerMaurice Lam
Exclude StickyHeaderListView's header from item count in a11y event. Bug: 24871684 Change-Id: Idffa8e073e4852164d9797c739194dde71d8a3fb
2015-10-12[SuwLib] Support icons in items frameworkMaurice Lam
Change-Id: Idd6ce39a9d4be2914ae3f8747c86b173d578f468
2015-10-08[SuwLib] Make Items editableMaurice Lam
Add setters to the properties of items to make them editable. Change-Id: I04ab8a0fd31f52e60a699198fe1422bed5163e61
2015-10-08[SuwLib] Single-line itemMaurice Lam
Hide the summary TextView if summary is not set, so that the title will be centered vertically. Change-Id: Idbc5f35f7ce48a7338eb0b7061ef5d02b74b7b65
2015-10-06[SuwLib] Implement Items frameworkMaurice Lam
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
2015-09-09[SuwLib] Make getScrollView publicMaurice Lam
Make getScrollView public so that client apps can get the scrollview without using findViewById and making assumptions about the type. Change-Id: I79b73e4b2a02831147b49e7d9137b7954759c360
2015-08-26[SetupWizardLib] Add showSystemBars methodMaurice Lam
Added showSystemBars method that will undo the visbility flags added by hideSystemBars. Change-Id: Iaaa2f2e96089ebf3696f747f51d9174dc0d2bb09
2015-08-20[SuwLib] Fix javadocsMaurice Lam
Convert existing javadocs, which is more plain-text-ish, to javadocs using proper HTML and javadoc tags. Bug: 21444334 Change-Id: Iea79b3371c4e1c1c99515abd1c1492f37ad38d05
2015-08-19[SuwLib] Tint navigation button iconsMaurice Lam
- Remove the dark variant of button icons, since it is now tinted to the desired color - Use DrawableCompat.setTintList to tint the drawables to the same color used as text - Use textColorPrimary as the navigation text color, since the spec now matches the default textColorPrimary implementation of material theme (This changes the disabled color from 20% alpha to 26% alpha) - Configured the build to take two different implementations of NavigationBarButton. The platform build is the same as Button, since drawable tinting is natively supported. The comapt build uses DrawableCompat in the support library to tint any compound drawables - Removed all xxxhdpi assets since that was introduced in L, but vector assets are used in L instead. - For the vector drawables, use tint instead of fillColor so that the state in the ColorStateList will be taken into account. Bug: 22129308 Change-Id: Id0c7b40ad3e71c2c66a0e89df4522865a61e923e
2015-08-18[SuwLib] Enable lint for setup wizard libraryMaurice Lam
Fix existing lint issues and enforce lint in all builds done in the ub-setupwizard-* tree. Lint will not be run or enforced in included builds (e.g. GMS core builds which builds setup wizard library from source using build.gradle file) Change-Id: I7c1f8e2dce38d455ff5b635f80255e09baea1263
2015-08-13[SuwLib] Refactor out TemplateLayoutMaurice Lam
Refactor TemplateLayout as a base class for SetupWizardLayout, which is a generic layout that takes the "android:layout", inflates that as a template and put its children in the "container". Change-Id: Id7977787ffa6cdb5df7a4cb8172ce1fa6a52ed45
2015-08-03[SuwLib] Avoid infinite loop in SystemBarHelperMaurice Lam
Set the maximum number of retries allowed by SystemBarHelper to peek for the decor view to 3. Bug: 22846994 Change-Id: Ia69cb28deb8c182a7f31890d20cc687218b93200
2015-06-09[SetupWizardLib] Allow showing keyboard in immersive dialogsMaurice Lam
Addd the flag SOFT_INPUT_IS_FORWARD_NAVIGATION when hiding dialog system bars so that if the dialog wants focus to show IME by default, it can do so. Bug: 20639199 Change-Id: I87dc40bbaae71572bbe4b94b92be40342f117613
2015-06-01[SetupWizardLib] Support for ObjectAnimatorMaurice Lam
Support for animator to animate SetupWizardLayout horizontally, which requires adding a setXFraction method, changing the translationX with respect to the width of the view. Also moved annotations to com.android.setupwizardlib.annotations package to avoid class loading problems in clients that use support annotation library. Bug: 20110840 Change-Id: Ibfb900323bcf4f32c8ded4c4a6dbf4765f17751a
2015-05-29Merge "[SetupWizardLib] Update comments for SystemBarHelper" into ↵Maurice Lam
ub-setupwizard-alatar
2015-05-29Merge "[SetupWizardLib] Add support for require scrolling" into ↵Maurice Lam
ub-setupwizard-alatar
2015-05-29[SetupWizardLib] Update comments for SystemBarHelperMaurice Lam
Update the comments to mention that adjustResize is needed for SystemBarHelper.setImeInsetView to have effect. Change-Id: I66de333911b8baf3a74c064d55e609e74ee74172
2015-05-29[SetupWizardLib] Add support for require scrollingMaurice Lam
Add SetupWizardLayout.requireScrollToBottom method that will register a RequireScrollHelper on the layout. When the helper is registered and the content view can scroll, the next button will be hidden and a down-arrow button is shown, which will scroll the page down when clicked. Change-Id: Ib9ddcbeec24169cc00265fe107deb1b5099cba8d
2015-05-28Center nav bar button iconMaurice Lam
Center the navigation bar button icon when there is no text label. Bug: 21465490 Change-Id: Ie2d890b29c721f6f2fb0608637b5a76ab389294e
2015-05-21Merge "[SetupWizardLib] Add tests for BottomScrollView" into ↵Maurice Lam
ub-setupwizard-alatar
2015-05-21Add getHeaderTextRussell Brenner
Utility routine to return the current header. Change-Id: I53a5d80a0b65f4388c429503bada9271a3286695
2015-05-21[SetupWizardLib] Add tests for BottomScrollViewMaurice Lam
Test that BottomScrollView callbacks are called correctly. Change-Id: Ia2e9e4149057b06794cdf85ba07c44efc0aec579
2015-05-08[SetupWizardLib] Guard translationY with SDK versionMaurice Lam
setTranslationY was introduced in Honeycomb, add the version guard before calling it in onScrollChanged. Also update the sitcky header position during onLayout so it is positioned correctly after orientation change. Change-Id: I934de1762457129f5ca3a0afe56aac430aa6c3b4
2015-05-07Sanity check margins before applyingMaurice Lam
Check that margins are smaller than the height of the view before applying the margins when setting the IME inset view. Bug: 20891203 Change-Id: I91420ac3f9aa97a1d6034545e2f507a5a71a0ca8