Search in sources :

Example 1 with RublishMemoryAdapter

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);
}
Also used : QuickReturnListViewOnScrollListener(com.etiennelawlor.quickreturn.library.listeners.QuickReturnListViewOnScrollListener) RublishMemoryAdapter(com.balaganovrocks.yourmasterclean.adapter.RublishMemoryAdapter) Intent(android.content.Intent) InterstitialAd(com.google.android.gms.ads.InterstitialAd) CleanerService(com.balaganovrocks.yourmasterclean.service.CleanerService)

Aggregations

Intent (android.content.Intent)1 RublishMemoryAdapter (com.balaganovrocks.yourmasterclean.adapter.RublishMemoryAdapter)1 CleanerService (com.balaganovrocks.yourmasterclean.service.CleanerService)1 QuickReturnListViewOnScrollListener (com.etiennelawlor.quickreturn.library.listeners.QuickReturnListViewOnScrollListener)1 InterstitialAd (com.google.android.gms.ads.InterstitialAd)1