I have an activity with ListView . Displaying the TextView in each list item. Switching the properties of selected position using these methods E
The best way to find the error is use a lot of logcat in your code and find where the logcat is not showing.
But you can try to change your code like this:
inflater = LayoutInflater.from(context); in MyAdapter constructormove it in getview method like this:
if (convertView == null) {
LayoutInflater inflater = ((Activity) context).getLayoutInflater();
convertView=inflater.inflate(R.layout.selectable_text_layout, null,false);
viewHolder = new ViewHolder(convertView);
convertView.setTag(viewHolder);
}