Home
last modified time | relevance | path

Searched refs:appBarLayout (Results 1 – 7 of 7) sorted by relevance

/packages/apps/DocumentsUI/src/com/android/documentsui/ui/
DSearchBarScrollingViewBehavior.java45 final AppBarLayout appBarLayout = (AppBarLayout) dependency; in onDependentViewChanged() local
46 setAppBarLayoutTransparent(appBarLayout); in onDependentViewChanged()
51 private void setAppBarLayoutTransparent(AppBarLayout appBarLayout) { in setAppBarLayoutTransparent() argument
52 appBarLayout.setBackgroundColor(Color.TRANSPARENT); in setAppBarLayoutTransparent()
53 appBarLayout.setTargetElevation(0); in setAppBarLayoutTransparent()
/packages/apps/Settings/src/com/android/settings/widget/
DFloatingAppBarScrollingViewBehavior.java45 AppBarLayout appBarLayout = (AppBarLayout) dependency; in onDependentViewChanged() local
46 setAppBarLayoutTransparent(appBarLayout); in onDependentViewChanged()
52 void setAppBarLayoutTransparent(AppBarLayout appBarLayout) { in setAppBarLayoutTransparent() argument
53 appBarLayout.setBackgroundColor(Color.TRANSPARENT); in setAppBarLayoutTransparent()
54 appBarLayout.setTargetElevation(0); in setAppBarLayoutTransparent()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/widget/
DFloatingAppBarScrollingViewBehavior.java45 AppBarLayout appBarLayout = (AppBarLayout) dependency; in onDependentViewChanged() local
46 setAppBarLayoutTransparent(appBarLayout); in onDependentViewChanged()
52 void setAppBarLayoutTransparent(AppBarLayout appBarLayout) { in setAppBarLayoutTransparent() argument
53 appBarLayout.setBackgroundColor(Color.TRANSPARENT); in setAppBarLayoutTransparent()
54 appBarLayout.setTargetElevation(0); in setAppBarLayoutTransparent()
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/ui/
DSearchBarScrollingViewBehaviorTest.java58 final AppBarLayout appBarLayout = new AppBarLayout(mContext); in setAppBarLayoutTransparent_defaultWhiteBackground_shouldBeTransparent() local
61 appBarLayout.setLayoutParams(lp); in setAppBarLayoutTransparent_defaultWhiteBackground_shouldBeTransparent()
62 appBarLayout.setBackgroundColor(Color.WHITE); in setAppBarLayoutTransparent_defaultWhiteBackground_shouldBeTransparent()
63 mScrollingViewBehavior.onDependentViewChanged(coordinatorLayout, null, appBarLayout); in setAppBarLayoutTransparent_defaultWhiteBackground_shouldBeTransparent()
65 assertEquals(Color.TRANSPARENT, ((ColorDrawable) appBarLayout.getBackground()).getColor()); in setAppBarLayoutTransparent_defaultWhiteBackground_shouldBeTransparent()
/packages/apps/Settings/tests/robotests/src/com/android/settings/widget/
DFloatingAppBarScrollingViewBehaviorTest.java57 final AppBarLayout appBarLayout = new AppBarLayout(mContext); in setAppBarLayoutTransparent_backgroundDefaultAsWhite_shouldBeTransparent() local
58 appBarLayout.setBackgroundColor(Color.WHITE); in setAppBarLayoutTransparent_backgroundDefaultAsWhite_shouldBeTransparent()
59 mScrollingViewBehavior.setAppBarLayoutTransparent(appBarLayout); in setAppBarLayoutTransparent_backgroundDefaultAsWhite_shouldBeTransparent()
60 assertThat(((ColorDrawable) appBarLayout.getBackground()).getColor()).isEqualTo( in setAppBarLayoutTransparent_backgroundDefaultAsWhite_shouldBeTransparent()
/packages/apps/DocumentsUI/src/com/android/documentsui/
DBaseActivity.java650 final AppBarLayout appBarLayout = findViewById(R.id.app_bar); in expandAppBar() local
651 if (appBarLayout != null) { in expandAppBar()
652 appBarLayout.setExpanded(true); in expandAppBar()
/packages/apps/DocumentsUI/src/com/android/documentsui/dirlist/
DDirectoryFragment.java550 View appBarLayout = getActivity().findViewById(R.id.app_bar); in getAppBarLayoutHeight() local
552 return collapsingBar == null ? 0 : appBarLayout.getHeight(); in getAppBarLayoutHeight()