Hello, I am still a baby in programming, I can not deny that I have advanced and you have helped, well I have a listview with search, that the list comes from a string array, the code itself works perfect, but I I'm trying to change the color of the text and the font to bold, from the list, and as well I can do this with the code below, but in my onclick I have an "if" for each text clicked, some 8 texts, and there it is problem the onclick does not work when I change the color and font of the text, when there are not these changes everything works fine. Since then thank you all.
The above question where it says possibly is duplicate has a completely different code!
Here is part of my code:
lvbr = (ListView) findViewById(R.id.lvsbr);
etbr = (EditText) findViewById(R.id.etsr);
lst = getResources().getStringArray(R.array.sonsbr);
lvbr.setAdapter(new ArrayAdapter<String>(this, R.layout.seila, R.id.txtcor, lst));
CarregarEncontrados();
lvbr.setAdapter(new ArrayAdapter<String>(cardiobrasil.this, R.layout.seila, R.id.txtcor, lst_Encontrados));
}
});
lvbr.setOnItemClickListener(new AdapterView.OnItemClickListener() {
@Override
public void onItemClick(AdapterView<?> arg0, View view, int position, long id) {
if (((TextView) view).getText().equals("Salto")) {
setContentView(R.layout.brc01);