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

Created sessions page #66

Merged
merged 5 commits into from
Jan 28, 2017
Merged

Created sessions page #66

merged 5 commits into from
Jan 28, 2017

Conversation

konifar
Copy link
Contributor

@konifar konifar commented Jan 26, 2017

Issue

#11

Overview (Required)

  • I tried to create grid-like sessions view.
  • The design is not fixed.

Structure

To be honest, I wanted to use RecyclerView + custom LayoutManager.
But it's difficult to catch up in a short time.
So I implemented like this.

I'm using twoway-view which has SpannableGridLayoutManager which provides setColSpan() and setRowSpan() to RecyclerView.
In fact, the dummy item is filled as blank time slot like below.

I'll try to improve this page by using custom LayoutManager on another PR 💪

Links

@KeithYokoma
Copy link
Contributor

👀

@hotchemi
Copy link
Contributor

👁

@konifar
Copy link
Contributor Author

konifar commented Jan 27, 2017

🙇

Copy link
Contributor

@KeithYokoma KeithYokoma left a comment

Choose a reason for hiding this comment

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

Reviewed and put some comments!

Disposable disposable = viewModel.getSessions(languageId, getContext())
.subscribe(
this::renderSessions,
throwable -> Timber.e(TAG, "Failed to show sessions.", throwable)
Copy link
Contributor

Choose a reason for hiding this comment

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

I think arguments of Timber.e() should be (Throwable, String, Object...).
You can use Timber.tag(String) to set a log tag before calling e().

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I see. I'll fix this! Thanks!

}

switch (topic.id) {
case 1:
Copy link
Contributor

Choose a reason for hiding this comment

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

Magic number 😏

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Replaced to static fields.

@KeithYokoma
Copy link
Contributor

Reviewed!

@konifar
Copy link
Contributor Author

konifar commented Jan 28, 2017

@KeithYokoma Addressed! Can you review again?

Copy link
Contributor

@KeithYokoma KeithYokoma left a comment

Choose a reason for hiding this comment

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

LGTM!!!!

LGTM

👍

@konifar konifar merged commit 3918707 into master Jan 28, 2017
@konifar konifar deleted the sessions branch January 28, 2017 21:01
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

Successfully merging this pull request may close these issues.

None yet

3 participants