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

[Android] sticky title on TimetableGrid #1262

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

ked4ma
Copy link
Contributor

@ked4ma ked4ma commented Sep 16, 2023

Issue

Overview (Required)

  • enable show session title when scroll on TimetableGrid.

Links

  • nothing

Screenshot (Optional if screenshot test is present or unrelated to UI)

Before After

Movie (Optional)

Before After
Screen_recording_20230916_190405.webm
Screen_recording_20230916_190338.webm
Screen_recording_20230916_190046.webm
Screen_recording_20230916_190227.webm

Comment on lines +117 to +121
var displayedPosition by remember { mutableFloatStateOf(0f) }
var itemHeight by remember { mutableIntStateOf(0) }
var titleHeight by remember { mutableIntStateOf(0) }
var timeHeight by remember { mutableIntStateOf(0) }
var speakerHeight by remember { mutableIntStateOf(0) }
Copy link
Contributor Author

@ked4ma ked4ma Sep 16, 2023

Choose a reason for hiding this comment

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

theere are possibility that height of column composable for title, time speaker have a variety of values according to session name.
And it was difficult to use spacer to get a room of item (due to weight and so on).
so here, getting each height and calculating maxOffset from these values.

@github-actions
Copy link

github-actions bot commented Sep 16, 2023

Test Results

216 tests   216 ✔️  8m 0s ⏱️
  11 suites      0 💤
  11 files        0

Results for commit 38623d1.

♻️ This comment has been updated with latest results.

@github-actions github-actions bot temporarily deployed to deploygate-distribution September 16, 2023 10:29 Inactive
@ked4ma ked4ma changed the title [WIP] [Android] sticky title on TimetableGrid [Android] sticky title on TimetableGrid Sep 16, 2023
@ked4ma ked4ma marked this pull request as ready for review September 16, 2023 10:38
@ked4ma ked4ma requested a review from a team as a code owner September 16, 2023 10:38
@takahirom
Copy link
Member

@ked4ma Could you add a screenshot test to check it? 🙏

@ked4ma
Copy link
Contributor Author

ked4ma commented Sep 16, 2023

sure.
I'll add tests 😀

@github-actions
Copy link

Hi @ked4ma! Codes seem to be unformatted. To resolve this issue, please run ./gradlew detekt --auto-correct and fix the results of ./gradlew lintDebug.. Thank you for your contribution.

@github-actions
Copy link

startY = visibleSize.height * 4F / 5,
endY = visibleSize.height / 2F,
startY = visibleSize.height * startRatio,
endY = visibleSize.height * (startRatio - amount),
Copy link
Contributor Author

Choose a reason for hiding this comment

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

enabled to pass a parameter for scrolling amount. (for this pr)

@github-actions github-actions bot temporarily deployed to deploygate-distribution September 17, 2023 07:57 Inactive
@github-actions github-actions bot temporarily deployed to deploygate-distribution September 17, 2023 09:00 Inactive
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.

Sticky timetable item title
2 participants