package barbarahliskov.cambialibros;

import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.AdapterView;
import android.widget.Button;
import android.widget.ListView;
import android.widget.TextView;
import android.widget.Toast;

import java.util.ArrayList;
import java.util.List;

public class DeleteLibro extends AppCompatActivity {



    /**
     * Called when the activity is first created.
     *
     * @param savedInstanceState
     */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);

        setContentView(R.layout.activity_list);
        setTitle("Libros favoritos");
        


    }






}

@@ -397,16 +397,108 @@
 vity %7B%0A%0A
+    private ListView mList;%0A    List%3CRow%3E rows = new ArrayList%3CRow%3E(30);%0A    Row row = null;
 %0A%0A    /*
@@ -804,16 +804,890 @@
         
+Button closeButton = (Button) findViewById(R.id.botonCerrar);%0A%0A        closeButton.setVisibility(View.INVISIBLE);%0A        mList = (ListView) findViewById(R.id.list);%0A%0A        mList.setOnItemClickListener(new AdapterView.OnItemClickListener() %7B%0A%0A            @Override%0A            public void onItemClick(AdapterView%3C?%3E parent, View view, int position, long id) %7B%0A%0A                // ListView Clicked item index%0A                long itemPosition = id;%0A%0A%0A%0A%0A                // Show Alert%0A                Toast.makeText(getApplicationContext(), %22Se borrara el elemento %22 + rows.get( (int) itemPosition).getTitulo(),%0A                        Toast.LENGTH_LONG).show();%0A                // Intent i = new Intent(LibrosFavoritos.this, Busqueda.class);%0A                // startActivity(i);%0A            %7D%0A        %7D);%0A%0A%0A%0A%0A        fillData();%0A%0A%0A%0A%0A    %7D%0A%0A%0A    private void fillData() %7B%0A%0A%0A%0A
 %0A%0A%0A    %7D
@@ -1690,13 +1690,10 @@
    %7D%0A%0A%0A%0A
-%0A%0A%0A
 %7D%0A

Version 2 eliminar libro