mMaxTextSize = getTextSize(); mAvailableSpaceRect = new RectF(); mTextCachedSizes = new SparseIntArray(); if (mMaxLines == 0) { public void setTextSize(float size) { mMaxTextSize = size; mTextCachedSizes.clear(); adjustTextSize(); mMaxTextSize = TypedValue.applyDimension(unit, size, r.getDisplayMetrics()); mTextCachedSizes.clear(); adjustTextSize(); mTextCachedSizes.clear(); adjustTextSize(getText().toString()); int size = mTextCachedSizes.get(key); if (size != 0) { return size; mTextCachedSizes.put(key, size); return size; int oldheight) { mInitializedDimens = true; mTextCachedSizes.clear(); super.onSizeChanged(width, height, oldwidth, oldheight);
@Override public void readASCII(Scanner in) throws IOException { values = new SparseBinSearchFloatArray(0); values.readASCII(in); }
@Override public void readBinary(DataInput in) throws IOException { values = new SparseBinSearchDoubleArray(0); values.readBinary(in); }
@Override public void readASCII(Scanner in) throws IOException { values = new SparseBinSearchDoubleArray(0); values.readASCII(in); }
@Override public void readBinary(DataInput in) throws IOException { values = new SparseBinSearchByteArray(0); values.readBinary(in); }
@Override public void readASCII(Scanner in) throws IOException { values = new SparseBinSearchIntArray(0); values.readASCII(in); }
@Override public Iterable<DualEntry> unionEntries(final SparseFloatArray otherArray) { if (otherArray instanceof SparseBinSearchFloatArray) { return unionEntries((SparseBinSearchFloatArray) otherArray); } return super.unionEntries(otherArray); }
@Override public Iterable<DualEntry> unionEntries(final SparseByteArray otherArray) { if (otherArray instanceof SparseBinSearchByteArray) { return unionEntries((SparseBinSearchByteArray) otherArray); } return super.unionEntries(otherArray); }
@Override public void readBinary(DataInput in) throws IOException { values = new SparseBinSearchIntArray(0); values.readBinary(in); }
@Override public void readASCII(Scanner in) throws IOException { values = new SparseBinSearchLongArray(0); values.readASCII(in); }
@Override public Iterable<DualEntry> unionEntries(final SparseIntArray otherArray) { if (otherArray instanceof SparseBinSearchIntArray) { return unionEntries((SparseBinSearchIntArray) otherArray); } return super.unionEntries(otherArray); }
@Override public void readASCII(Scanner in) throws IOException { values = new SparseBinSearchShortArray(0); values.readASCII(in); }
@Override public Iterable<DualEntry> unionEntries(final SparseLongArray otherArray) { if (otherArray instanceof SparseBinSearchLongArray) { return unionEntries((SparseBinSearchLongArray) otherArray); } return super.unionEntries(otherArray); }
@Override public void readBinary(DataInput in) throws IOException { values = new SparseBinSearchShortArray(0); values.readBinary(in); }
@Override public void readASCII(Scanner in) throws IOException { values = new SparseBinSearchByteArray(0); values.readASCII(in); }
@Override public void readBinary(DataInput in) throws IOException { values = new SparseBinSearchLongArray(0); values.readBinary(in); }
mMaxTextSize = getTextSize(); mAvailableSpaceRect = new RectF(); mTextCachedSizes = new SparseIntArray(); if (mMaxLines == 0) { public void setTextSize(float size) { mMaxTextSize = size; mTextCachedSizes.clear(); adjustTextSize(getText().toString()); mMaxTextSize = TypedValue.applyDimension(unit, size, r.getDisplayMetrics()); mTextCachedSizes.clear(); adjustTextSize(getText().toString()); mTextCachedSizes.clear(); adjustTextSize(getText().toString()); int size = mTextCachedSizes.get(key); if (size != 0) { return size; mTextCachedSizes.put(key, size); return size; protected void onSizeChanged(int width, int height, int oldwidth, int oldheight) { mTextCachedSizes.clear(); super.onSizeChanged(width, height, oldwidth, oldheight);
@Override public void readASCII(Scanner in) throws IOException { values = new SparseBinSearchFloatArray(0); values.readASCII(in); }
@Override public void readBinary(DataInput in) throws IOException { values = new SparseBinSearchByteArray(0); values.readBinary(in); }
@Override public void readASCII(Scanner in) throws IOException { values = new SparseBinSearchIntArray(0); values.readASCII(in); }