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

Settings transitions #477

Merged
merged 4 commits into from
Feb 13, 2019
Merged

Settings transitions #477

merged 4 commits into from
Feb 13, 2019

Conversation

eoji
Copy link
Contributor

@eoji eoji commented Feb 12, 2019

What ❓

Created standard style SettingsActivity for settings transitions so we don't need to override exitTransition everywhere.

Removed Discovery -> Settings transition.

Story πŸ“–

Trello

See πŸ‘€

From Discovery
device-2019-02-12-162352 2019-02-12 16_26_19

Top Level Settings
device-2019-02-12-161633 2019-02-12 16_26_45

Account & Payment methods
(change email is omitted from gif on purpose)
device-2019-02-12-162915 2019-02-12 16_30_22

Notifications
device-2019-02-12-162118 2019-02-12 16_26_03

…verride exitTransition everywhere.

Changed Discovery -> Settings transition to slide up.
@dnywh
Copy link
Contributor

dnywh commented Feb 12, 2019

Changed Discovery -> Settings transition to slide up.

This feels a bit jarring to me. Agreed with the sentiment, though. How about we remove the transition completely? The Drawer -> Section transition (instantaneous, in this suggestion) should occur before the drawer closes. Gmail on Android is a good example of this.

@eoji
Copy link
Contributor Author

eoji commented Feb 12, 2019

Gmail is using Fragments, since we're using Activities, it's not possible (we're going from 1 screen with a drawer to a new one). Here's what it looks like with no transition:
device-2019-02-12-170149 2019-02-12 17_06_10

@dnywh
Copy link
Contributor

dnywh commented Feb 12, 2019 via email

Copy link
Contributor

@Rcureton Rcureton left a comment

Choose a reason for hiding this comment

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

Great code cleanup!

βœ…Tested

  • Tested on the Samsung s8

<style name="SettingsActivityTransitions" parent="android:style/Animation.Activity">
<item name="android:activityOpenEnterAnimation">@anim/settings_slide_in_from_bottom</item>
<item name="android:activityOpenExitAnimation">@null</item>
<item name="android:activityCloseEnterAnimation">@null</item>
Copy link
Contributor

Choose a reason for hiding this comment

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

✨

@eoji eoji merged commit 07b336d into master Feb 13, 2019
@eoji eoji deleted the io/settings-transitions branch February 13, 2019 15:53
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

3 participants