Android Open Source - Calendar-DayView Main Activity






From Project

Back to project page Calendar-DayView.

License

The source code is released under:

Apache License

If you think the Android project Calendar-DayView 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.srikanthgr.calendarweekview;
//from   w ww  .  j  av a 2  s .  co  m
import android.app.ActionBar;
import android.app.Activity;
import android.os.Bundle;

import com.srikanthgr.calendarweekview.fragments.DayFragment;
import com.srikanthgr.calendarweekview.listeners.TabsListener;

/**
 * @author Srikanth G.R
 *
 */
public class MainActivity extends Activity {
  @Override
  protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_main);

    final ActionBar actionBar = getActionBar();
    actionBar.setNavigationMode(ActionBar.NAVIGATION_MODE_TABS);
    actionBar.setDisplayUseLogoEnabled(false);
    actionBar.setDisplayShowHomeEnabled(false);
    actionBar.setDisplayShowTitleEnabled(false);
    ActionBar.Tab monthTab = actionBar.newTab().setText("DAY");

    DayFragment dayFragment = new DayFragment();

    monthTab.setTabListener(new TabsListener(dayFragment));
    actionBar.addTab(monthTab, 0, true);

  }
}




Java Source Code List

com.srikanthgr.calendarweekview.MainActivity.java
com.srikanthgr.calendarweekview.datainterface.DataInterface.java
com.srikanthgr.calendarweekview.fragments.DayFragment.java
com.srikanthgr.calendarweekview.listeners.TabsListener.java
com.srikanthgr.calendarweekview.model.Event.java
com.srikanthgr.calendarweekview.utility.Utility.java