Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Apr 28th, 2012  |  syntax: None  |  size: 0.62 KB  |  hits: 12  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. how to display text in edit text in the list view
  2. EditText b = (EditText)findViewById(R.id.editText1);
  3.     b.setVisibility(1);    
  4.     output = (TextView) this.findViewById(R.id.editText1);
  5.     output1 = (TextView) this.findViewById(R.id.editText2);
  6.  
  7.     String s1= output1.getText().toString();
  8.  
  9.     this.dh = new DataHelper(this);        
  10.  
  11.     this.dh.insert(s1);
  12.  
  13.     List<String> names = this.dh.selectAll();
  14.  
  15.  
  16.     StringBuilder sb = new StringBuilder();
  17.  
  18.  
  19.  
  20.     sb.append("Names in database:nn");
  21.     for (String name : names)
  22.     {
  23.        sb.append("t - t" + (name) + "n");
  24.     }
  25.  
  26.     this.output.setText(sb.toString());