LISTVIEW SET TEXT COLOR:

agosto 17, 2018 doido 2.0 0 Comments


final ArrayAdapter<String> arrayAdapter = new ArrayAdapter<String> (this,
android.R.layout.simple_list_item_1, yourlistname){ @Override public View getView(int position,
View convertView, ViewGroup parent){ View view = super.getView(position, convertView,
parent);TextView tv = (TextView) view.findViewById(android.R.id.text1);
tv.setTextColor(Color.WHITE); return view; } }; listview1.setAdapter(arrayAdapter);

0 Comments: