title: How to convert a TextView to EditText in android?
body: <p>I am fetching the data from a database and I am appending it to a TextView. When I do long click on TextView I want to convert it to an EditText.
  This is how I set the data on my TextView: </p>
  
  <pre><code>TextView text = (TextView) vi.findViewById(R.id.menutext);
  text.setText(itemnames[position]);//comes from database append to text view
  </code></pre>
  
  <p>Now I want to define a setOnLongClickListener to convert it into a EditText.</p>
  
  <pre><code>text.setOnLongClickListener(new OnLongClickListener() {
  
      public boolean onLongClick(View v) {                
          String edititemname=itemnames[position];
          System.out.println(edititemname);
          return true;                
      }
  });
  </code></pre>
  
  <p><code>edititemname</code> holds which item was pressed in a long click. I want to fill the same information into the EdiText. Please help me.</p>