For the time being my code is like this? how to implement the click of the list items the click would be to open a new screen
ListView lista_teste = (ListView)findViewById(R.id.lista_teste);
String[] dados = new String[]{"xxxxx","xxxx"};
ArrayAdapter<String> adapter = new ArrayAdapter<String>(this, android.R.layout.simple_list_item_1, dados){
@Override
public View getView(int position, View convertView, ViewGroup parent){
// Get the Item from ListView
View view = super.getView(position, convertView, parent);
// Initialize a TextView for ListView each Item
TextView tv = (TextView) view.findViewById(android.R.id.text1);
// Set the text color of TextView (ListView Item)
tv.setTextColor(Color.WHITE);
// Generate ListView Item using TextView
return view;
}
};
lista_teste.setAdapter(adapter);