Searched refs:fab (Results 1 - 6 of 6) sorted by relevance
/frameworks/support/design/tests/src/android/support/design/widget/ |
H A D | AppBarWithAnchoredFabMarginsTest.java | 41 final FloatingActionButton fab = 42 (FloatingActionButton) mCoordinatorLayout.findViewById(R.id.fab); 44 (CoordinatorLayout.LayoutParams) fab.getLayoutParams(); 50 fab.getLocationOnScreen(fabOnScreenXY); 54 fabOnScreenXY[0] + fab.getWidth() / 2, 1); 60 fabOnScreenXY[1] + fab.getHeight() / 2, 1); 68 final FloatingActionButton fab = 69 (FloatingActionButton) mCoordinatorLayout.findViewById(R.id.fab); 71 (CoordinatorLayout.LayoutParams) fab.getLayoutParams(); 77 fab [all...] |
H A D | CoordinatorSnackbarWithFabTest.java | 112 final FloatingActionButton fab = 113 (FloatingActionButton) mCoordinatorLayout.findViewById(R.id.fab); 114 verifySnackbarViewStacking(fab, fab.getPaddingBottom() 115 - ((ViewGroup.MarginLayoutParams) fab.getLayoutParams()).bottomMargin); 122 onView(withId(R.id.fab)).perform(setVisibility(View.GONE)); 131 onView(withId(R.id.fab)).perform(setVisibility(View.VISIBLE)); 132 final FloatingActionButton fab = 133 (FloatingActionButton) mCoordinatorLayout.findViewById(R.id.fab); 134 verifySnackbarViewStacking(fab, fa [all...] |
H A D | AppBarWithCollapsingToolbarTest.java | 238 final FloatingActionButton fab = 239 (FloatingActionButton) mCoordinatorLayout.findViewById(R.id.fab); 270 assertEquals(0.0f, fab.getScaleX(), 0.0f); 271 assertEquals(0.0f, fab.getScaleY(), 0.0f); 272 assertEquals(0.0f, fab.getAlpha(), 0.0f); 288 assertEquals(1.0f, fab.getScaleX(), 0.0f); 289 assertEquals(1.0f, fab.getScaleY(), 0.0f); 290 assertEquals(1.0f, fab.getAlpha(), 0.0f);
|
/frameworks/support/design/tests/src/android/support/design/testutils/ |
H A D | FloatingActionButtonActions.java | 49 final FloatingActionButton fab = (FloatingActionButton) view; 50 fab.setBackgroundTintList(ColorStateList.valueOf(color)); 73 final FloatingActionButton fab = (FloatingActionButton) view; 74 fab.setImageResource(resId); 97 final FloatingActionButton fab = (FloatingActionButton) view; 98 fab.setSize(size);
|
H A D | TestUtilsMatchers.java | 235 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/support/design/src/android/support/design/widget/ |
H A D | FloatingActionButton.java | 77 * @param fab the FloatingActionButton that was shown. 79 public void onShown(FloatingActionButton fab) {} argument 85 * @param fab the FloatingActionButton that was hidden. 87 public void onHidden(FloatingActionButton fab) {} 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, 622 updateFabTranslationForSnackbar(CoordinatorLayout parent, final FloatingActionButton fab, boolean animationAllowed) argument 664 getFabTranslationYForSnackbar(CoordinatorLayout parent, FloatingActionButton fab) argument 705 offsetIfNeeded(CoordinatorLayout parent, FloatingActionButton fab) argument [all...] |
Completed in 106 milliseconds