Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reimplement list activity with RecyclerView #2

Merged
merged 1 commit into from
May 2, 2016

Conversation

jnovinger
Copy link
Owner

Also refactor the list item view a bit to include two separate text
views, one for headline and one for byline.

Also refactor the list item view a bit to include two separate text
views, one for headline and one for byline.
public class ArticleAdapter extends RecyclerView.Adapter<ArticleAdapter.ViewHolder> {
private ArrayList<Article> mArticles;

public static class ViewHolder extends RecyclerView.ViewHolder {
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hey! half my comments from the last PR are already addressed 8 hours ago!

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do you get the viewholder pattern?

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not completely, but I expect there will be some amount of "it just works" while learning a framework. I'll report back on ViewHolder at some point.

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok, let me know if you want the long story... it came about because of bad habits and slow xml parsing, but is now baked in the cake, so i think turned out maybe a little differently than it might have without those bumps

@moagrius
Copy link

moagrius commented May 1, 2016

+1 clean, simple, easy to read, ready to ship

@jnovinger jnovinger merged commit 604261a into http-json-feed May 2, 2016
@jnovinger jnovinger mentioned this pull request May 2, 2016
9 tasks
@jnovinger jnovinger self-assigned this May 2, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants