Hello,
I have a listview with a custom adapter for each item of the list. If my custom item is some textview everything works fine. But each item has to be some html and hence I need each item to be a webview. The problem is that the webview steals my click and thus I cannot select an item from the list anymore.
So this:
this.itemAdapter = new ItemAdapter(this, R.layout.webview, itemArrayList);
ListView lv1 = (ListView) findViewById(R.id.ListView01);
lv1.setOnItemClickListener( new ItemSelected());
lv1.setAdapter(this.itemAdapter);
public class ItemSelected implements OnItemClickListener
{
@Override
public void onItemClick(AdapterView av, View v, int item, long id)
{
Intent showTextIntent = new Intent(showItems, ShowItemDetails.class);
showTextIntent.putExtra("itemID", singleItems.get(item).getItemID());
startActivity(showTextIntent);
}
}
click is dead. I don't have any link in the webview or have to navigate I only use it to have a nice formatted text (fromHtml for the textview is not that nice). Any chance?