title: Android - delete a row from list view on button click
body: <p>i am creating an application in which data is got from a barcode scanner which identifies from an id, and show detail from the database through a web service. i am currently using custom list which has a text view and a button, the data which i want to embed on the textview is displaying correctly...</p>
  
  <p>my question is how do i delete a particular row from the list on the button click .</p>
  
  <p>here is the custom adaptor code.</p>
  
  <pre><code> public class MyCustomAdapter extends ArrayAdapter&lt;String&gt; 
       {
           public MyCustomAdapter(Context context, int textViewResourceId, ArrayList&lt;String&gt; items) 
           {
               super(context, textViewResourceId, items);
           }
  
           @Override
           public View getView(int position, View convertView, ViewGroup parent)
           {
  
               LayoutInflater inflater = FusionMain.this.getLayoutInflater();
               View row = inflater.inflate(R.layout.list_row, parent, false);
  
  
               return row;
           }
       } // end MyCustomAdapter
  </code></pre>
  
  <p>what other function should i be creating in custom adapter ? i am new in android development.. if you need further more detail i can update the question or the code. 
  kindly respond </p>