Java Code Examples for android.widget.ExpandableListView.setTag()
The following are Jave code examples for showing how to use
setTag() of the
android.widget.ExpandableListView
class.
You can vote up the examples you like. Your votes will be used in our system to get
more good examples.
+ Save this method
Example 1
Project: TimeTrix File: FragmentTagNotes.java View Source Code | 6 votes |
@Override public void onActivityCreated(Bundle savedInstanceState) { super.onActivityCreated (savedInstanceState); ImageButton btnAddNotes = (ImageButton) getActivity ().findViewById (R.id.buttonAddNotesTags); btnAddNotes.setOnClickListener (this); btnAddNotes.setVisibility (View.INVISIBLE); // ListView mListViewTag = (ListView) getActivity().findViewById(R.id.listNotesAll); mExpandableListViewTag = (ExpandableListView) getActivity ().findViewById (R.id.expandableListNotesTags); mArrayListTagNotes = new ArrayList<> (); // customAdapterTagNotes = new CustomAdapter(mArrayListTagNotes, getActivity(),tempString , mHandler); mCustomAdapterTags = new CustomAdapterTags (getActivity (), Integer.parseInt (mSectionIndex) + 1); mExpandableListViewTag.setTag (R.string.filename, mSectionIndex); mExpandableListViewTag.setTag (R.string.list_object, mArrayListTagNotes); mExpandableListViewTag.setAdapter (mCustomAdapterTags); mExpandableListViewTag.setItemsCanFocus (true); registerForContextMenu (mExpandableListViewTag); mSectionIndex = String.valueOf (mOnFragmentInteractionListener.getSectionIndex()); populateListView (); }