Anand Kumar
Anand Kumar

Reputation: 1509

android support library v 23.3.0 snackbar issue

When I use support library v 23.2.1 the snackbar moves the fab buttons correctly but after updating the support library to v 23.3.0 the fab buttons go up but doesn't comes down. I am forced to use v 23.2.1.

And the problem is happening only with Marshmallow android version, with jelly bean its working fine for both(v23.3.0 & v23.2.1).

can anybody explain? Please.

Upvotes: 4

Views: 416

Answers (1)

Luis T Muñozcano
Luis T Muñozcano

Reputation: 26

I've tested the library in 3 apps that i'm working on, i do not have issues with snackbar, it could be that is the wrong view to show the snackbar, i think you have to call in the CoordinatorLayout.

View mViewCoordinatorLayout = findViewById(R.id.coordinatorLayout); if(mViewCoordinatorLayout != null){ Snackbar.make(mViewCoordinatorLayout, R.string.someString , Snackbar.LENGTH_LONG) .setAction("Action", null).show(); }

Upvotes: 1

Related Questions