I'm trying to get hold of the Snackbar
's TextView
. This is the code I'm using:
Snackbar snackbar = Snackbar.make(mRecyclerView, message, Snackbar.LENGTH_LONG);
View view = snackbar.getView();
TextView tv = (TextView) view.findViewById(android.support.design.R.id.snackbar_text);
Running the above always sets tv
to null. I'm using design library version 23.0.0
and in the layout resource for the snackbar, I can see the TextView
with id snackbar_text
. What am I missing?