Home
last modified time | relevance | path

Searched refs:fab (Results 1 – 25 of 33) sorted by relevance

12

/frameworks/support/design/tests/src/android/support/design/widget/
DAppBarWithAnchoredFabMarginsTest.java41 final FloatingActionButton fab = in testFabBottomMargin() local
42 (FloatingActionButton) mCoordinatorLayout.findViewById(R.id.fab); in testFabBottomMargin()
44 (CoordinatorLayout.LayoutParams) fab.getLayoutParams(); in testFabBottomMargin()
50 fab.getLocationOnScreen(fabOnScreenXY); in testFabBottomMargin()
54 fabOnScreenXY[0] + fab.getWidth() / 2, 1); in testFabBottomMargin()
60 fabOnScreenXY[1] + fab.getHeight() / 2, 1); in testFabBottomMargin()
68 final FloatingActionButton fab = in testFabTopMargin() local
69 (FloatingActionButton) mCoordinatorLayout.findViewById(R.id.fab); in testFabTopMargin()
71 (CoordinatorLayout.LayoutParams) fab.getLayoutParams(); in testFabTopMargin()
77 fab.getLocationOnScreen(fabOnScreenXY); in testFabTopMargin()
[all …]
DCoordinatorSnackbarWithFabTest.java112 final FloatingActionButton fab = in testBuiltInSliding() local
113 (FloatingActionButton) mCoordinatorLayout.findViewById(R.id.fab); in testBuiltInSliding()
114 verifySnackbarViewStacking(fab, fab.getPaddingBottom() in testBuiltInSliding()
115 - ((ViewGroup.MarginLayoutParams) fab.getLayoutParams()).bottomMargin); in testBuiltInSliding()
122 onView(withId(R.id.fab)).perform(setVisibility(View.GONE)); in testBuiltInSlidingFromHiddenFab()
131 onView(withId(R.id.fab)).perform(setVisibility(View.VISIBLE)); in testBuiltInSlidingFromHiddenFab()
132 final FloatingActionButton fab = in testBuiltInSlidingFromHiddenFab() local
133 (FloatingActionButton) mCoordinatorLayout.findViewById(R.id.fab); in testBuiltInSlidingFromHiddenFab()
134 verifySnackbarViewStacking(fab, fab.getPaddingBottom() in testBuiltInSlidingFromHiddenFab()
135 - ((ViewGroup.MarginLayoutParams) fab.getLayoutParams()).bottomMargin); in testBuiltInSlidingFromHiddenFab()
DAppBarWithCollapsingToolbarTest.java238 final FloatingActionButton fab = in testPinnedToolbarAndAnchoredFab() local
239 (FloatingActionButton) mCoordinatorLayout.findViewById(R.id.fab); in testPinnedToolbarAndAnchoredFab()
270 assertEquals(0.0f, fab.getScaleX(), 0.0f); in testPinnedToolbarAndAnchoredFab()
271 assertEquals(0.0f, fab.getScaleY(), 0.0f); in testPinnedToolbarAndAnchoredFab()
272 assertEquals(0.0f, fab.getAlpha(), 0.0f); in testPinnedToolbarAndAnchoredFab()
288 assertEquals(1.0f, fab.getScaleX(), 0.0f); in testPinnedToolbarAndAnchoredFab()
289 assertEquals(1.0f, fab.getScaleY(), 0.0f); in testPinnedToolbarAndAnchoredFab()
290 assertEquals(1.0f, fab.getAlpha(), 0.0f); in testPinnedToolbarAndAnchoredFab()
/frameworks/support/design/src/android/support/design/widget/
DFloatingActionButton.java79 public void onShown(FloatingActionButton fab) {} in onShown() argument
87 public void onHidden(FloatingActionButton fab) {} in onHidden() argument
623 final FloatingActionButton fab, boolean animationAllowed) {
624 final float targetTransY = getFabTranslationYForSnackbar(parent, fab);
630 final float currentTransY = ViewCompat.getTranslationY(fab);
637 if (animationAllowed && fab.isShown()
638 && Math.abs(currentTransY - targetTransY) > (fab.getHeight() * 0.667f)) {
649 ViewCompat.setTranslationY(fab,
658 ViewCompat.setTranslationY(fab, targetTransY);
665 FloatingActionButton fab) {
[all …]
/frameworks/support/design/tests/src/android/support/design/testutils/
DFloatingActionButtonActions.java49 final FloatingActionButton fab = (FloatingActionButton) view; in setBackgroundTintColor() local
50 fab.setBackgroundTintList(ColorStateList.valueOf(color)); in setBackgroundTintColor()
73 final FloatingActionButton fab = (FloatingActionButton) view;
74 fab.setImageResource(resId);
97 final FloatingActionButton fab = (FloatingActionButton) view;
98 fab.setSize(size);
DTestUtilsMatchers.java235 final FloatingActionButton fab = (FloatingActionButton) view;
240 fab.getContentRect(area);
251 fab.getBackground(), view.getWidth(), view.getHeight(), false,
307 final FloatingActionButton fab = (FloatingActionButton) view;
309 fab.getContentRect(area);
/frameworks/base/docs/html-intl/intl/zh-cn/
Dindex.jd52 <a class="dac-fab dac-scroll-button" data-scroll-button href="#build-apps">
80 <a class="dac-fab dac-scroll-button" data-scroll-button="" href="#build-apps">
/frameworks/base/docs/html-intl/intl/ru/
Dindex.jd52 <a class="dac-fab dac-scroll-button" data-scroll-button href="#build-apps">
80 <a class="dac-fab dac-scroll-button" data-scroll-button="" href="#build-apps">
/frameworks/base/docs/html-intl/intl/zh-tw/
Dindex.jd52 <a class="dac-fab dac-scroll-button" data-scroll-button href="#build-apps">
80 <a class="dac-fab dac-scroll-button" data-scroll-button="" href="#build-apps">
/frameworks/base/docs/html-intl/intl/ja/
Dindex.jd52 <a class="dac-fab dac-scroll-button" data-scroll-button href="#build-apps">
80 <a class="dac-fab dac-scroll-button" data-scroll-button="" href="#build-apps">
/frameworks/base/docs/html-intl/intl/ko/
Dindex.jd52 <a class="dac-fab dac-scroll-button" data-scroll-button href="#build-apps">
80 <a class="dac-fab dac-scroll-button" data-scroll-button="" href="#build-apps">
/frameworks/base/docs/html-intl/intl/es/
Dindex.jd52 <a class="dac-fab dac-scroll-button" data-scroll-button href="#build-apps">
80 <a class="dac-fab dac-scroll-button" data-scroll-button="" href="#build-apps">
/frameworks/base/docs/html/
Dindex.jd54 <a class="dac-fab dac-scroll-button" data-scroll-button href="#build-apps">
82 <a class="dac-fab dac-scroll-button" data-scroll-button="" href="#build-apps">
/frameworks/base/docs/html-intl/intl/pt-br/
Dindex.jd52 <a class="dac-fab dac-scroll-button" data-scroll-button href="#build-apps">
80 <a class="dac-fab dac-scroll-button" data-scroll-button="" href="#build-apps">
/frameworks/base/docs/html/work/
Dindex.jd41 <a class="dac-fab dac-scroll-button" data-scroll-button href="#resources">
/frameworks/base/docs/html/ndk/
Dindex.jd39 <a class="dac-fab dac-scroll-button" data-scroll-button href="#latest">
/frameworks/base/docs/html/about/versions/marshmallow/
Dindex.jd45 <a class="dac-fab dac-scroll-button" data-scroll-button href="#resources">
/frameworks/base/docs/html/design/
Dindex.jd46 <a class="dac-fab dac-scroll-button" data-scroll-button href="#latest">
/frameworks/base/docs/html/google/
Dindex.jd37 <a class="dac-fab dac-scroll-button" data-scroll-button href="#latest">
/frameworks/base/docs/html-intl/intl/ru/preview/
Dindex.jd59 <a class="dac-fab dac-scroll-button" data-scroll-button="" href="#build-apps">
/frameworks/base/docs/html-intl/intl/zh-tw/preview/
Dindex.jd59 <a class="dac-fab dac-scroll-button" data-scroll-button href="#build-apps">
/frameworks/base/docs/html/wear/preview/
Dindex.jd60 <a class="dac-fab dac-scroll-button" data-scroll-button href="#build-apps">
/frameworks/base/docs/html-intl/intl/zh-cn/preview/
Dindex.jd59 <a class="dac-fab dac-scroll-button" data-scroll-button href="#build-apps">
/frameworks/base/docs/html-intl/intl/ko/preview/
Dindex.jd59 <a class="dac-fab dac-scroll-button" data-scroll-button href="#build-apps">
/frameworks/base/docs/html-intl/intl/ja/preview/
Dindex.jd59 <a class="dac-fab dac-scroll-button" data-scroll-button href="#build-apps">

12