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

Separate the logic for animating the ParticleView into SplashFragment. #329

Merged
merged 1 commit into from
Feb 13, 2017
Merged

Separate the logic for animating the ParticleView into SplashFragment. #329

merged 1 commit into from
Feb 13, 2017

Conversation

YusukeIwaki
Copy link
Contributor

Overview (Required)

Currently SplashActivity has 2 responsibility:

  • animating ParticleView
  • start MainActivity with 3 seconds delay.

I think it would be more useful if the logic of animation is capsulized in a Fragment.
This Pull Request provides SplashFragment for handling the ParticleView, and makes SplashActivity simpler.

Links

Screenshot

not changed. Just a refactoring :)

@konifar
Copy link
Contributor

konifar commented Feb 13, 2017

👀

@konifar
Copy link
Contributor

konifar commented Feb 13, 2017

I think it would be more useful if the logic of animation is capsulized in a Fragment.

Make sense. I agree your opinion


<io.github.droidkaigi.confsched2017.view.customview.ParticlesAnimationView
android:id="@+id/particle_animation_view"
<FrameLayout
Copy link
Contributor

@konifar konifar Feb 13, 2017

Choose a reason for hiding this comment

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

Is this <FrameLayout> necessary?
DataBinding <layout> tag requires root view?

@konifar
Copy link
Contributor

konifar commented Feb 13, 2017

LGTM 💯 Thanks!
@roana0229 Can you check this just in case?

@konifar konifar merged commit 98d7a2c into DroidKaigi:master Feb 13, 2017
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.

3 participants