【发布时间】:2013-02-08 17:46:35
【问题描述】:
我需要知道如何以整数形式添加字符串,例如,如果我需要使用setBackgroudColor(int),它可以是这样的:
String a = "15"; // Here I mean like its user changeable , so the user can change only this part of the int;
View.setBackgroundColor("0x" + a + "000000");
为了澄清更多,我希望这两个数字是用户可以改变的,这里仍然是一个例子:
1 + 1 = 2 // which is I don't want
1 + 1 = 11 // which I want
在这种情况下请帮助我,如果您需要更多信息,请告诉我...
【问题讨论】:
-
所以你想要连接,对吗?
标签: android string colors int addition