[Solved] How do i start a new line in String? [duplicate]


You can use the Html attribute to set text as you want as ::

<EditText
   android:layout_width="fill_parent"
   android:layout_height="wrap_content"
   />

String str="Receive: 0 coin(s) <br> Total Cost: $10";
editText.setText(Html.formHtml(str));  

solved How do i start a new line in String? [duplicate]