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.
如何显示数据库中的TextView包含信息?我的应用程序将此信息显示为,Toast但我需要它在 TextView 中。
TextView
Toast
displayTextView = (TextView)findViewById(R.id.text_view); Toast.makeText(getBaseContext(), selected.getAdresse(), Toast.LENGTH_LONG).show();
displayTextView.setText(selected.getAdresse());
有关setText()更多信息,请参阅开发者网站。
setText()
你的意思是displayTextView.setText(selected.getAdresse());?
文本视图.settext
displayTextView.settext(selected.getAdresse().toString());