• Home
  • History
  • Annotate
  • only in /frameworks/support/design/tests/res/
History log of /frameworks/support/design/tests/res/
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
2e522d2998c937948757ccfe0a5523047726fb4d 07-Jun-2016 Chris Banes <chrisbanes@google.com> Fix scrolling view position with fitSystemWindows parent

Currently the scrolling view is not positioned correctly
if the CoordinatorLayout is set to fitSystemWindows, but
none of its children are. This CL fixes that by properly
insetting the scrolling view.

BUG: 29125508
Change-Id: I3b802f98197ee50e9caee610c32631daeb5af9aa
ayout/include_appbar_scrollview.xml
13633353237d6506f4c436b459bc8be8c3d7ed68 25-May-2016 Chris Banes <chrisbanes@google.com> Fix enterAlways|enterAlwaysCollapsed with window insets

Currently we take the window inset into account twice.
This CL fixes it by only taking it into account once.

Also updated the relevant test to use a translucent
status, and thus catch this on Lollipop+. It's how
99% of apps will use this anyway.

BUG: 28859045
Change-Id: I37c383b2e496768b42c52cf66f30bfeaf683e0c9
ayout/design_appbar_toolbar_collapse_scroll.xml
alues/styles.xml
674b11a68aa97f156d3606e110ebceeb1bedf0b4 19-Apr-2016 Yuichi Araki <yaraki@google.com> Merge "Let touch events fall through from bottom sheet" into mnc-ub-dev
am: 3126939

* commit '312693900118cca2f69438a591cc0123a535bc9a':
Let touch events fall through from bottom sheet

Change-Id: Ib125b44d089f1a7a6a4e0d9133f58f72929cd4fb
1dbdc6baec537b45e9bd8e5afabcb5c35f1a8004 18-Apr-2016 Yuichi Araki <yaraki@google.com> Let touch events fall through from bottom sheet

BottomSheetBehavior should not consume touch events outside of its view
boundaries.
Bug: 27557583

Change-Id: If2f1f1d94eede28617396f19ed98956f4c352550
ayout/activity_coordinator_layout.xml
94cdf63dbb45423fdc219835e30ae02d39027409 23-Mar-2016 Chris Banes <chrisbanes@google.com> Merge "Make FAB react to window size" into nyc-dev
a1de3eef9bb5ef90d00a23c65f13e1fc83254455 01-Mar-2016 Chris Banes <chrisbanes@google.com> Make FAB react to window size

Useful for multi-windows where the size of
the window can change. Also added an API to
set the size programmatically.

The default size is now AUTO, but can be explicitly
set to whatever size the developer wishes.

BUG: 27328132
BUG: 27464447

Change-Id: If617b565a8c242d6ce8b85e56cd9a20df07995ff
alues/dimens.xml
2d42022740a6d622d6f7d1ccca7b91b90eb63d28 23-Mar-2016 Yuichi Araki <yaraki@google.com> Merge "BottomSheetBehavior now handles fitsSystemWindows" into mnc-ub-dev
am: 29bbfda

* commit '29bbfdab23a202edb76fe87897f6e3b8a7c2d131':
BottomSheetBehavior now handles fitsSystemWindows
a61e9790be0dd792393448810277b25990fcadb8 22-Mar-2016 Yuichi Araki <yaraki@google.com> BottomSheetBehavior now handles fitsSystemWindows

Fixes the bottom sheet lays itself out slightly lower when the
CoordinatorLayout has fitsSystemWindows="true".

Bug: 27610498
Change-Id: I8b70c87bac4d8d33e951a85f6202a8b288d4e65e
ayout/test_design_bottom_sheet_behavior_with_insets.xml
b893459a2e916cc957e7a638e9afdb4a1aca3c78 18-Mar-2016 Kirill Grouchnikov <kirillg@google.com> Merge "Integration tests covering anchoring with margins in CoL." into nyc-dev
8d082da0c1772e5de19c0a7a5745680640cc7a35 16-Mar-2016 Kirill Grouchnikov <kirillg@google.com> Integration tests covering anchoring with margins in CoL.

