Searched refs:rsc (Results 1 – 3 of 3) sorted by relevance
98 Resources rsc = context.getResources(); in setup() local99 mShadow = (NinePatchDrawable) rsc.getDrawable(R.drawable.geometry_shadow); in setup()100 mCropIndicator = rsc.getDrawable(R.drawable.camera_crop); in setup()101 mIndicatorSize = (int) rsc.getDimension(R.dimen.crop_indicator_size); in setup()102 mShadowMargin = (int) rsc.getDimension(R.dimen.shadow_margin); in setup()103 mMargin = (int) rsc.getDimension(R.dimen.preview_margin); in setup()104 mMinSideSize = (int) rsc.getDimension(R.dimen.crop_min_side); in setup()105 mTouchTolerance = (int) rsc.getDimension(R.dimen.crop_touch_tolerance); in setup()106 mOverlayShadowColor = (int) rsc.getColor(R.color.crop_shadow_color); in setup()107 mOverlayWPShadowColor = (int) rsc.getColor(R.color.crop_shadow_wp_color); in setup()[all …]
83 public Drawable getDrawable(int rsc) { in getDrawable() argument84 Drawable drawable = mDrawables.get(rsc); in getDrawable()85 if (drawable == null && mResources != null && rsc != 0) { in getDrawable()86 … drawable = new BitmapDrawable(mResources, BitmapFactory.decodeResource(mResources, rsc)); in getDrawable()87 mDrawables.put(rsc, drawable); in getDrawable()
81 Resources rsc = context.getResources(); in setup() local82 mCropIndicator = rsc.getDrawable(R.drawable.camera_crop); in setup()83 mIndicatorSize = (int) rsc.getDimension(R.dimen.crop_indicator_size); in setup()84 mMinSideSize = (int) rsc.getDimension(R.dimen.crop_min_side); in setup()85 mTouchTolerance = (int) rsc.getDimension(R.dimen.crop_touch_tolerance); in setup()