Skip to content

Instantly share code, notes, and snippets.

@alkjez
Last active January 5, 2018 21:46
Show Gist options
  • Save alkjez/38bfdf825ef2e94b72cd88a6c1441d29 to your computer and use it in GitHub Desktop.
Save alkjez/38bfdf825ef2e94b72cd88a6c1441d29 to your computer and use it in GitHub Desktop.
public class MessageListActivity extends AppCompatActivity {
private RecyclerView mMessageRecycler;
private MessageListAdapter mMessageAdapter;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_message_list);
mMessageRecycler = (RecyclerView) findViewById(R.id.reyclerview_message_list);
mMessageAdapter = new MessageListAdapter(this, messageList);
mMessageRecycler.setLayoutManager(new LinearLayoutManager(this));
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment