title: EditText doesn't keep the text entered, ie it deletes
body: <p>I have a list of items as follows:</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code> private void getProducts() {
          List&lt;Product&gt; listProducts = Product.getListProduct(true);
          if (listProducts != null &amp;&amp; listProducts.size() &gt; 0) {
              ProductAdapter m_adapterProduct = new ProductAdapter(this, listProducts);
              mlvwProducts.setAdapter(m_adapterProduct);
          }
      }</code></pre>
  </div>
  </div>
  </p>
  
  <p>The ProductAdapter class is as follows:</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>public class ProductAdapter extends ArrayAdapter&lt;Product&gt; {
  
      private Context context;
      private List&lt;Product&gt; mdata;
  
  
      public ProductAdapter(Context context, List&lt;Product&gt; mdata) {
          super(context, R.layout.act_item_product_adapter, mdata);
          this.context = context;
          this.mdata = mdata;
      }
  
      @Override
      public View getView(int position, View convertView, ViewGroup parent) {
  
          View item = LayoutInflater.from(context).inflate(R.layout.act_item_product_adapter,null);
          TextView m_product_name = (TextView) item.findViewById(R.id.adapter_product_nameProduct);
          TextView m_product_cost = (TextView) item.findViewById(R.id.adapter_product_cost);
          TextView m_product_stock = (TextView) item.findViewById(R.id.adapter_product_stock);
          EditText m_product_amount = (EditText) item.findViewById(R.id.adapter_product_amount);
          ImageView m_product_photo = (ImageView) item.findViewById(R.id.adapter_product_photo);
  
  
  
          m_product_name.setText(datos.get(position).getNombreProducto());
          m_product_cost.setText(" Cost: " + String.format("%.2f",mdata.get(position).getCostSold()));
          m_product_stock.setText(" Stock: " + Integer.toString(mdata.get(position).getStock()));
          //m_product_amout.setText("0");
  
          if (datos.get(position).getimagenProduct() != null){
              byte[] decodedString = Base64.decode(mdata.get(position).getimagenProduct(), Base64.DEFAULT);
              m_product_photo.setImageBitmap(BitmapFactory.decodeByteArray(decodedString, 0, decodedString.length));
          }
  
  
          return  item;
      }
  }</code></pre>
  </div>
  </div>
  </p>
  
  <p>Everything works very well, I can retrieve the information of the products and display them in the list, but when in the EditText (m_product_amount) I enter a value and clicking another object of the activity, the number entered is deleted and remains at 0 that was The default number that is in the layout.</p>
  
  <p>What am I doing wrong?</p>
  
  <p>Any ideas or suggestions are welcome</p>
  
  <p>Thanks</p>
  
  <p>============= Question updates ===============</p>
  
  <p>act_item_product_adapter.xml:</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;RelativeLayout
      xmlns:android="http://schemas.android.com/apk/res/android"
      android:orientation="vertical"
      android:layout_width="match_parent"
      android:layout_height="match_parent"&gt;
      &lt;ImageView
          android:id="@+id/adapter_product_photo"
          android:layout_width="80dp"
          android:layout_height="80dp"
          android:scaleType="centerInside"
          android:background="@android:color/white"
          android:cropToPadding="true"/&gt;
      &lt;LinearLayout
          android:layout_width="match_parent"
          android:layout_height="wrap_content"
          android:orientation="horizontal"
          android:layout_toRightOf="@id/adapter_product_photo"
          android:id="@+id/linearLayout2"&gt;
          &lt;TextView
              android:id="@+id/adapter_product_nameProducto"
              android:layout_width = "match_parent"
              android:layout_height = "37dp"
              android:gravity="center"
              android:textSize="20dp"
              android:text="Name of product"/&gt;
      &lt;/LinearLayout&gt;
      &lt;LinearLayout
          android:layout_width= "170dp"
          android:layout_height="wrap_content"
          android:orientation="vertical"
          android:id="@+id/linearLayout3"
          android:layout_below="@+id/linearLayout2"
          android:layout_toRightOf="@+id/adapter_product_photo"
          android:layout_alignBottom="@+id/adapter_product_photo"&gt;
          &lt;TextView
              android:id="@+id/adapter_product_cost"
              android:layout_width = "170dp"
              android:layout_height = "wrap_content"
              android:text="cost"/&gt;
          &lt;TextView
              android:id="@+id/adapter_product_stock"
              android:layout_width="170dp"
              android:layout_height="wrap_content"
              android:text="stock"/&gt;
      &lt;/LinearLayout&gt;
      &lt;LinearLayout
          android:layout_width="match_parent"
          android:layout_height="80dp"
          android:layout_below="@+id/linearLayout2"
          android:layout_toEndOf="@+id/linearLayout3"
          android:layout_toRightOf="@+id/linearLayout3"
          android:orientation="horizontal"
          android:layout_alignBottom="@+id/linearLayout3"&gt;
          &lt;TextView
              android:layout_width = "wrap_content"
              android:layout_height = "match_parent"
              android:gravity="center"
              android:textSize="20dp"
              android:text="Amount"/&gt;
          &lt;EditText
              android:layout_width = "match_parent"
              android:layout_height = "match_parent"
              android:inputType="number"
              android:id="@+id/adapter_product_amount"
              android:gravity="center"
              android:text="0"/&gt;
      &lt;/LinearLayout&gt;
  &lt;/RelativeLayout&gt;</code></pre>
  </div>
  </div>
  </p>