Individual line spacing for each line

前端 未结 5 1295
感动是毒
感动是毒 2020-12-29 12:36

Is it possible to define individual line spacings for each text line of a TextView?

Example:

TextView tv = new TextView(context);
tv.set         


        
5条回答
  •  遥遥无期
    2020-12-29 13:40

    Try this:

    android:lineSpacingMultiplier = "3"
    

    Line spacing can also be in decimal format.

提交回复
热议问题