When you call setPendingIntentTemplate(...)
, the id
should be that of the AdapterView (in this case the ListView). When you call setOnClickFillInIntent(...)
, the id
should be that of the root View of the item layout, whcih is what you are already doing if I read your original post correctly.
public void onUpdate(Context context, AppWidgetManager manager, int[] appWidgetIds) {
/* ... */
widget.setPendingIntentTemplate(R.id.appwidget_listview, clickPI);
/* ... */
}
public RemoteViews getViewAt(int position) {
/* ... */
row.setOnClickFillInIntent(R.id.widget_layout_parent, intent);
/* ... */
return row;
}