mirror of
https://github.com/material-components/material-components-android.git
synced 2026-02-20 08:39:55 +08:00
Fix CollapsingToolbarLayout tests
am: b539fd5711 Change-Id: Ida0b5a86948aaac6d010660275c4bd6a45d380db GitOrigin-RevId=61b3959efb64d18358645762023abf36cec2cc53 PiperOrigin-RevId: 140564437
This commit is contained in:
parent
cc00b5169e
commit
7ae0f4523b
@ -26,7 +26,7 @@
|
||||
<dimen name="drawable_medium_size">16dip</dimen>
|
||||
<dimen name="drawable_large_size">20dip</dimen>
|
||||
|
||||
<dimen name="appbar_height">192dip</dimen>
|
||||
<dimen name="appbar_height">160dip</dimen>
|
||||
<dimen name="fab_margin">32dip</dimen>
|
||||
|
||||
<dimen name="fab_mini_height">40dp</dimen>
|
||||
|
||||
@ -159,11 +159,12 @@ public class AppBarWithCollapsingToolbarTest extends AppBarLayoutBaseTest {
|
||||
|
||||
assertAppBarElevation(0f);
|
||||
|
||||
// Perform a swipe-up gesture across the horizontal center of the screen.
|
||||
// Perform a swipe-up gesture across the horizontal center of the screen, starting from
|
||||
// just below the AppBarLayout
|
||||
performVerticalSwipeUpGesture(
|
||||
R.id.coordinator_layout,
|
||||
centerX,
|
||||
originalAppbarBottom + longSwipeAmount / 2,
|
||||
originalAppbarBottom + 20,
|
||||
longSwipeAmount);
|
||||
|
||||
mAppBar.getLocationOnScreen(appbarOnScreenXY);
|
||||
|
||||
@ -64,11 +64,12 @@ public class AppBarWithToolbarAndTabsTest extends AppBarLayoutBaseTest {
|
||||
final int longSwipeAmount = 3 * appbarHeight / 2;
|
||||
final int shortSwipeAmount = toolbarHeight;
|
||||
|
||||
// Perform a swipe-up gesture across the horizontal center of the screen.
|
||||
// Perform a swipe-up gesture across the horizontal center of the screen, starting from
|
||||
// just below the AppBarLayout
|
||||
performVerticalSwipeUpGesture(
|
||||
R.id.coordinator_layout,
|
||||
centerX,
|
||||
originalAppbarBottom + 3 * longSwipeAmount / 2,
|
||||
originalAppbarBottom + 20,
|
||||
longSwipeAmount);
|
||||
|
||||
mAppBar.getLocationOnScreen(appbarOnScreenXY);
|
||||
@ -156,11 +157,12 @@ public class AppBarWithToolbarAndTabsTest extends AppBarLayoutBaseTest {
|
||||
final int longSwipeAmount = 3 * appbarHeight / 2;
|
||||
final int shortSwipeAmount = toolbarHeight;
|
||||
|
||||
// Perform a swipe-up gesture across the horizontal center of the screen.
|
||||
// Perform a swipe-up gesture across the horizontal center of the screen, starting from
|
||||
// just below the AppBarLayout
|
||||
performVerticalSwipeUpGesture(
|
||||
R.id.coordinator_layout,
|
||||
centerX,
|
||||
originalAppbarBottom + 3 * longSwipeAmount / 2,
|
||||
originalAppbarBottom + 20,
|
||||
longSwipeAmount);
|
||||
|
||||
mAppBar.getLocationOnScreen(appbarOnScreenXY);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user