Age | Commit message (Collapse) | Author |
|
Change-Id: Ib06ab550c16471fbdae3c348f9c91dd42893a138
|
|
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
|
|
Bug: 26458108
Change-Id: Ia7be66fcf1efd60e65a759006f72b3a0589d0401
|
|
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)
|
|
Change-Id: I2e756bcea1512886958ec70c80ae6f4616c9ed81
|
|
Added setVisible and android:visible to Item so that it will be
hidden if not visible.
Change-Id: If8d2e3ec95c2f1aaffe8991c283f5c474e1f459a
|
|
Change-Id: I5a32cabcc1d89cfb978fbceb3d3f4811bccaea92
|
|
|
|
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
|
|
- 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
|
|
- 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
|
|
bug:25863140
Change-Id: I95bf3abd8050d316b831bc5fec15a864393b051a
|
|
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
|
|
Bug: 25726515
Change-Id: Ibb60af51928bb5fc828761c55430cc8d31fe5c98
|
|
Bug: 25726515
Change-Id: I192f33635e9919c02adfdb2c9afa1652dd84aab2
|
|
Bug: 25726515
Change-Id: Ib4ba64e648e52a9859fb6509a9ce41c692a20aa2
|
|
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
|
|
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
|
|
Remove sendActionResults since it cannot be used properly with
startActivityForResult, which is the recommended way to start the
NEXT action.
Change-Id: Iae00af85b8725119accf343ad1556818e97d4bb3
|
|
Add isLightTheme method to be able to directly tell whether a string
represents a light or dark theme.
Change-Id: Ib49cdcbb9047e235189a451b42f20b5cba5eb42a
|
|
|
|
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
|
|
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
|
|
|
|
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
|
|
|
|
Exclude StickyHeaderListView's header from item count in a11y event.
Bug: 24871684
Change-Id: Idffa8e073e4852164d9797c739194dde71d8a3fb
|
|
Change-Id: Idd6ce39a9d4be2914ae3f8747c86b173d578f468
|
|
Add setters to the properties of items to make them editable.
Change-Id: I04ab8a0fd31f52e60a699198fe1422bed5163e61
|
|
Hide the summary TextView if summary is not set, so that the title
will be centered vertically.
Change-Id: Idbc5f35f7ce48a7338eb0b7061ef5d02b74b7b65
|
|
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
|
|
Make getScrollView public so that client apps can get the scrollview
without using findViewById and making assumptions about the type.
Change-Id: I79b73e4b2a02831147b49e7d9137b7954759c360
|
|
Added showSystemBars method that will undo the visbility flags added
by hideSystemBars.
Change-Id: Iaaa2f2e96089ebf3696f747f51d9174dc0d2bb09
|
|
Convert existing javadocs, which is more plain-text-ish, to javadocs
using proper HTML and javadoc tags.
Bug: 21444334
Change-Id: Iea79b3371c4e1c1c99515abd1c1492f37ad38d05
|
|
- 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
|
|
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
|
|
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
|
|
Set the maximum number of retries allowed by SystemBarHelper to
peek for the decor view to 3.
Bug: 22846994
Change-Id: Ia69cb28deb8c182a7f31890d20cc687218b93200
|
|
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
|
|
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
|
|
ub-setupwizard-alatar
|
|
ub-setupwizard-alatar
|
|
Update the comments to mention that adjustResize is needed for
SystemBarHelper.setImeInsetView to have effect.
Change-Id: I66de333911b8baf3a74c064d55e609e74ee74172
|
|
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
|
|
Center the navigation bar button icon when there is no text label.
Bug: 21465490
Change-Id: Ie2d890b29c721f6f2fb0608637b5a76ab389294e
|
|
ub-setupwizard-alatar
|
|
Utility routine to return the current header.
Change-Id: I53a5d80a0b65f4388c429503bada9271a3286695
|
|
Test that BottomScrollView callbacks are called correctly.
Change-Id: Ia2e9e4149057b06794cdf85ba07c44efc0aec579
|
|
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
|
|
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
|