拡張可能なリストビューを使用してアプリケーションを開発しており、このリストビューで表示データをうまく取得していますが、問題は機能しsetOnChildClickListener
ていません。フォーカスの問題を引き起こすインタラクティブなウィジェット (チェックボックスまたは edittex) はなく、フォーカスを false にする必要があります。また、すべてのtexviewを実行しようとしましたが、成功focusable as false
しませんでした。これを解決してください
コード:
mlvInstructionlist = (ExpandableListView)amviInstruction. findViewById(R.id.lvInsListofInstruction);
AssetsWiseInstructionListAdapter adapter = new AssetsWiseInstructionListAdapter(getActivity(),mlvInstructionlist, mlstGroupCollection);
mlvInstructionlist.setAdapter(adapter);
mlvInstructionlist.setOnChildClickListener(this);
@Override
public boolean onChildClick(ExpandableListView parent, View v,
int groupPosition, int childPosition, long id) {
// TODO Auto-generated method stub
Toast.makeText(getSherlockActivity(), "Child click Header",Toast.LENGTH_LONG).show();
AppLog.showLogI(TAG, "Child click Header");
return true;
}