use of com.balaganovrocks.yourmasterclean.adapter.RublishMemoryAdapter in project superCleanMaster by joyoyao.
the class RubbishCleanActivity method onCreate.
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_rublish_clean);
getActionBar().setDisplayHomeAsUpEnabled(true);
// applyKitKatTranslucency();
// StikkyHeaderBuilder.stickTo(mListView).setHeader(header)
// .minHeightHeaderPixel(0).build();
res = getResources();
int footerHeight = mContext.getResources().getDimensionPixelSize(R.dimen.footer_height);
mListView.setEmptyView(mEmptyView);
rublishMemoryAdapter = new RublishMemoryAdapter(mContext, mCacheListItem);
mListView.setAdapter(rublishMemoryAdapter);
mListView.setOnItemClickListener(rublishMemoryAdapter);
mListView.setOnScrollListener(new QuickReturnListViewOnScrollListener(QuickReturnType.FOOTER, null, 0, bottom_lin, footerHeight));
bindService(new Intent(mContext, CleanerService.class), mServiceConnection, Context.BIND_AUTO_CREATE);
// for android 6.0+
mInterstitialAd = new InterstitialAd(this);
mInterstitialAd.setAdUnitId("ca-app-pub-4369038195513432/2986510514");
mInterstitialAd.loadAd(new AdRequest.Builder().build());
setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_PORTRAIT);
}
Aggregations