Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
无论如何创建一个字符串覆盖?因为我正在做一个项目,我在地图上显示地点,但我还想显示一些字符串来识别地点,比如 id,例如 att, Andre Mariano
使用 StringBuilder() 而不是 String。例子..
StringBuilder sb = new StringBuilder(); sb.append("some string"); sb.append("more string"); Toast.makeText(this, sb, Toast.LENGTH_LONG).show();