Skip to content

Instantly share code, notes, and snippets.

Avatar
🎯
Focusing

Rajiev Timal RTimal

🎯
Focusing
View GitHub Profile
View RecyclerView-OnClick.java
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));