我有一個textview,其中我通過java追加幾行,如下所示。android在textview中通過java對齊文本
TextView myTextView = (TextView) findViewById(R.id.mytextview);
myTextView.append("this is line one of the textview");
myTextView.append("this is line two");
myTextView.append("this is line three of the textview");
我想只居中對齊第二行。我試過不同的html標籤,但都沒有工作。 有人可以告訴我它是如何在android中完成的。
這將對齊中心的整個文本。我只想對齊第二行。 – 2012-03-10 14:46:27