Lines Matching refs:drawables
312 static class Drawables {
336 public Drawables(Context context) {
344 // First reset "left" and "right" drawables to their initial values
362 // JB-MR1+ normal case: "start" / "end" drawables are overriding "left" / "right"
477 Drawables mDrawables;
1239 // This call will save the initial left/right drawables
1388 Drawables dr = mDrawables;
1390 mDrawables = dr = new Drawables(getContext());
1778 final Drawables dr = mDrawables;
1791 final Drawables dr = mDrawables;
1804 final Drawables dr = mDrawables;
1817 final Drawables dr = mDrawables;
1980 * Sets the Drawables (if any) to appear to the left of, above, to the
1982 * Drawable there. The Drawables must already have had
1985 * Calling this method will overwrite any Drawables previously set using
1995 Drawables dr = mDrawables;
2007 final boolean drawables = left != null || top != null || right != null || bottom != null;
2008 if (!drawables) {
2009 // Clearing drawables... can we free the data structure?
2032 mDrawables = dr = new Drawables(getContext());
2103 // Save initial left/right drawables
2116 * Sets the Drawables (if any) to appear to the left of, above, to the
2118 * The Drawables' bounds will be set to their intrinsic bounds.
2120 * Calling this method will overwrite any Drawables previously set using
2143 * Sets the Drawables (if any) to appear to the left of, above, to the
2145 * Drawable there. The Drawables' bounds will be set to their intrinsic
2148 * Calling this method will overwrite any Drawables previously set using
2175 * Sets the Drawables (if any) to appear to the start of, above, to the end
2177 * there. The Drawables must already have had {@link Drawable#setBounds}
2180 * Calling this method will overwrite any Drawables previously set using
2190 Drawables dr = mDrawables;
2202 final boolean drawables = start != null || top != null
2205 if (!drawables) {
2206 // Clearing drawables... can we free the data structure?
2229 mDrawables = dr = new Drawables(getContext());
2307 * Sets the Drawables (if any) to appear to the start of, above, to the end
2309 * Drawables' bounds will be set to their intrinsic bounds.
2311 * Calling this method will overwrite any Drawables previously set using
2336 * Sets the Drawables (if any) to appear to the start of, above, to the end
2338 * there. The Drawables' bounds will be set to their intrinsic bounds.
2340 * Calling this method will overwrite any Drawables previously set using
2367 * Returns drawables for the left, top, right, and bottom borders.
2376 final Drawables dr = mDrawables;
2387 * Returns drawables for the start, top, end, and bottom borders.
2396 final Drawables dr = mDrawables;
2407 * Sets the size of the padding between the compound drawables and
2414 Drawables dr = mDrawables;
2421 mDrawables = dr = new Drawables(getContext());
2431 * Returns the padding between the compound drawables and the text.
2436 final Drawables dr = mDrawables;
3656 final Drawables dr = mDrawables;
3684 final Drawables dr = mDrawables;
5069 final TextView.Drawables drawables = mDrawables;
5070 if (drawables != null) {
5071 if (drawable == drawables.mDrawableLeft) {
5077 scrollY += compoundPaddingTop + (vspace - drawables.mDrawableHeightLeft) / 2;
5079 } else if (drawable == drawables.mDrawableRight) {
5084 scrollX += (mRight - mLeft - mPaddingRight - drawables.mDrawableSizeRight);
5085 scrollY += compoundPaddingTop + (vspace - drawables.mDrawableHeightRight) / 2;
5087 } else if (drawable == drawables.mDrawableTop) {
5092 scrollX += compoundPaddingLeft + (hspace - drawables.mDrawableWidthTop) / 2;
5095 } else if (drawable == drawables.mDrawableBottom) {
5100 scrollX += compoundPaddingLeft + (hspace - drawables.mDrawableWidthBottom) / 2;
5101 scrollY += (mBottom - mTop - mPaddingBottom - drawables.mDrawableSizeBottom);
5287 final Drawables dr = mDrawables;
6578 final Drawables dr = mDrawables;
6721 final Drawables dr = mDrawables;
8957 // Resolve drawables