Write a paragraph using textview on Android

后端 未结 2 1571
谎友^
谎友^ 2021-02-14 04:26

I want to write a paragraph as part of my mobile application. How do I go about it?

2条回答
  •  萌比男神i
    2021-02-14 05:25

    
    
        
            Can this contain a lot of text? Can it contain \n a newline? Yes, it can.
            Adding a 2nd line like this should work.
            It should not cause parsing errors.
        
    
    

    So you can make a reference to it like:

    android:text="@string/text_with_paragraphs"
    

    Reference: http://www.experts-exchange.com/Programming/Smartphones/Android/Q_27925834.html

提交回复
热议问题