// Path: smartbar/SmartbarDemo/src/com/meizu/smartbar/tab/ContactsActivity.java
// public class ContactsActivity extends Activity {
//     
//     @Override
//     public void onCreate(Bundle savedInstanceState) {
//         super.onCreate(savedInstanceState);
//         
//         setContentView(R.layout.text_content_contacts);
//         EditText text = (EditText)findViewById(android.R.id.text1);
//         text.setText("Contacts1");
//     }
//     
//     @Override
//     protected void onResume() {
//     	getParent().getActionBar().setTitle("Contacts title");
//     	super.onResume();
//     }
// }
// 
// Path: smartbar/SmartbarDemo/src/com/meizu/smartbar/tab/DialerActivity.java
// public class DialerActivity extends Activity {
//     
//     @Override
//     public void onCreate(Bundle savedInstanceState) {
//         super.onCreate(savedInstanceState);
//         
//         setContentView(R.layout.text_content);
//         TextView text = (TextView)findViewById(android.R.id.text1);
//         text.setText("Dialer");
//     }
//     
//     @Override
//     protected void onResume() {
//     	getParent().getActionBar().setTitle("Dialer title");
//     	super.onResume();
//     }
// }


import com.meizu.smartbar.tab.ContactsActivity;
import com.meizu.smartbar.tab.DialerActivity;
import android.app.TabActivity;
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.widget.TabHost;
package com.meizu.smartbar;



public class ActionBarCustomTabOnTop extends TabActivity {
    
    private final static int TAB_INDEX_RECENT = 0;
    private final static int TAB_INDEX_CONTACTS = 1;
    private final static int TAB_INDEX_DIALER = 2;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.tab_content);

        final TabHost tabHost = getTabHost();
        tabHost.addTab(tabHost.newTabSpec("recent").setIndicator("recent")
                .setContent(new Intent(this, CustomTabOnTopActivity.class)));

        tabHost.addTab(tabHost.newTabSpec("contacts").setIndicator("contacts")
                .setContent(new Intent(this, ContactsActivity.class)));

        tabHost.addTab(tabHost.newTabSpec("dialer").setIndicator("dialer")
// Path: smartbar/SmartbarDemo/src/com/meizu/smartbar/tab/ContactsActivity.java
// public class ContactsActivity extends Activity {
//     
//     @Override
//     public void onCreate(Bundle savedInstanceState) {
//         super.onCreate(savedInstanceState);
//         
//         setContentView(R.layout.text_content_contacts);
//         EditText text = (EditText)findViewById(android.R.id.text1);
//         text.setText("Contacts1");
//     }
//     
//     @Override
//     protected void onResume() {
//     	getParent().getActionBar().setTitle("Contacts title");
//     	super.onResume();
//     }
// }
// 
// Path: smartbar/SmartbarDemo/src/com/meizu/smartbar/tab/DialerActivity.java
// public class DialerActivity extends Activity {
//     
//     @Override
//     public void onCreate(Bundle savedInstanceState) {
//         super.onCreate(savedInstanceState);
//         
//         setContentView(R.layout.text_content);
//         TextView text = (TextView)findViewById(android.R.id.text1);
//         text.setText("Dialer");
//     }
//     
//     @Override
//     protected void onResume() {
//     	getParent().getActionBar().setTitle("Dialer title");
//     	super.onResume();
//     }
// }


// Path: smartbar/SmartbarDemo/src/com/meizu/smartbar/ActionBarCustomTabOnTop.java
import com.meizu.smartbar.tab.ContactsActivity;
import com.meizu.smartbar.tab.DialerActivity;
import android.app.TabActivity;
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.widget.TabHost;

package com.meizu.smartbar;



public class ActionBarCustomTabOnTop extends TabActivity {
    
    private final static int TAB_INDEX_RECENT = 0;
    private final static int TAB_INDEX_CONTACTS = 1;
    private final static int TAB_INDEX_DIALER = 2;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.tab_content);

        final TabHost tabHost = getTabHost();
        tabHost.addTab(tabHost.newTabSpec("recent").setIndicator("recent")
                .setContent(new Intent(this, CustomTabOnTopActivity.class)));

        tabHost.addTab(tabHost.newTabSpec("contacts").setIndicator("contacts")
                .setContent(new Intent(this, ContactsActivity.class)));

        tabHost.addTab(tabHost.newTabSpec("dialer").setIndicator("dialer")
                .setContent(new Intent(this, DialerActivity.class)));