ListView contains 2 textViews. Custom Adapter:
@Override public View getView(int position, View convertView, ViewGroup parent) { ViewHolder holder = null; if (convertView == null){ holder = new ViewHolder(); convertView = layoutInflater.inflate(R.layout.settings_row_online_entry,null); holder.tv1 = (TextView)convertView.findViewById(R.id.tv_onlineentry1); holder.tv2 = (TextView)convertView.findViewById(R.id.tv_onlineentry2); holder.tv1.setTextColor(Color.GRAY); //holder.tv2.setTextColor(Color.BLACK); if ( holder.tv2.getText().equals("")){ holder.tv1.setTextColor(Color.GREEN); } else { holder.tv1.setTextColor(Color.GRAY); } convertView.setTag(holder); } else { holder = (ViewHolder)convertView.getTag(); } holder.tv1.setText(myList.get(position).getOnlineEntryDate()); holder.tv2.setText(myList.get(position).getOnlineEntryText()); return convertView; } The list contains 5 entries. Now all the color is loaded after building a view. Tell me how to make the text color in the text change dynamically after making a change to the text I twist? Is it right to do this in the adapter? or need to make changes to the activit?