TextView

Page 1 2 3 4 5

public void setTextCursorDrawable(android.graphics.drawable.Drawable drawable) source
public void setTextCursorDrawable(int res) source
public void setEllipsize(TextUtils.TruncateAt where) source
public TextUtils.TruncateAt getEllipsize() source
public void setLineSpacing(float add, float mult) source
public float getLineSpacingExtra() source
public float getLineSpacingMultiplier() source
public void setLineHeight(int lineHeight) source

the distance between two lines' baselines: the spacing added to the font's own height, as Android sets it

public void setLineHeight(int unit, float lineHeight) source

setLineHeight in a unit of TypedValue's (API level 34)

public int getLineHeight() source
public void setIncludeFontPadding(boolean includepad) source
public boolean getIncludeFontPadding() source
public void setBreakStrategy(int breakStrategy) source
public int getBreakStrategy() source
public void setHyphenationFrequency(int hyphenationFrequency) source
public int getHyphenationFrequency() source
public void setJustificationMode(int justificationMode) source

Layout.JUSTIFICATION_MODE_*: kept and given to the layout, which lays lines out unjustified

public int getJustificationMode() source
public void setHorizontallyScrolling(boolean whether) source
public final boolean isHorizontallyScrollable() source
public void setFirstBaselineToTopHeight(int firstBaselineToTopHeight) source

The top padding becomes what puts the first baseline at this distance from the top.

public void setLastBaselineToBottomHeight(int lastBaselineToBottomHeight) source

Auto-size

public void setAutoSizeTextTypeWithDefaults(int autoSizeTextType) source
public void setAutoSizeTextTypeUniformWithConfiguration(int autoSizeMinTextSize, int autoSizeMaxTextSize, int autoSizeStepGranularity, int unit) source
public void setAutoSizeTextTypeUniformWithPresetSizes(int[] presetSizes, int unit) source
public int getAutoSizeTextType() source
public int getAutoSizeStepGranularity() source
public int getAutoSizeMinTextSize() source
public int getAutoSizeMaxTextSize() source
public int[] getAutoSizeTextAvailableSizes() source

Compound drawables

public void setCompoundDrawables(Drawable left, Drawable top, Drawable right, Drawable bottom) source
public void setCompoundDrawablesWithIntrinsicBounds(Drawable left, Drawable top, Drawable right, Drawable bottom) source
public void setCompoundDrawablesWithIntrinsicBounds(int left, int top, int right, int bottom) source

Page 1 2 3 4 5


Made from ScarletNX's Sail at 166ad3910f80. The framework is ScarletNX's (GPL-3.0-or-later); the parts that follow the Android Open Source Project's sources (Apache-2.0) say so in their files.