Change-Id: I231e940a462b921423eb9a6d71409a367c812b99
ayout/design_appbar_anchored_fab_margin_bottom.xml
ayout/design_appbar_anchored_fab_margin_left.xml
ayout/design_appbar_anchored_fab_margin_right.xml
ayout/design_appbar_anchored_fab_margin_top.xml
ayout/design_appbar_toolbar_collapse_pin.xml
ayout/design_appbar_toolbar_collapse_pin_with_fab.xml
ayout/design_content_appbar_toolbar_collapse_pin.xml
alues/dimens.xml
alues/strings.xml
69992cb40e18789f4f406ffc94c4ebbd2bc274f7 16-Mar-2016 Kirill Grouchnikov <kirillg@google.com> Fix selection state for custom views on TabLayout

If Tab.setCustomView is called after TabLayout.addTab, we need
to explicitly propagate the selected state from the TabLayout to
the newly set custom view, mirroring the logic in
TabLayout.addTabView.

Also tweak a few test layouts for consistent attribute ordering
and indentation.

Bug: 27677664
Change-Id: I838092e787f9098e64004ebef3ae84ecbba774b9
ayout/design_tabs.xml
ayout/design_tabs_items.xml
ayout/design_tabs_twice.xml
ayout/design_tabs_viewpager.xml
ayout/design_tabs_with_non_tabitems.xml
f96b613760dad175dbc8dec8948dacdf39a5733b 01-Mar-2016 Kirill Grouchnikov <kirillg@google.com> Adding test scenario for parallax scrolling in AppBarLayout.

Change-Id: I35e9b95283f24f438f17ad05fe3c9af0d6a7060a
rawable-nodpi/photo.jpg
ayout/design_appbar_toolbar_collapse_with_image.xml
alues/strings.xml
bec43dcc29fb7a3494139b470b0481106e1973a9 01-Mar-2016 Yuichi Araki <yaraki@google.com> Merge "Fix BottomSheetDialog when it is short" into mnc-ub-dev
am: 7cf2a13442

* commit '7cf2a134424e8d7a5095f0df1749bfe871dabb8a':
Fix BottomSheetDialog when it is short
7cf2a134424e8d7a5095f0df1749bfe871dabb8a 01-Mar-2016 Yuichi Araki <yaraki@google.com> Merge "Fix BottomSheetDialog when it is short" into mnc-ub-dev
35d2c3f6de240d5f154552dbe5c247d0e5607e61 29-Feb-2016 Chris Banes <chrisbanes@google.com> Merge "Don't always use window insets in AppBarLayout" into nyc-dev
a7f3c20334b5641e5cff45c861d34e9c95f7283d 29-Feb-2016 Chris Banes <chrisbanes@google.com> Don't always use window insets in AppBarLayout

Currently, it does not check if it is set to
fitSystemWindows, so will always use the insets
if it is given them. This can happen if it's parent
is set to fitSystemWindows.

BUG: 27371696

Change-Id: Iaaf344abdebb877676b510847fd98f53226c42bf
ayout/design_appbar_toolbar_scroll_fitsystemwindows_parent.xml
0f268e050ac69084f9e00bfb149735239704c101 29-Feb-2016 Chris Banes <chrisbanes@google.com> Merge "Fix FloatingActionButton.setBackgroundTint* not working" into mnc-ub-dev
am: 0960724273

* commit '0960724273891c9f7a9e2f2f6397c0389747b36e':
Fix FloatingActionButton.setBackgroundTint* not working
a3f9d4d786427afc96bc48bebd9304c56d41a7c3 29-Feb-2016 Chris Banes <chrisbanes@google.com> Merge "Tidy up TextInputLayout.setError()" into nyc-dev
3bd9d18c5855600254e907d6668f2ec4d7fd1c51 26-Feb-2016 Yuichi Araki <yaraki@google.com> Fix BottomSheetDialog when it is short

The bottom sheet is now properly laid out when the content is shorter
than the specified peek height.

This also fixes unwanted canceling when pulling up a short modal bottom
sheet.

Bug: 27350772
Change-Id: I8f44eabbd96c322fa3039683b05c123d3cce9749
ayout/frame_layout.xml
9ba4dbeb02db9c222f39f77b9a335d9deabde98f 25-Feb-2016 Chris Banes <chrisbanes@google.com> Tidy up TextInputLayout.setError()

