Snackbar$SnackbarLayout.onFinishInflate issue RRS feed

  • Question

  • User287127 posted

    I face issue while I am trying to use Snackbar here is error stack

    Java.Lang.ClassCastException: android.support.v7.widget.AppCompatTextView cannot be cast to android.widget.Button

    any one can guide me why this issue raised

    Monday, January 16, 2017 8:59 AM

All replies

  • User168554 posted

    It would be usefull to see the part of the code where the problem occurs. It looks like you are using FindViewById on a AppCompatTextView while casting it to a Button. Try to replace (Button) with (AppCompatTextView).

    Tuesday, January 17, 2017 12:48 PM
  • User287127 posted

    I have all details for my question here


    please have a look

    Wednesday, January 18, 2017 8:27 AM