AdapterView.OnItemLongClickListener と組み合わせた ListFragment でロングタップ ジェスチャが機能しない。ロングタップ選択と今後のシングルタップでの連続選択のようなGMailを実現しようとしています。
以下のように宣言された ListFragment:
public class VacationListFragment extends ListFragment implements View.OnClickListener,
ActionMode.Callback, AdapterView.OnItemClickListener,
AdapterView.OnItemLongClickListener, AbsListView.MultiChoiceModeListener, {
ListFragment は、以下のように SimpleCursorAdapter を使用して DB からデータをロードします。
mAdapter = new SimpleCursorAdapter(getActivity(), R.layout.vacationlist_row_item, null,
fromColumns, toView, 0);
mVacationListView.setAdapter(mAdapter);
現在のシナリオ:
シングルでは、提供されたメニュー(削除)でCABが表示され、アクションが機能しています。以下に貼り付けたスクリーンショット:
私たちは解決に非常に近づいていると信じており、ご意見をいただければ幸いです。私が教育的でない場合は、お気軽に ping してください。ありがとう。