I need to use the same ArrayAdapter in two activities. In MainActivity i need to show only Items with isConsumido() = true and in another activity i need to show all Items.
My MainActivity adapter:
final ArrayAdapter<ItemCultural> arrayAdapterOrdenado = new ArrayAdapter<>(this, android.R.layout.simple_list_item_1, regraDeNegocioSingleton.getListaDeItensSingleton().getListaDeItensCulturaisOrdenados());
Now, im using two adapters, but when i check isConsumido() in one item of adapter from TelaCadastrados, the same item in MainActivity need to turn invisible, and when i remove item on TelaCadastrados, the same item need to be removed on MainActivity.
My TelaCadastrados adapter:
final ArrayAdapter<ItemCultural> arrayAdapter = new ArrayAdapter<>(this, android.R.layout.simple_expandable_list_item_1, regraDeNegocioSingleton.getListaDeItensSingleton().getListaDeItensCulturais());