我想爲我的ListView創建一個CustomItem,並且我的String文本有問題。我嘗試使用字符「\ n」替換換行。Bada:ListView中的CustomItem
創建我的字符串這樣的:
String fullName ="First Name: ";
fullName.Append(firstName);//one string variable
fullName.Append("\n");
fullName.Append("Last Name: ");
fullName.Append(lastName);//one string variable
我想要的lastName和名字在不同的線路出現了。
我把這個字符串放在我的自定義項目中: pCitem-> AddElement(Osp :: Graphics :: Rectangle(10,-30,430,150),index,fullName,35,Osp :: Graphics :: Color :: COLOR_GREEN,OSP ::顯卡::顏色:: COLOR_RED,真正的);
我的問題是,firstName和lastName沒有出現在不同的行中。我如何解決這個問題?謝謝