SnackBar icon indicating copy to clipboard operation
SnackBar copied to clipboard

Animation reveal does not match Material Design

Open RyanRamchandar opened this issue 11 years ago • 3 comments

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

RyanRamchandar avatar Mar 11 '15 05:03 RyanRamchandar

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.

EugeneHoran avatar Mar 11 '15 15:03 EugeneHoran

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

MrEngineer13 avatar Apr 13 '15 15:04 MrEngineer13

@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();
        }
    });
}

EugeneHoran avatar Apr 13 '15 16:04 EugeneHoran