I have a listview, which is populated with database data, and I need to make a comparison of the list data with an X value entered by the user.
ListView listItens;
listItens = findViewById(R.id.listItens);
adapter = new ArrayAdapter<String>(this, android.R.layout.simple_list_item_1, user);
listItens.setAdapter(adapter);