How to create a TextArea in Android

前端 未结 11 1852
醉话见心
醉话见心 2021-02-06 22:16

How do I display a TextArea for my android project? From xml, the only choice is TextField, multi lined. But thats editable. I need a TextArea which is only for displaying messa

11条回答
  •  [愿得一人]
    2021-02-06 22:45

    Defining an Android Mulitline EditText Field is done via the inputType=”textMultiline”. Unfortunately the text looks strangely aligned. To solve that also use the gravity=”left|top” attribute.

    
    
       
    

    check this vogella blog

提交回复
热议问题