Searched refs:vwidth (Results 1 – 2 of 2) sorted by relevance
1289 final int vwidth = getWidth() - mPaddingLeft - mPaddingRight; in configureBounds() local1292 final boolean fits = (dwidth < 0 || vwidth == dwidth) in configureBounds()1299 mDrawable.setBounds(0, 0, vwidth, vheight); in configureBounds()1327 if (dwidth * vheight > vwidth * dheight) { in configureBounds()1329 dx = (vwidth - dwidth * scale) * 0.5f; in configureBounds()1331 scale = (float) vwidth / (float) dwidth; in configureBounds()1343 if (dwidth <= vwidth && dheight <= vheight) { in configureBounds()1346 scale = Math.min((float) vwidth / (float) dwidth, in configureBounds()1350 dx = Math.round((vwidth - dwidth * scale) * 0.5f); in configureBounds()1358 mTempDst.set(0, 0, vwidth, vheight); in configureBounds()[all …]
348 int vwidth = getBounds().width(); in onBoundsChange() local355 if (dwidth * vheight > vwidth * dheight) { in onBoundsChange()358 scale = (float) vwidth / (float) dwidth; in onBoundsChange()