Turns out that there is an issue if you call
setErrorEnabled() with a previously set non-null
error. This CL fixes this.

Also added tests to test it works.

Change-Id: I24db8724d1e76ef3d05a8cc297a972ec814e62d0
ayout/design_text_input.xml
alues/strings.xml
1711e8729c1b901b73f530e87b7c9cc9370f33be 26-Feb-2016 Chris Banes <chrisbanes@google.com> Fix FloatingActionButton.setBackgroundTint* not working

Caused by the move to AppCompatImageButton. Happens due
to AppCompat's own background tinting overriding things.
Fixed by moving back to our own tinting. Had to add
support to use AppCompat's ImageHelper to enable vector
icon support.

BUG: 27372244
Change-Id: Ia06bea72796e7154bae50c65ef6dfe91158e3bf6
rawable/vector_icon.xml
84549395ed3e2ec0453f7349716a12eab9901703 26-Feb-2016 Chris Banes <chrisbanes@google.com> resolve merge conflicts of c16e4c6eec to nyc-dev

Change-Id: Ic309b7bbeb3c89e4e73f09b5806b566d004e0250
50f777a07774d0f24529e2888fcba95744cb0be1 25-Feb-2016 Chris Banes <chrisbanes@google.com> Fix TabLayout's Tab pooling to actually work

Currently we do not reset the parent which mean that
a different TabLayout trying to use a pooled Tab
instance will blow up.

BUG: 27356169
Change-Id: I332ffaf06bce456b31a29d806df34354ab60d09f
ayout/design_tabs_twice.xml
ccfe45bc4d8090bc9283f3d8dcbfc5497da273e8 24-Feb-2016 Chris Banes <chrisbanes@google.com> Fix FAB and background attrs again
am: d95e0bb027

* commit 'd95e0bb0271ae59387dd9d2ca402ad6f39d789d2':
Fix FAB and background attrs again
d95e0bb0271ae59387dd9d2ca402ad6f39d789d2 24-Feb-2016 Chris Banes <chrisbanes@google.com> Fix FAB and background attrs again

Seems that I didn't actually test with a backgroundTint
set.

Now with added tests to check the background colors.

BUG: 27270707
Change-Id: I92139e9466f33469949d68290def06bf24bbb5ea
rawable-xxhdpi/ic_add.png
ayout/design_fab.xml
f5b7c33391e9c8191bb4db7091be1c076a2fa7ea 22-Feb-2016 Chris Banes <chrisbanes@google.com> Merge "Nested scroll over clickable items on BottomSheet" into mnc-ub-dev
am: 8feab4189f

* commit '8feab4189ff169a7d954ceb77ca901760134a8fc':
Nested scroll over clickable items on BottomSheet
b1eb1357ec33343b7271a6d3876ac4af84e15510 22-Feb-2016 Yuichi Araki <yaraki@google.com> Nested scroll over clickable items on BottomSheet

Prevent ViewDragHelper from stealing nested scrolling events.

Bug: 27260612
Change-Id: I96c4f717995ca0f96a93867dc07cd29e882d0851
alues/dimens.xml
123544eaa855a7734be92dd35901233a222f64a8 19-Feb-2016 Kirill Grouchnikov <kirillg@google.com> Adding CoordinatorLayout tests for scrolling / pinning tabs.

Change-Id: If08fd53f5a975957cd17bd19000ccd32bcb558ba
ayout/design_appbar_toolbar_scroll_tabs_pinned.xml
ayout/design_appbar_toolbar_scroll_tabs_scroll.xml
ayout/design_appbar_toolbar_scroll_tabs_scroll_snap.xml
alues/strings.xml
65029163d2263348e4d8db5f371d7de7b621f6d8 18-Feb-2016 Kirill Grouchnikov <kirillg@google.com> Merge "Testing FAB anchoring with AppBarLayout" into nyc-dev
fa0b2ad17dd14b1676457c6bc0a1add13c898744 18-Feb-2016 Kirill Grouchnikov <kirillg@google.com> Merge "Additional tests for configuring Behavior in CoordinatorLayout." into nyc-dev
1005c226fdfddf30e6ad1ec2bb4c57942918dd8f 18-Feb-2016 Kirill Grouchnikov <kirillg@google.com> Testing FAB anchoring with AppBarLayout

