का उपयोग कर मैं बस अपना रेखीय लेआउट के लिए किसी भी तरह एक नई लाइन जोड़ना चाहते हैं जोड़कर:जावा एंड्रॉयड: एक नई पंक्ति TextView
layout = (LinearLayout) findViewById (R.id.layout);
... //some other code where I've appended some strings already
final TextView nline = new TextView(this);
nline.setText(Html.fromHtml("<br>")); //i also tried: nline.setText("\n");
layout.addView(nline);
लेकिन यह बस कुछ ही रिक्त स्थान कहते हैं। क्या कोई मेरी मदद कर सकता है? धन्यवाद।
nline.setText (Html.fromHtml ("
")) ; यदि आप nline.setSingleLine (false) जोड़ते हैं तो सही काम करेगा; –