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

solution to resolve "data.time" err #15

Open
user8361 opened this issue Apr 1, 2019 · 0 comments
Open

solution to resolve "data.time" err #15

user8361 opened this issue Apr 1, 2019 · 0 comments

Comments

@user8361
Copy link

user8361 commented Apr 1, 2019

change data.time ---> data.date.getTime()

public void onBindViewHolder(ItemViewHolder itemViewHolder, int i) {
final ItemData data = mDataSet.get(i);
ShapeDrawable drawable = new ShapeDrawable(new OvalShape());
drawable.getPaint().setColor(data.color);
itemViewHolder.icon.setBackgroundDrawable(drawable);
itemViewHolder.icon.setImageResource(data.icon);
itemViewHolder.title.setText(data.title);
itemViewHolder.subTitle.setText(dateFormat.format(data.date.getTime()));
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant