Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- how to display text in edit text in the list view
- EditText b = (EditText)findViewById(R.id.editText1);
- b.setVisibility(1);
- output = (TextView) this.findViewById(R.id.editText1);
- output1 = (TextView) this.findViewById(R.id.editText2);
- String s1= output1.getText().toString();
- this.dh = new DataHelper(this);
- this.dh.insert(s1);
- List<String> names = this.dh.selectAll();
- StringBuilder sb = new StringBuilder();
- sb.append("Names in database:nn");
- for (String name : names)
- {
- sb.append("t - t" + (name) + "n");
- }
- this.output.setText(sb.toString());
Advertisement
Add Comment
Please, Sign In to add comment