package com.drivemode.android.typeface.sample;

import android.os.Bundle;
import android.support.v7.app.ActionBarActivity;
import android.view.Menu;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ArrayAdapter;
import android.widget.ListView;
import android.widget.TextView;

import com.drivemode.android.typeface.TypefaceHelper;

/**
 * @author KeithYokoma
 */
public class MainActivity extends ActionBarActivity {
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        TypefaceHelper.getInstance().setTypeface(this, "Isserley-Regular.ttf");
        ListView lv = (ListView) findViewById(R.id.list_view);
        lv.setAdapter(new ArrayAdapter<String>(this, android.R.layout.simple_list_item_1,
                android.R.id.text1, getResources().getStringArray(R.array.sample_list)) {
            @Override
            public View getView(int position, View convertView, ViewGroup parent) {
                View view = super.getView(position, convertView, parent);
                TypefaceHelper.getInstance().setTypeface((TextView) view, "Isserley-Regular.ttf");
                return view;
            }
        });
    }

    @Override
    public boolean onCreateOptionsMenu(Menu menu) {
        getMenuInflater().inflate(R.menu.main, menu);
        return true;
    }
}

@@ -67,16 +67,108 @@
 Bundle;%0A
+import android.support.v4.app.FragmentTransaction;%0Aimport android.support.v7.app.ActionBar;%0A
 import a
@@ -208,16 +208,16 @@
 tivity;%0A
-
 import a
@@ -530,16 +530,49 @@
 ctivity 
+implements ActionBar.TabListener 
 %7B%0A    @O
@@ -728,24 +728,25 @@
 _main);%0A
+%0A
         
 Typeface
@@ -741,80 +741,289 @@
     
-TypefaceHelper.getInstance().setTypeface(this, %22Isserley-Regular.ttf%22
+ActionBar actionBar = getSupportActionBar();%0A        actionBar.setNavigationMode(ActionBar.NAVIGATION_MODE_TABS);%0A        actionBar.addTab(actionBar.newTab().setText(%22Hoge%22).setTabListener(this));%0A        actionBar.addTab(actionBar.newTab().setText(%22Fuga%22).setTabListener(this)
 );%0A
+%0A
     
@@ -1594,16 +1594,97 @@
      %7D);
+%0A%0A        TypefaceHelper.getInstance().setTypeface(this, %22Isserley-Regular.ttf%22);
 %0A    %7D%0A%0A
@@ -1824,16 +1824,344 @@
 n true;%0A
-
     %7D
+%0A%0A    @Override%0A    public void onTabSelected(ActionBar.Tab tab, FragmentTransaction fragmentTransaction) %7B%7D%0A%0A    @Override%0A    public void onTabUnselected(ActionBar.Tab tab, FragmentTransaction fragmentTransaction) %7B%7D%0A%0A    @Override%0A    public void onTabReselected(ActionBar.Tab tab, FragmentTransaction fragmentTransaction) %7B%7D
 %0A%7D%0A

Add actionbar tab example