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

Animation reveal does not match Material Design #77

Open
RyanRamchandar opened this issue Mar 11, 2015 · 3 comments
Open

Animation reveal does not match Material Design #77

RyanRamchandar opened this issue Mar 11, 2015 · 3 comments

Comments

@RyanRamchandar
Copy link

The snackbar reveal animation is more of a fade and slide in as opposed to a pure slide from the bottom like it is now.

Check the video here:
http://material-design.storage.googleapis.com/publish/v_2/material_ext_publish/0B0NGgBg38lWWZFcwa2wyTG1ybE0/components-snackbarstoasts-spec-061302_Mobile_Snackbar_xhdpi_002.webm

@EugeneHoran
Copy link

I would think a solution would be to add alpha to the animation. I am no expert in this area but I am sure if you mess around with the code of the library it can be achieved.

@MrEngineer13
Copy link
Owner

We are already using a slide and fade out see the animation set

@EugeneHoran
Copy link

@MrEngineer13 I just added .1.1.0' to a project to test it out. It is still not animating with the alpha on show and dismiss. I am assuming I am not calling the animation but I don't see the animation implementation. Any suggestion on getting this animation?

SnackBar.Builder snackBarB;
Button showSB;

private void snackBarTest() {
    showSB = (Button) findViewById(R.id.snackBar);
    showSB.setOnClickListener(new View.OnClickListener() {
        @Override
        public void onClick(View v) {
            snackBarB = new SnackBar.Builder(MainActivity.this);
            snackBarB.withMessage("This library is awesome!");
            snackBarB.show();
        }
    });
}

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

No branches or pull requests

3 participants