Search in sources :

Example 1 with RublishMemoryAdapter

use of com.yzy.supercleanmaster.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);
}
Also used : QuickReturnListViewOnScrollListener(com.etiennelawlor.quickreturn.library.listeners.QuickReturnListViewOnScrollListener) RublishMemoryAdapter(com.yzy.supercleanmaster.adapter.RublishMemoryAdapter) Intent(android.content.Intent) CleanerService(com.yzy.supercleanmaster.service.CleanerService)

Aggregations

Intent (android.content.Intent)1 QuickReturnListViewOnScrollListener (com.etiennelawlor.quickreturn.library.listeners.QuickReturnListViewOnScrollListener)1 RublishMemoryAdapter (com.yzy.supercleanmaster.adapter.RublishMemoryAdapter)1 CleanerService (com.yzy.supercleanmaster.service.CleanerService)1