Also fix a few typos in FloatingActionButton comments.

Change-Id: Ic42a6f228a189d618b35e5c64ee9e961a58a3e9e
ayout/design_appbar_toolbar_collapse_pin.xml
ayout/design_appbar_toolbar_collapse_pin_with_fab.xml
ayout/design_appbar_toolbar_collapse_scroll.xml
alues/strings.xml
909009864c27baf78efb766990e507a16a1cf359 17-Feb-2016 Kirill Grouchnikov <kirillg@google.com> Tests for CoordinatorLayout scrolling / pinning.

Change-Id: I9a28726bc73cdb97d68c10af379535933bab1a7c
ayout/design_appbar_toolbar_collapse_pin.xml
ayout/design_appbar_toolbar_collapse_scroll.xml
ayout/include_appbar_scrollview.xml
alues/dimens.xml
alues/strings.xml
37847549af8a990fec26accc45b771141ff9ddb5 18-Feb-2016 Kirill Grouchnikov <kirillg@google.com> Additional tests for configuring Behavior in CoordinatorLayout.

In addition to configuring Behavior via XML attribute, test
configuring behavior via annotation on custom view class and via
LayoutParams.setBehavior API

Change-Id: I94d01a9d4a738a75f87d97ed516162b8f58033fc
ayout/design_snackbar_behavior_annotation.xml
ayout/design_snackbar_behavior_layout_attr.xml
ayout/design_snackbar_behavior_runtime.xml
ayout/design_snackbar_with_textview.xml
5ee7b3de4f2bbecd3eb7e346809250d9ca806a9e 13-Feb-2016 Kirill Grouchnikov <kirillg@google.com> First pass for testing anchoring of views in CoordinatorLayout.

One test checks that snackbar shown in coordinator layout with
a FAB pushes the FAB up as a built-in behavior. The second test
checks that snackbar showin in coordinator layout results in
custom view's behavior (registed in XML as class name) to be invoked.

The setup is dynamic, allowing using multiple "content" layouts in
the same activity so that we don't need to have multiple Activity
classes cluttering the package.

This CL also has a proposed way to "wait" until Snackbar has been
fully shown with custom callback and Espresso's idling resources.

Change-Id: Idf0ab8cdc7e2454bbcddb36c94d832d921c56da6
rawable-xxhdpi/ic_add.png
ayout/design_snackbar_with_fab.xml
ayout/design_snackbar_with_textview.xml
ayout/dynamic_coordinator_layout.xml
alues/strings.xml
c554016bf7e7e057479cf005770dd5e127500329 11-Feb-2016 Kirill Grouchnikov <kirillg@google.com> Expanding test coverage for Snackbar

* Various combinations of message and action text sources
* Dismissing via API call to dismiss()
* Auto-dismissal after timeout
* Auto-dismissal after another snackbar is shown

Change-Id: Iabc57b0e77a7657a7889071d1ae9cfc194f10278
alues/strings.xml
c10de2da0b007e920d0be0502f0db3c8fbb3609d 27-Jan-2016 Kirill Grouchnikov <kirillg@google.com> Merge "Test coverage for NavigationView action layouts." into mnc-ub-dev
1ba555a31dcff069a4b9beb4d552203fab2d2691 27-Jan-2016 Kirill Grouchnikov <kirillg@google.com> Test coverage for NavigationView action layouts.

Change-Id: I77e15338689a60dd350b7c7f2125edaf49ecc124
ayout/action_layout.xml
enu/navigation_view_content.xml
88f685bc75d52b18f45f22c99ef8d4910708a3e3 27-Jan-2016 Kirill Grouchnikov <kirillg@google.com> Switch to more reliable icon sources for tinting tests.

ColorDrawable is not tinted on KK-
BitmapDrawable is by a few units off in G/B channels on GB-
ShapeDrawable is not drawn on GB-

Use extension of GradientDrawable for now.

Change-Id: I89eb67227eb855fbc314fcca56b19eb579785bd9
rawable-mdpi/test_drawable_blue.png
rawable-mdpi/test_drawable_green.png
rawable-mdpi/test_drawable_red.png
rawable/test_drawable_blue.xml
rawable/test_drawable_green.xml
rawable/test_drawable_red.xml
a3c0da0361aa877077aeb21df876226def2f98ca 27-Jan-2016 Kirill Grouchnikov <kirillg@google.com> More tests for NavigationView

