Kirill Grouchnikov a1cda05d81 Tweak what happens when event interception is disallowed in CoL
Instead of sending a ACTION_CANCEL event only to the last child
that returned true from its Behavior.onTouchEvent / onInterceptTouchEvent,
send that to all the child views so that they can cancel whatever
tracking logic they might have.

Add a test that covers the specific case of HorizontalScrollView
in AppBarLayout that starts intercepting a horizontal swipe. Also
fix behavior for bottom sheet that wasn't "ready" to get cancel
events during the window attach phase.

Test: ./gradlew design:connectedCheck --info --daemon
-Pandroid.testInstrumentationRunnerArguments.class=android.support.design.widget.AppBarHorizontalScrollingTest
Test: ./gradlew design:connectedCheck --info --daemon
-Pandroid.testInstrumentationRunnerArguments.class=android.support.design.widget.AppBarWithCollapsingToolbarTest
Test: ./gradlew design:connectedCheck --info --daemon
-Pandroid.testInstrumentationRunnerArguments.package=android.support.design.widget
Bug: 33824951
Change-Id: Ida605ab53cc156c44d9cc8b14fb8ce7a024b18c5
PiperOrigin-RevId: 174240782
2017-11-14 14:41:59 -05:00

107 lines
3.4 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright (C) 2017 The Android Open Source Project
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
package="android.support.design.testapp">
<uses-sdk
android:minSdkVersion="14"
android:targetSdkVersion="25"
tools:overrideLibrary="android.support.test, android.app, android.support.test.rule, android.support.test.espresso, android.support.test.espresso.idling"/>
<application
android:supportsRtl="true"
android:theme="@style/Theme.Design">
<activity
android:name=".AppBarHorizontalScrollingActivity"
android:theme="@style/Theme.AppCompat.NoActionBar"/>
<activity
android:name=".AppBarLayoutCollapsePinActivity"
android:theme="@style/Theme.TranslucentStatus"/>
<activity
android:name=".AppBarWithScrollbarsActivity"
android:theme="@style/Theme.AppCompat.Light.DarkActionBar"/>
<activity android:name="android.support.v7.app.AppCompatActivity"/>
<activity
android:name=".BottomNavigationViewActivity"
android:theme="@style/Theme.AppCompat.NoActionBar"/>
<activity
android:name=".BottomSheetBehaviorActivity"
android:theme="@style/Theme.AppCompat.NoActionBar"/>
<activity
android:name=".BottomSheetBehaviorWithInsetsActivity"
android:theme="@style/Theme.AppCompat.NoActionBar"/>
<activity
android:name=".BottomSheetDialogActivity"
android:theme="@style/Theme.AppCompat.NoActionBar"/>
<activity
android:name=".CoordinatorLayoutActivity"
android:theme="@style/Theme.AppCompat.NoActionBar"/>
<activity
android:name=".DynamicCoordinatorLayoutActivity"
android:theme="@style/Theme.TranslucentStatus"/>
<activity
android:name=".FloatingActionButtonActivity"
android:theme="@style/Theme.AppCompat.Light.NoActionBar"/>
<activity
android:name=".ExpandableTransformationActivity"
android:theme="@style/Theme.AppCompat.NoActionBar"/>
<activity
android:name=".NavigationViewActivity"
android:theme="@style/Theme.AppCompat.NoActionBar"/>
<activity
android:name=".SnackbarActivity"
android:theme="@style/Theme.AppCompat.NoActionBar"/>
<activity
android:name=".SnackbarWithTranslucentNavBarActivity"
android:theme="@style/Theme.TranslucentNavBar"/>
<activity
android:name=".SnackbarWithFabActivity"
android:theme="@style/Theme.AppCompat.NoActionBar"/>
<activity
android:name=".TabLayoutPoolingActivity"
android:theme="@style/Theme.AppCompat.NoActionBar"/>
<activity
android:name=".TabLayoutWithViewPagerActivity"
android:theme="@style/Theme.AppCompat.NoActionBar"/>
<activity
android:name=".TextInputLayoutActivity"
android:theme="@style/Theme.AppCompat.NoActionBar"/>
</application>
</manifest>