Code example for SparseBooleanArray

Methods: getput

0
            view.setOnClickListener(new OnClickListener() {
                 
                @Override 
                public void onClick(View v) {
                    int position = (Integer) v.getTag();
                    mGroupIdToExpandedMap.put(position, !mGroupIdToExpandedMap.get(position));
                    reloadLinearLayout(); 
                } 
            }); 
 
            // add divider 
            getActivity().getLayoutInflater().inflate(R.layout.stats_list_divider, mLinearLayout, true);
             
             
            if (isExpanded) {
                int childrenCount = mAdapter.getChildrenCount(i);
                for (int j = 0; j < childrenCount; j++) {
                    boolean isLastChild = (j == childrenCount - 1);
                    View childView = mAdapter.getChildView(i, j, isLastChild, null, mLinearLayout);
                    mLinearLayout.addView(childView);
Stop searching for code, let great code find you!  Add Codota to your java IDE