Android Open Source - LASA-Schedules Schedule Fragment






From Project

Back to project page LASA-Schedules.

License

The source code is released under:

GNU General Public License

If you think the Android project LASA-Schedules 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.asdar.lasaschedules;
/*from www.j a v a2s .co m*/
import android.os.Bundle;
import android.support.v4.app.ListFragment;

import java.util.ArrayList;

/**
 * Created by Ehsan on 4/21/2014.
 */
public class ScheduleFragment extends ListFragment {


    @Override
    public void onActivityCreated(Bundle savedInstanceState) {
        super.onActivityCreated(savedInstanceState);
    }
    public void onResume() {
        super.onResume();
        int schedule = getArguments().getInt("request");
        ArrayList<ScheduleElement> s;
        switch (schedule){
            case 0:
                s = StaticSchedules.normalDisplay();
                break;
            case 1:
                s = StaticSchedules.forumDisplay();
                break;
            case 2:
                s = StaticSchedules.latestartDisplay();
                break;
            case 3:
                s = StaticSchedules.peprallyDisplay();
                break;
            default:
                s = StaticSchedules.normalDisplay();
                break;
        }
        ScheduleAdapter a = new ScheduleAdapter(getActivity(),R.layout.schedule_element_row,s);
        setListAdapter(a);
    }
}




Java Source Code List

com.asdar.lasaschedules.AboutDialog.java
com.asdar.lasaschedules.AlarmClearIntent.java
com.asdar.lasaschedules.AlarmRespondIntentService.java
com.asdar.lasaschedules.HomeFragment.java
com.asdar.lasaschedules.MainActivity.java
com.asdar.lasaschedules.NotificationServiceReciever.java
com.asdar.lasaschedules.NotificationService.java
com.asdar.lasaschedules.Resources.java
com.asdar.lasaschedules.RobotoTextView.java
com.asdar.lasaschedules.ScheduleAdapter.java
com.asdar.lasaschedules.ScheduleElement.java
com.asdar.lasaschedules.ScheduleFragment.java
com.asdar.lasaschedules.Schedule.java
com.asdar.lasaschedules.SettingsActivity.java
com.asdar.lasaschedules.SettingsFragment.java
com.asdar.lasaschedules.StaticResources.java
com.asdar.lasaschedules.StaticScheduleFragment.java
com.asdar.lasaschedules.StaticSchedules.java
com.asdar.lasaschedules.TodayActivity.java