Android Open Source - garageoPIner-androidApp Time Table Fragment






From Project

Back to project page garageoPIner-androidApp.

License

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.

Java Source Code

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;
    }
  }
  

}




Java Source Code List

com.wirthual.garageopiner.activities.MainActivity.java
com.wirthual.garageopiner.activities.SettingsActivity.java
com.wirthual.garageopiner.activities.TimeTableActivity.java
com.wirthual.garageopiner.communication.CommunicationService.java
com.wirthual.garageopiner.communication.DisplayToast.java
com.wirthual.garageopiner.communication.GarageoPInerHTTPClient.java
com.wirthual.garageopiner.fragments.MainFragment.java
com.wirthual.garageopiner.fragments.TimeTableFragment.java
com.wirthual.garageopiner.utils.ExpandableListAdapter.java
com.wirthual.garageopiner.utils.MyTimeTriggerWidgetProvider.java
com.wirthual.garageopiner.utils.MyTriggerWidgetProvider.java
com.wirthual.garageopiner.utils.NotificationUpdateRunnable.java
com.wirthual.garageopiner.utils.WifiChangedReceiver.java