Searched refs:screenWidth (Results 1 – 11 of 11) sorted by relevance
44 private int screenWidth; field in FloatingActionButtonController64 public void setScreenWidth(int screenWidth) { in setScreenWidth() argument65 this.screenWidth = screenWidth; in setScreenWidth()129 if (screenWidth == 0) { in align()178 result = screenWidth / 4; in getTranslationXForAlignment()182 result = screenWidth / 2 - floatingActionButtonWidth / 2 - floatingActionButtonMarginRight; in getTranslationXForAlignment()
966 int screenWidth; in chooseBestPictureSize() local978 screenWidth = displayMetrics.widthPixels; in chooseBestPictureSize()981 screenWidth = displayMetrics.heightPixels; in chooseBestPictureSize()990 final float scaleFactor = getScaleFactorForMaxAllowedSize(screenWidth, screenHeight, in chooseBestPictureSize()992 screenWidth *= scaleFactor; in chooseBestPictureSize()997 screenWidth / (float) screenHeight); in chooseBestPictureSize()
198 float screenWidth = getWidth() / mRenderer.scale; in setParallaxOffset() local199 mCenterX = screenWidth / 2 + offset * (crop.width() - screenWidth) + crop.left; in setParallaxOffset()
72 public void setScreenWidth(int screenWidth) { in setScreenWidth() argument73 mScreenWidth = screenWidth; in setScreenWidth()
94 final int screenWidth = context.getResources().getDisplayMetrics().widthPixels; in onLongClick() local100 (screenPos[0] + width / 2) - screenWidth / 2, screenPos[1] + height); in onLongClick()
84 int screenWidth = mViewPager.getResources().getDisplayMetrics().widthPixels; in PreviewPager() local86 hMargin = Math.max(hMargin, screenWidth/8); in PreviewPager()
291 final int screenWidth = context.getResources().getDisplayMetrics().widthPixels; in onLongClick() local299 (screenPos[0] + width / 2) - screenWidth / 2, in onLongClick()
31 public static float screenWidth(Activity activity) { in screenWidth() method in Display
68 int width = (int) Display.screenWidth((Activity)context); in HeaderView()
82 float width = Display.screenWidth(activity) - Display.actionBarHeight(activity); in calculateDrawerWidth()
461 int screenWidth = parentLayout.getWidth(); in onCreate()462 floatingActionButtonController.setScreenWidth(screenWidth); in onCreate()