android Programming Glossary: holder.img.setimageresource
Custom ListView with Date as SectionHeader (Used custom SimpleCursorAdapter) http://stackoverflow.com/questions/6261593/custom-listview-with-date-as-sectionheader-used-custom-simplecursoradapter task_title holder.text2.setText task_day if priority 1 holder.img.setImageResource R.drawable.redbutton else if priority 2 holder.img.setImageResource.. R.drawable.redbutton else if priority 2 holder.img.setImageResource R.drawable.bluebutton else if priority 3 holder.img.setImageResource.. R.drawable.bluebutton else if priority 3 holder.img.setImageResource R.drawable.greenbutton else holder.img.setImageResource R.drawable.redbuttonchecked..
Custom ListView with Date as SectionHeader (Used custom SimpleCursorAdapter) http://stackoverflow.com/questions/6261593/custom-listview-with-date-as-sectionheader-used-custom-simplecursoradapter dataCursor.getInt description_index holder.text1.setText task_title holder.text2.setText task_day if priority 1 holder.img.setImageResource R.drawable.redbutton else if priority 2 holder.img.setImageResource R.drawable.bluebutton else if priority 3 holder.img.setImageResource.. holder.text2.setText task_day if priority 1 holder.img.setImageResource R.drawable.redbutton else if priority 2 holder.img.setImageResource R.drawable.bluebutton else if priority 3 holder.img.setImageResource R.drawable.greenbutton else holder.img.setImageResource.. R.drawable.redbutton else if priority 2 holder.img.setImageResource R.drawable.bluebutton else if priority 3 holder.img.setImageResource R.drawable.greenbutton else holder.img.setImageResource R.drawable.redbuttonchecked return convertView static class ViewHolder..
|