如何显示数据库中包含TextView
的信息?
我的应用程序将此信息显示为Toast
,但我需要在TextView中使用它。
displayTextView = (TextView)findViewById(R.id.text_view);
Toast.makeText(getBaseContext(), selected.getAdresse(), Toast.LENGTH_LONG).show();
答案 0 :(得分:0)
displayTextView.setText(selected.getAdresse());
有关开发者网站的详细信息,请参阅setText()
。
答案 1 :(得分:0)
你的意思是displayTextView.setText(selected.getAdresse());
?
答案 2 :(得分:0)
displayTextView.settext(selected.getAdresse().toString());