// Path: smartbar/SmartbarDemo/src/com/meizu/smartbar/tab/ContactsFragment.java
// public class ContactsFragment extends Fragment {
// 
//     @Override
//     public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
//         View fragmentView = inflater.inflate(R.layout.text_content_contacts, container, false);
//         EditText text = (EditText) fragmentView.findViewById(android.R.id.text1);
//         text.setText("Contacts1");
//         
//         return fragmentView;
//     }
// 
// }
// 
// Path: smartbar/SmartbarDemo/src/com/meizu/smartbar/tab/DialerFragment.java
// public class DialerFragment extends Fragment {
// 
//     @Override
//     public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
//         View fragmentView = inflater.inflate(R.layout.text_content, container, false);
//         TextView text = (TextView) fragmentView.findViewById(android.R.id.text1);
//         text.setText("Dialer");
//         
//         return fragmentView;
//     }
// 
// }
// 
// Path: smartbar/SmartbarDemo/src/com/meizu/smartbar/tab/RecentFragment.java
// public class RecentFragment extends Fragment {
// 
//     @Override
//     public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
//         View fragmentView = inflater.inflate(R.layout.text_content, container, false);
//         TextView text = (TextView) fragmentView.findViewById(android.R.id.text1);
//         text.setText("Recent");
//         
//         return fragmentView;
//     }
// 
// }


import com.meizu.smartbar.tab.ContactsFragment;
import com.meizu.smartbar.tab.DialerFragment;
import com.meizu.smartbar.tab.RecentFragment;
import android.app.ActionBar;
import android.app.ActionBar.OnNavigationListener;
import android.app.Activity;
import android.app.AlertDialog;
import android.app.Fragment;
import android.app.FragmentTransaction;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuInflater;
import android.view.MenuItem;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ArrayAdapter;
import android.widget.ImageView;
package com.meizu.smartbar;



/**
 * ActionBar list navigation mode 以及 Action Item 普通用法的示例。
 */
public class ActionBarList extends Activity implements OnNavigationListener {
    
    private final static int LIST_INDEX_RECENT = 0;
    private final static int LIST_INDEX_CONTACTS = 1;
    private final static int LIST_INDEX_DIALER = 2;
    private final static int LIST_INDEX_SETTINGS = 3;
    
    private final Fragment mRecentFragment = new RecentFragment();
// Path: smartbar/SmartbarDemo/src/com/meizu/smartbar/tab/ContactsFragment.java
// public class ContactsFragment extends Fragment {
// 
//     @Override
//     public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
//         View fragmentView = inflater.inflate(R.layout.text_content_contacts, container, false);
//         EditText text = (EditText) fragmentView.findViewById(android.R.id.text1);
//         text.setText("Contacts1");
//         
//         return fragmentView;
//     }
// 
// }
// 
// Path: smartbar/SmartbarDemo/src/com/meizu/smartbar/tab/DialerFragment.java
// public class DialerFragment extends Fragment {
// 
//     @Override
//     public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
//         View fragmentView = inflater.inflate(R.layout.text_content, container, false);
//         TextView text = (TextView) fragmentView.findViewById(android.R.id.text1);
//         text.setText("Dialer");
//         
//         return fragmentView;
//     }
// 
// }
// 
// Path: smartbar/SmartbarDemo/src/com/meizu/smartbar/tab/RecentFragment.java
// public class RecentFragment extends Fragment {
// 
//     @Override
//     public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
//         View fragmentView = inflater.inflate(R.layout.text_content, container, false);
//         TextView text = (TextView) fragmentView.findViewById(android.R.id.text1);
//         text.setText("Recent");
//         
//         return fragmentView;
//     }
// 
// }


// Path: smartbar/SmartbarDemo/src/com/meizu/smartbar/ActionBarList.java
import com.meizu.smartbar.tab.ContactsFragment;
import com.meizu.smartbar.tab.DialerFragment;
import com.meizu.smartbar.tab.RecentFragment;
import android.app.ActionBar;
import android.app.ActionBar.OnNavigationListener;
import android.app.Activity;
import android.app.AlertDialog;
import android.app.Fragment;
import android.app.FragmentTransaction;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuInflater;
import android.view.MenuItem;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ArrayAdapter;
import android.widget.ImageView;

package com.meizu.smartbar;



/**
 * ActionBar list navigation mode 以及 Action Item 普通用法的示例。
 */
public class ActionBarList extends Activity implements OnNavigationListener {
    
    private final static int LIST_INDEX_RECENT = 0;
    private final static int LIST_INDEX_CONTACTS = 1;
    private final static int LIST_INDEX_DIALER = 2;
    private final static int LIST_INDEX_SETTINGS = 3;
    
    private final Fragment mRecentFragment = new RecentFragment();
    private final Fragment mContactsFragment = new ContactsFragment();