android linespacingextra

1380
2024/8/16 6:32:06
栏目: 编程语言
开发者测试专用服务器限时活动,0元免费领,库存有限,领完即止! 点击查看>>

The android:lineSpacingExtra attribute in Android is used to define extra space between lines of text in a TextView or EditText. It specifies additional space, in pixels, to be added between lines of text beyond the default line height.

For example, the following code snippet sets the line spacing extra to 8 pixels:

<TextView
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:text="Hello, World!"
    android:lineSpacingExtra="8dp"/>

This will add 8 pixels of extra space between each line of text in the TextView. Adjusting the value of android:lineSpacingExtra allows you to control the spacing between lines of text to achieve the desired visual appearance.

辰迅云「云服务器」,即开即用、新一代英特尔至强铂金CPU、三副本存储NVMe SSD云盘,价格低至29元/月。点击查看>>

推荐阅读: Android中怎么实现多次点击