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.
我在我的 android 应用程序的主要活动中使用了以下代码,但用户名值只有 5。我怎样才能获得 textid + 5 值?请帮我。我该怎么做?
TextView username = (TextView) findViewById(R.id.textid); username.setText("" + 5);
我想你正在寻找这个:
username.setText(username.getText().toString() + 5);