Modify just one row of the listview on Android

1

I have a custom listview that uses the CustomAdapter when clicking on a row, it sends me to another modification activity, but I do not want to reload the list, that is, when the name is modified in the other activity when I return < em> How do I change the name in the row I had selected without reloading the entire listview?

Thus I enter with click:

registrados.setOnItemClickListener(new AdapterView.OnItemClickListener() {
        @Override
        public void onItemClick(AdapterView<?> parent, View view, int position, long id) {

//En esta parte me manda al otro activity donde modifico la informacion en sqlite del elemento seleccionado

}
        });
    
asked by DoubleM 06.01.2017 в 03:57
source

1 answer

0

Calling invalidate () of view or parent should solve your problem:

registrados.setOnItemClickListener(new AdapterView.OnItemClickListener() {
    @Override
    public void onItemClick(AdapterView<?> parent, View view, int position, long id) {

    //En esta parte me manda al otro activity donde modifico la informacion en sqlite del elemento seleccionado
    view.invalidate();
    }
});
    
answered by 06.01.2017 в 05:49