Back to project page garageoPIner-androidApp.
The source code is released under:
Apache License
If you think the Android project garageoPIner-androidApp listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.wirthual.garageopiner.fragments; /* w w w. jav a 2s. c o m*/ import android.app.Fragment; import android.content.SharedPreferences; import android.net.NetworkInfo; import android.os.Bundle; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.ExpandableListView; import android.widget.ExpandableListView.OnGroupExpandListener; import com.wirthual.garageopiner.R; import com.wirthual.garageopiner.utils.ExpandableListAdapter; public class TimeTableFragment extends Fragment implements android.view.View.OnClickListener { static int previousGroup = -1; public TimeTableFragment() { } SharedPreferences prefs; NetworkInfo mWifi; @Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { View rootView = inflater.inflate(R.layout.fragment_timetable, container, false); final ExpandableListView expListView = (ExpandableListView) rootView.findViewById(R.id.list); ExpandableListAdapter expListAdapter = new ExpandableListAdapter(getActivity()); expListView.setAdapter(expListAdapter); expListView.setOnGroupExpandListener(new OnGroupExpandListener() { @Override public void onGroupExpand(int groupPosition) { if(groupPosition != previousGroup) expListView.collapseGroup(previousGroup); previousGroup = groupPosition; } }); //setGroupIndicatorToRight(); return rootView; } @Override public void onResume() { super.onResume(); // Always call the superclass method first } @Override public void onClick(View v) { switch (v.getId()) { default: break; } } }