-
Notifications
You must be signed in to change notification settings - Fork 503
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
Fix part of #140: Topic play animation #486
Closed
Closed
Changes from all commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
ddc950a
Topic play animation
9d560a2
Minor bug fixes
2632149
Minor optimisation
ae1fb63
Final topic play animation
16c18aa
Remove unused code
faf8229
Nit renaming
f8b35e6
Merge remote-tracking branch 'upstream/develop' into topic-play-anima…
f288b1b
Updated test cases
bff5d30
updated chapter_list_container as ExpandableLayout for expand and col…
nikitamarysolomanpvt 0a856e0
nit
nikitamarysolomanpvt 6b7cf74
nit
nikitamarysolomanpvt File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<set xmlns:android="http:https://schemas.android.com/apk/res/android" | ||
android:fillAfter="true" | ||
android:fillEnabled="true" | ||
android:interpolator="@android:anim/linear_interpolator"> | ||
<rotate | ||
android:duration="@integer/topic_play_animation_time_ms" | ||
android:fromDegrees="180" | ||
android:pivotX="50%" | ||
android:pivotY="50%" | ||
android:toDegrees="0" /> | ||
</set> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<set xmlns:android="http:https://schemas.android.com/apk/res/android" | ||
android:fillAfter="true" | ||
android:fillEnabled="true" | ||
android:interpolator="@android:anim/linear_interpolator"> | ||
<rotate | ||
android:duration="@integer/topic_play_animation_time_ms" | ||
android:fromDegrees="0" | ||
android:pivotX="50%" | ||
android:pivotY="50%" | ||
android:toDegrees="180" /> | ||
</set> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
<set xmlns:android="http:https://schemas.android.com/apk/res/android"> | ||
<translate | ||
android:duration="@integer/duration_anim_300_ms" | ||
android:duration="@integer/default_fade_anim_time_ms" | ||
android:fromXDelta="0" | ||
android:toXDelta="-100%" /> | ||
<alpha | ||
android:duration="@integer/duration_anim_300_ms" | ||
android:duration="@integer/default_fade_anim_time_ms" | ||
android:fromAlpha="1.0" | ||
android:toAlpha="0.0" /> | ||
</set> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
<set xmlns:android="http:https://schemas.android.com/apk/res/android"> | ||
<translate | ||
android:duration="@integer/duration_anim_300_ms" | ||
android:duration="@integer/default_fade_anim_time_ms" | ||
android:fromXDelta="100%" | ||
android:interpolator="@android:interpolator/accelerate_decelerate" | ||
android:toXDelta="0" /> | ||
<alpha | ||
android:duration="@integer/duration_anim_300_ms" | ||
android:duration="@integer/default_fade_anim_time_ms" | ||
android:fromAlpha="0.0" | ||
android:toAlpha="1.0" /> | ||
</set> |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<resources> | ||
<integer name="duration_anim_300_ms">300</integer> | ||
<integer name="default_fade_anim_time_ms">300</integer> | ||
</resources> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<resources> | ||
<integer name="default_fade_anim_time_ms">300</integer> | ||
</resources> |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This logic isn't trivial to follow. Can we add tests to make sure that the expand/collapse works as expected & stays working? We shouldn't test the animations, just that the state changes are being reflected correctly.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have updated all test cases:
Check the following tests which checks this functionality:
testTopicPlayFragment_loadFragmentWithTopicTestId0_clickExpandListIconIndex0_clickExpandListIconIndex1_chapterListForIndex0IsNotDisplayed
testTopicPlayFragment_loadFragmentWithTopicTestId0_clickExpandListIconIndex1_clickExpandListIconIndex0_chapterListForIndex0IsNotDisplayed