can I define middle-lined text in an Android layout xml file

后端 未结 6 1902
借酒劲吻你
借酒劲吻你 2021-02-05 07:13

How can I define middle-lined(strikethrough) text in an Android layout xml file?

6条回答
  •  南方客
    南方客 (楼主)
    2021-02-05 07:48

    In kotlin it can be done as:

    your_textView.paintFlags = Paint.STRIKE_THRU_TEXT_FLAG
    

提交回复
热议问题