我想像这样设置文字
String Result = "Customer Name :"+getSpace()+CustomerName+System.getProperty ("line.separator")+
"Customer Age :"+getSpace()+CustomerAge+System.getProperty ("line.separator")+
"Money :"+getSpace()+CustomerMoney+System.getProperty ("line.separator");
ExampleTextView.setText(Result );
功能代码
public String getSpace(){
String Space="";
for(int i=0;i<getSpaceCount();i++)
{
Space+=" ";
}
}
之后我想结果像这样 | &lt; - 是布局边框
|Customer Name : Akshan Ormani To|
|Customer Age : 19|
|Money : 20.0€|