Skip to content

Instantly share code, notes, and snippets.

View RTimal's full-sized avatar
🎯
Focusing

Rajiev Timal RTimal

🎯
Focusing
View GitHub Profile
public class SearchResultsActivity extends BaseActivity implements ViewHolderResponder {
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_search);
mLayoutManager = new LinearLayoutManager(getApplicationContext());
mRecyclerView.setLayoutManager(mLayoutManager);
View emptyView = new View(this);
mAdapter = new SearchResultsAdapter(emptyView, new WeakReference<ViewHolderResponder>(this));