去除初始化Actionbar方法,2.3版本没有actionbar

This commit is contained in:
zengfantian 2015-10-29 10:33:16 +08:00
parent 0e31831a87
commit 01aeb8f9d3
23 changed files with 31 additions and 30 deletions

View File

@ -15,21 +15,22 @@
*/
package com.zftlive.android.sample.fadingactionbar;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.util.ArrayList;
import android.annotation.SuppressLint;
import android.app.Activity;
import android.os.Bundle;
import android.view.Menu;
import android.widget.ArrayAdapter;
import android.widget.ListView;
import com.zftlive.android.R;
import com.zftlive.android.library.common.ActionBarManager;
import com.zftlive.android.library.widget.fadingactionbar.FadingActionBarHelper;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.util.ArrayList;
public class HeaderOverlayActivity extends Activity {
@SuppressLint("NewApi")
@ -51,7 +52,7 @@ public class HeaderOverlayActivity extends Activity {
listView.setAdapter(adapter);
//初始化带返回按钮的标题栏
ActionBarManager.initBackTitle(this, getActionBar(), this.getClass().getSimpleName());
// ActionBarManager.initBackTitle(getContext(), getActionBar(), this.getClass().getSimpleName());
}
/**

View File

@ -50,7 +50,7 @@ public class HomeActivity extends ListActivity {
setListAdapter(new ArrayAdapter<String>(
this, android.R.layout.simple_list_item_1, android.R.id.text1, titles));
//初始化带返回按钮的标题栏
ActionBarManager.initBackTitle(this, getActionBar(), this.getClass().getSimpleName());
// ActionBarManager.initBackTitle(this, getActionBar(), this.getClass().getSimpleName());
}
@Override

View File

@ -40,7 +40,7 @@ public class LightActionBarActivity extends Activity {
helper.initActionBar(this);
//初始化带返回按钮的标题栏
ActionBarManager.initBackTitle(this, getActionBar(), this.getClass().getSimpleName());
// ActionBarManager.initBackTitle(this, getActionBar(), this.getClass().getSimpleName());
}
@Override

View File

@ -38,7 +38,7 @@ public class LightBackgroundActivity extends Activity {
helper.initActionBar(this);
//初始化带返回按钮的标题栏
ActionBarManager.initBackTitle(this, getActionBar(), this.getClass().getSimpleName());
// ActionBarManager.initBackTitle(this, getActionBar(), this.getClass().getSimpleName());
}
@Override

View File

@ -52,7 +52,7 @@ public class ListViewActivity extends Activity {
adapter = new ArrayAdapter<String>(this, android.R.layout.simple_list_item_1, items);
listView.setAdapter(adapter);
//初始化带返回按钮的标题栏
ActionBarManager.initBackTitle(this, getActionBar(), this.getClass().getSimpleName());
// ActionBarManager.initBackTitle(this, getActionBar(), this.getClass().getSimpleName());
}
/**

View File

@ -97,7 +97,7 @@ public class NavigationDrawerActivity extends Activity implements AdapterView.On
selectItem(0);
}
//初始化带返回按钮的标题栏
ActionBarManager.initBackTitle(this, getActionBar(), this.getClass().getSimpleName());
// ActionBarManager.initBackTitle(this, getActionBar(), this.getClass().getSimpleName());
}
@Override

View File

@ -40,7 +40,7 @@ public class NoParallaxActivity extends Activity {
helper.initActionBar(this);
//初始化带返回按钮的标题栏
ActionBarManager.initBackTitle(this, getActionBar(), this.getClass().getSimpleName());
// ActionBarManager.initBackTitle(this, getActionBar(), this.getClass().getSimpleName());
}
@Override

View File

@ -30,7 +30,7 @@ public class SampleFragmentActivity extends Activity {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_fragment);
//初始化带返回按钮的标题栏
ActionBarManager.initBackTitle(this, getActionBar(), this.getClass().getSimpleName());
// ActionBarManager.initBackTitle(this, getActionBar(), this.getClass().getSimpleName());
}
@Override

View File

@ -37,7 +37,7 @@ public class ScrollViewActivity extends Activity {
setContentView(helper.createView(this));
helper.initActionBar(this);
//初始化带返回按钮的标题栏
ActionBarManager.initBackTitle(this, getActionBar(), this.getClass().getSimpleName());
// ActionBarManager.initBackTitle(this, getActionBar(), this.getClass().getSimpleName());
}
@Override

View File

@ -19,8 +19,8 @@ import android.annotation.SuppressLint;
import android.app.Activity;
import android.os.Bundle;
import android.view.Menu;
import com.zftlive.android.R;
import com.zftlive.android.library.common.ActionBarManager;
import com.zftlive.android.library.widget.fadingactionbar.FadingActionBarHelper;
public class ShortContentActivity extends Activity {
@ -37,7 +37,7 @@ public class ShortContentActivity extends Activity {
setContentView(helper.createView(this));
helper.initActionBar(this);
//初始化带返回按钮的标题栏
ActionBarManager.initBackTitle(this, getActionBar(), this.getClass().getSimpleName());
// ActionBarManager.initBackTitle(this, getActionBar(), this.getClass().getSimpleName());
}
@Override

View File

@ -43,7 +43,7 @@ public class WebViewActivity extends Activity {
webView.setWebViewClient(new WebViewClient());
webView.loadUrl("http://en.wikipedia.org/wiki/New_York_City");
//初始化带返回按钮的标题栏
ActionBarManager.initBackTitle(this, getActionBar(), this.getClass().getSimpleName());
// ActionBarManager.initBackTitle(this, getActionBar(), this.getClass().getSimpleName());
}
@Override

View File

@ -34,7 +34,7 @@ public class ImageBlurActivity extends FragmentActivity {
// 初始化带返回按钮的标题栏
String strCenterTitle = getResources().getString(R.string.ImageBlurActivity);
ActionBarManager.initBackTitle(this, getActionBar(),strCenterTitle);
// ActionBarManager.initBackTitle(this, getActionBar(),strCenterTitle);
pagerAdapter =
new CustomPagerAdapter(getSupportFragmentManager());

View File

@ -35,7 +35,7 @@ public class LauncherActivity extends ListActivity {
super.onCreate(savedInstanceState);
setListAdapter(new ArrayAdapter<String>(this, android.R.layout.simple_list_item_1, options));
//初始化带返回按钮的标题栏
ActionBarManager.initBackTitle(this, getActionBar(), this.getClass().getSimpleName());
// ActionBarManager.initBackTitle(this, getActionBar(), this.getClass().getSimpleName());
}
@Override

View File

@ -77,7 +77,7 @@ public final class PullToRefreshExpandableListActivity extends ExpandableListAct
android.R.layout.simple_expandable_list_item_2, new String[] { KEY }, new int[] { android.R.id.text1 });
setListAdapter(mAdapter);
//初始化带返回按钮的标题栏
ActionBarManager.initBackTitle(this, getActionBar(), this.getClass().getSimpleName());
// ActionBarManager.initBackTitle(this, getActionBar(), this.getClass().getSimpleName());
}
private class GetDataTask extends AsyncTask<Void, Void, String[]> {

View File

@ -81,7 +81,7 @@ public final class PullToRefreshGridActivity extends Activity {
mAdapter = new ArrayAdapter<String>(this, android.R.layout.simple_list_item_1, mListItems);
mGridView.setAdapter(mAdapter);
//初始化带返回按钮的标题栏
ActionBarManager.initBackTitle(this, getActionBar(), this.getClass().getSimpleName());
// ActionBarManager.initBackTitle(this, getActionBar(), this.getClass().getSimpleName());
}
private class GetDataTask extends AsyncTask<Void, Void, String[]> {

View File

@ -49,7 +49,7 @@ public final class PullToRefreshHorizontalScrollViewActivity extends Activity {
mScrollView = mPullRefreshScrollView.getRefreshableView();
//初始化带返回按钮的标题栏
ActionBarManager.initBackTitle(this, getActionBar(), this.getClass().getSimpleName());
// ActionBarManager.initBackTitle(this, getActionBar(), this.getClass().getSimpleName());
}
private class GetDataTask extends AsyncTask<Void, Void, String[]> {

View File

@ -108,7 +108,7 @@ public final class PullToRefreshListActivity extends ListActivity {
// mPullRefreshListView.setAdapter(mAdapter)
actualListView.setAdapter(mAdapter);
//初始化带返回按钮的标题栏
ActionBarManager.initBackTitle(this, getActionBar(), this.getClass().getSimpleName());
// ActionBarManager.initBackTitle(this, getActionBar(), this.getClass().getSimpleName());
}
private class GetDataTask extends AsyncTask<Void, Void, String[]> {

View File

@ -67,7 +67,7 @@ public final class PullToRefreshListFragmentActivity extends FragmentActivity im
mPullRefreshListFragment.setListShown(true);
//初始化带返回按钮的标题栏
ActionBarManager.initBackTitle(this, getActionBar(), this.getClass().getSimpleName());
// ActionBarManager.initBackTitle(this, getActionBar(), this.getClass().getSimpleName());
}
@Override

View File

@ -40,7 +40,7 @@ public class PullToRefreshListInViewPagerActivity extends Activity implements On
mViewPager = (ViewPager) findViewById(R.id.vp_list);
mViewPager.setAdapter(new ListViewPagerAdapter());
//初始化带返回按钮的标题栏
ActionBarManager.initBackTitle(this, getActionBar(), this.getClass().getSimpleName());
// ActionBarManager.initBackTitle(this, getActionBar(), this.getClass().getSimpleName());
}
private class ListViewPagerAdapter extends PagerAdapter {

View File

@ -49,7 +49,7 @@ public final class PullToRefreshScrollViewActivity extends Activity {
mScrollView = mPullRefreshScrollView.getRefreshableView();
//初始化带返回按钮的标题栏
ActionBarManager.initBackTitle(this, getActionBar(), this.getClass().getSimpleName());
// ActionBarManager.initBackTitle(this, getActionBar(), this.getClass().getSimpleName());
}
private class GetDataTask extends AsyncTask<Void, Void, String[]> {

View File

@ -47,7 +47,7 @@ public class PullToRefreshViewPagerActivity extends Activity implements OnRefres
ViewPager vp = mPullToRefreshViewPager.getRefreshableView();
vp.setAdapter(new SamplePagerAdapter());
//初始化带返回按钮的标题栏
ActionBarManager.initBackTitle(this, getActionBar(), this.getClass().getSimpleName());
// ActionBarManager.initBackTitle(this, getActionBar(), this.getClass().getSimpleName());
}
@Override

View File

@ -46,7 +46,7 @@ public final class PullToRefreshWebView2Activity extends Activity implements OnR
// sample, see that file for the Javascript implementation
webView.loadUrl("file:///android_asset/ptr_webview2_sample.html");
//初始化带返回按钮的标题栏
ActionBarManager.initBackTitle(this, getActionBar(), this.getClass().getSimpleName());
// ActionBarManager.initBackTitle(this, getActionBar(), this.getClass().getSimpleName());
}
private static class SampleWebViewClient extends WebViewClient {

View File

@ -43,7 +43,7 @@ public final class PullToRefreshWebViewActivity extends Activity {
mWebView.setWebViewClient(new SampleWebViewClient());
mWebView.loadUrl("http://www.google.com");
//初始化带返回按钮的标题栏
ActionBarManager.initBackTitle(this, getActionBar(), this.getClass().getSimpleName());
// ActionBarManager.initBackTitle(this, getActionBar(), this.getClass().getSimpleName());
}
private static class SampleWebViewClient extends WebViewClient {