Example usage for android.support.v4.app ActionBar.Tab toString

List of usage examples for android.support.v4.app ActionBar.Tab toString

Introduction

In this page you can find the example usage for android.support.v4.app ActionBar.Tab toString.

Prototype

public String toString() 

Source Link

Document

Returns a string representation of the object.

Usage

From source file:com.xandy.calendar.AllInOneActivity.java

@Override
public void onTabSelected(ActionBar.Tab tab, FragmentTransaction ft) {
    Log.w(TAG, "TabSelected AllInOne=" + this + " finishing:" + this.isFinishing());
    if (tab == mDayTab && mCurrentView != ViewType.DAY) {
        mController.sendEvent(this, EventType.GO_TO, null, null, -1, ViewType.DAY);
    } else if (tab == mWeekTab && mCurrentView != ViewType.WEEK) {
        mController.sendEvent(this, EventType.GO_TO, null, null, -1, ViewType.WEEK);
    } else if (tab == mMonthTab && mCurrentView != ViewType.MONTH) {
        mController.sendEvent(this, EventType.GO_TO, null, null, -1, ViewType.MONTH);
    } else if (tab == mAgendaTab && mCurrentView != ViewType.AGENDA) {
        mController.sendEvent(this, EventType.GO_TO, null, null, -1, ViewType.AGENDA);
    } else {/*ww w.ja  v a2  s  .c  o  m*/
        Log.w(TAG, "TabSelected event from unknown tab: " + (tab == null ? "null" : tab.getText()));
        Log.w(TAG, "CurrentView:" + mCurrentView + " Tab:" + tab.toString() + " Day:" + mDayTab + " Week:"
                + mWeekTab + " Month:" + mMonthTab + " Agenda:" + mAgendaTab);
    }
}