use of com.balaganovrocks.yourmasterclean.adapter.BatterySavingAdapter in project superCleanMaster by joyoyao.
the class BatterySavingActivity method onCreate.
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_battery_saving);
getActionBar().setDisplayHomeAsUpEnabled(true);
// applyKitKatTranslucency();
mBatterySavingAdapter = new BatterySavingAdapter(mContext, mAppProcessInfos);
mListView.setAdapter(mBatterySavingAdapter);
bindService(new Intent(mContext, CoreService.class), mServiceConnection, Context.BIND_AUTO_CREATE);
int footerHeight = mContext.getResources().getDimensionPixelSize(R.dimen.footer_height);
mListView.setOnScrollListener(new QuickReturnListViewOnScrollListener(QuickReturnType.FOOTER, null, 0, bottom_lin, footerHeight));
textCounter.setAutoFormat(false);
textCounter.setFormatter(new DecimalFormatter());
textCounter.setAutoStart(false);
// the amount the number increments at each time interval
textCounter.setIncrement(5f);
// the time interval (ms) at which the text changes
textCounter.setTimeInterval(50);
mInterstitialAd = new InterstitialAd(this);
mInterstitialAd.setAdUnitId("ca-app-pub-4369038195513432/2986510514");
mInterstitialAd.loadAd(new AdRequest.Builder().build());
setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_PORTRAIT);
}
Aggregations