頁:
[1]
android文字新增後向左邊顯示
本帖最後由 jackyo03 於 2016-6-17 11:02 AM 編輯目前新增字串都OK,以下是片段程式碼..
for (int x = 0; x < i + 1; x++) {
text += String.valueOf(a) + " ";
}
retext = text.replaceAll("null", "");
textview.setText(retext);目前新增的字串,譬如我新增到陣列中的字串是1 2 3 4 5 6 7
我要怎麼在上面的語法將它變成7 6 5 4 3 2 1
是要用阿拉伯文字才可以嗎{:41:}
----------以上是解決了--
資料確保在第一筆,但如果我要覆蓋前面的紀錄,它陣列是還在,但retext會被清空耶,因為又從0開始跑了
...<div class='locked'><em>瀏覽完整內容,請先 <a href='member.php?mod=register'>註冊</a> 或 <a href='javascript:;' onclick="lsSubmit()">登入會員</a></em></div><div></div> for 裡的條件 改成 int x = i ;x>=0;x-- Replace first line as below, and see if it is your need?
for (int x = a.length - 1; x >= 0; x--) { 感謝大大們指點,我明天來試試
頁:
[1]