title: Editext inside listview not taking focus and don't let me edit android
body: <p><strong>EDIT</strong></p>
  
  <p><strong>NOW SOLVED</strong></p>
  
  <p>When i remove addTextChangeLister in Adapter class then editext is taking focus and it let me edit the values but then how can i add <code>addTextChangeListener</code> to calculate the value of quote price when user type in.</p>
  
  <p>I have 2 <code>Editext</code> (quantity and price) and one <code>TextView</code> (quote price) in listitems. I want that user can enter the price and qty and then quote price will be calculated as the user change any of the two values(qty or price in <code>Edittext</code>). Here is the screen shot</p>
  
  <p><img src="https://i.stack.imgur.com/48niE.png" alt="enter image description here"></p>
  
  <p>But Editext inside <code>Listview</code> not taking focus and don't let me edit it Here is the code...</p>
  
  <p>This is the listview xml</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
      android:layout_width="match_parent"
      android:layout_height="match_parent" &gt;
  
      &lt;EditText
          android:id="@+id/ep_multiselect"
          android:layout_width="fill_parent"
          android:layout_height="wrap_content"
          android:completionThreshold="3"
          android:hint="Enter Product Name"
          android:textSize="16sp" /&gt;
  
      &lt;Button
          android:id="@+id/ep_go"
          style="?android:attr/buttonStyleSmall"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:layout_alignParentRight="true"
          android:layout_below="@+id/ep_multiselect"
          android:text="   Go   " /&gt;
  
      &lt;ListView
          android:id="@+id/ep_listview"
          android:layout_width="fill_parent"
          android:layout_height="wrap_content"
          android:layout_below="@+id/ep_go"
          android:focusable="false"
          android:visibility="gone" &gt;
      &lt;/ListView&gt;
  
  &lt;/RelativeLayout&gt;
  </code></pre>
  
  <p>and here is the listitems code...</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
      android:layout_width="match_parent"
      android:layout_height="match_parent"
      android:orientation="vertical" &gt;
  
      &lt;TextView
          android:id="@+id/ep_productName"
          android:layout_width="fill_parent"
          android:layout_height="wrap_content"
          android:layout_margin="3dip"
          android:layout_toLeftOf="@+id/ep_checkBox"
          android:text="Medium Text"
          android:textAppearance="?android:attr/textAppearanceMedium" /&gt;
  
      &lt;EditText
          android:id="@+id/ep_qty"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:layout_alignParentLeft="true"
          android:layout_below="@+id/ep_productName"
          android:layout_toLeftOf="@+id/ep_price"
          android:ems="10"
          android:focusable="true"
          android:hint="Qty"
          android:inputType="number" &gt;
      &lt;/EditText&gt;
  
      &lt;EditText
          android:id="@+id/ep_price"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:layout_alignBaseline="@+id/ep_qty"
          android:layout_alignBottom="@+id/ep_qty"
          android:layout_alignParentRight="true"
          android:ems="10"
          android:focusable="true"
          android:hint="Price"
          android:inputType="number" /&gt;
  
      &lt;TextView
          android:id="@+id/ep_quotePrice"
          android:layout_width="fill_parent"
          android:layout_height="wrap_content"
          android:layout_alignParentLeft="true"
          android:layout_alignParentRight="true"
          android:layout_below="@+id/ep_qty"
          android:text="Quote Price"
          android:textSize="16sp" /&gt;
  
  
  
  &lt;/RelativeLayout&gt;
  </code></pre>
  
  <p>And here is how I am handling it in java..</p>
  
  <pre><code>private class MyEditProductAdapter extends BaseAdapter {
  
      private LayoutInflater inflater;
      private ArrayList&lt;ProductDetailBean&gt; productDetails;
  
      private boolean listType;
  
      public MyEditProductAdapter(LayoutInflater arg1,
              ArrayList&lt;ProductDetailBean &gt; productDetails,
              boolean listType) {
          this.inflater = arg1;
  
          this.productDetails = productDetails;
          this.listType = listType;
      }
  
      @Override
      public int getCount() {
          // TODO Auto-generated method stub
          return productQuantity.size();
      }
  
      @Override
      public Object getItem(int arg0) {
          // TODO Auto-generated method stub
          return productQuantity;
      }
  
      @Override
      public long getItemId(int arg0) {
          // TODO Auto-generated method stub
          return arg0;
      }
  
      @Override
      public View getView(final int position, View convertView, ViewGroup arg2) {
          final Holder holder;
          if (convertView == null) { 
              holder = new Holder();
  
              // inflate the view from xml
              convertView = inflater.inflate(R.layout.edit_product_listitems,
                      null);
  
  
              holder.productName = (TextView) convertView
                      .findViewById(R.id.ep_productName);
              holder.qty = (EditText) convertView.findViewById(R.id.ep_qty);
              holder.quotePrice = (TextView) convertView
                      .findViewById(R.id.ep_quotePrice);
              holder.price = (EditText) convertView
                      .findViewById(R.id.ep_price);
  
              holder.box = (CheckBox) convertView
                      .findViewById(R.id.ep_checkBox);
  
              holder.qty.addTextChangedListener(new TextWatcher() {
  
                  @Override
                  public void onTextChanged(CharSequence arg0, int arg1,
                          int arg2, int arg3) {
                      if (arg0.length() &gt; 0) {
                          holder.quotePrice.setText("Quote Price : "
                                  + Integer.parseInt(arg0.toString())
                                  * productPrice.get(position));
                          notifyDataSetChanged();
                      }
                  }
  
                  @Override
                  public void beforeTextChanged(CharSequence arg0, int arg1,
                          int arg2, int arg3) {
                      // TODO Auto-generated method stub
  
                  }
  
                  @Override
                  public void afterTextChanged(Editable arg0) {
                      // TODO Auto-generated method stub
  
                  }
              });
  
              holder.price.addTextChangedListener(new TextWatcher() {
  
                  @Override
                  public void onTextChanged(CharSequence arg0, int arg1,
                          int arg2, int arg3) {
                      if (arg0.length() &gt; 0) {
                          holder.quotePrice.setText("Quote Price : "
                                  + Integer.parseInt(arg0.toString())
                                  * productQuantity.get(position));
                          notifyDataSetChanged();
                      }
                  }
  
                  @Override
                  public void beforeTextChanged(CharSequence arg0, int arg1,
                          int arg2, int arg3) {
                      // TODO Auto-generated method stub
  
                  }
  
                  @Override
                  public void afterTextChanged(Editable arg0) {
                      // TODO Auto-generated method stub
  
                  }
              });
  
              convertView.setTag(holder);
          } else {
              holder = (Holder) convertView.getTag();
          }
  
          final int localproductPrice = this.productPrice.get(position);
          final int localqty = this.productQuantity.get(position);
          holder.productName.setText(this.productName.get(position));
          holder.qty.setText("" + localqty);
          holder.price.setText("" + localproductPrice);
          holder.quotePrice.setText("Quote Price : "
                  + (localqty * localproductPrice));
  
          return convertView;
      }
      }
  
      static class Holder {
          TextView productName, quotePrice;
          CheckBox box;
          EditText qty, price;
      }
  </code></pre>