I am trying to get item view by id or position ,to change visibility of image where in item_list.xml

I tried adding

View view=   listAdapter.getChildView(0, 0, isVisible(), getView(), container);
        ImageView img=(ImageView) view.findViewById(R.id.img_listitem);

and it still isnt working

    ExpandableListAdapter listAdapter;
    ExpandableListView expListView;

    List<String> listDataHeader;

    HashMap<String, List<String>> listDataChild;
    private int itemSelectedPostion=0;

    private LinearLayout lLayout;
public View onCreateView(LayoutInflater inflater, ViewGroup container,
            Bundle savedInstanceState) {


        View rootView = inflater.inflate(R.layout.deals, container, false);

        // get the listview
        expListView = (ExpandableListView) rootView.findViewById(R.id.lvExp);

        // preparing list data

        listAdapter = new ExpandableListAdapter(getActivity(), listDataHeader, listDataChild);

        // setting list adapter

Related posts

Recent Viewed