* Testing APIs related to header views
* Testing the inflated Menu object
* Testing navigation selection listener
* Testing functionality related to checked items

Change-Id: I9e2655c87f3745070ac79e47c26d7b7fbbc69991
olor/color_state_list_sand.xml
rawable/test_drawable_state_list.xml
ayout/design_navigation_view_header1.xml
ayout/design_navigation_view_header2.xml
ayout/design_navigation_view_header3.xml
enu/navigation_view_content.xml
alues/colors.xml
8ea47e618ba5dad21c7b023aa998979eebcf2103 26-Jan-2016 Kirill Grouchnikov <kirillg@google.com> Testing appearance-related APIs on NavigationView.

Also fix a bug where setting item background wouldn't update
the navigation view content. In addition, mark a few method
signatures with @Nullable where appropriate.

Bug: 26793013
Change-Id: Ie91c376d73beb7acb317510ac8322771ca17b66a
olor/color_state_list_lilac.xml
olor/color_state_list_red_translucent.xml
rawable/test_background_blue.xml
rawable/test_background_green.xml
rawable/test_drawable_blue.xml
rawable/test_drawable_green.xml
rawable/test_drawable_red.xml
ayout/design_navigation_view.xml
enu/navigation_view_content.xml
alues/colors.xml
alues/dimens.xml
alues/styles.xml
c10ba2544591704e7c4adbe98da6a485a8b19230 25-Jan-2016 Kirill Grouchnikov <kirillg@google.com> Initial setup and basic test for NavigationView

Change-Id: Ibffb3a0727598e35c3f9b91e473cd92cea1026dd
ayout/design_navigation_view.xml
enu/navigation_view_content.xml
alues/colors.xml
alues/dimens.xml
alues/strings.xml
alues/styles.xml
4cc50ca6952dcc35f1babd918742dbd09e3c01c7 05-Jan-2016 Chris Banes <chrisbanes@google.com> Allow TabLayout items to be added in a layout

Adds a new dummy view called TabItem which is just a
vehicle for reading attributes.

Also tidied up TabLayout's attribute javadoc

BUG: 19634570

Change-Id: Ia3a5e518bcf8266fb9fa800f062dd1dc6fe7214c
ayout/design_tab_item_custom.xml
ayout/design_tabs_items.xml
ayout/design_tabs_with_non_tabitems.xml
alues/strings.xml
48cd60a8daad661611618f52a0dce00d5b2c64b9 12-Jan-2016 Yuichi Araki <yaraki@google.com> Add tests for BottomSheet

Bug: 26244950
Change-Id: Ia51772a32a542e7adc594e8fd749a02c74a14431
ayout/test_design_bottom_sheet_behavior.xml
alues/dimens.xml
bfd48d0521963754e04e407499ee9e278fe06c0f 06-Jan-2016 Chris Banes <chrisbanes@google.com> Fix Snackbar callback being called twice on API 14/15

BUG: 25072545
Change-Id: I589af3896c4c13f1cb2768e3fea95cd2f7a72365
ayout/test_design_snackbar.xml
c7f2aad754af4373c32fcab613de0ba164ada2a2 22-Dec-2015 Kirill Grouchnikov <kirillg@google.com> Third pass for testing TabLayout with ViewPager

Testing min and max tab title width under scrollable mode

Change-Id: I70abd29082a9f7ec3f1ee401eafeaa1cd7d83d2a
ayout/design_tabs_viewpager.xml
ayout/tab_layout_bound_max.xml
ayout/tab_layout_bound_min.xml
ayout/tab_layout_bound_minmax.xml
ayout/tab_layout_unbound.xml
alues/dimens.xml
394c4272d0e220cf7af236665eecaf99dfed25b1 21-Dec-2015 Kirill Grouchnikov <kirillg@google.com> Initial test setup and simple TabLayout test in design lib

Change-Id: Iee550dc9f08e8b3449aa5c1749333efca224635f
ayout/design_tabs_viewpager.xml
alues/ids.xml