2011-08-04 14 views

回答

17

應該是這樣:

tv.setText(getString(R.string.Converasation)+" Hello "); 

僅供參考,您可以使用getString(int)getText(int)來檢索字符串。

+1

非常感謝你 – Sando

24

嘗試

tv.setText(getString(R.string.Converasation) + "HELLo"); 

馬克。

+1

是我的答案不同於你的嗎? –

0

你可以做到這一點,如下所示:

tv.setText(getText(R.string.Conversation)+" Hello"); 

希望這會工作。

0

嘗試相同

tv.setText(getString(R.string.Converasation)+" Hello "); 
0

@Mudassir一切都很正常。對我來說,它是:

display.setText(getText(R.string.counting_result) + " "+ counter); 
相關問題