TextView - setting the text size programmatically doesn't seem to work

前端 未结 7 1228
灰色年华
灰色年华 2020-12-12 17:49

I am using Eclipse Indigo, testing on 2 emulators(2.2 and 3.0).

the code below shows what I am testing now, however setting the text size reveals nothing on the scre

相关标签:
7条回答
  • 2020-12-12 18:32

    Please see this link for more information on setting the text size in code. Basically it says:

    public void setTextSize (int unit, float size)

    Since: API Level 1 Set the default text size to a given unit and value. See TypedValue for the possible dimension units. Related XML Attributes

    android:textSize Parameters

    unit The desired dimension unit.
    size The desired size in the given units.

    0 讨论(0)
提交回复
热议问题