You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if (mActivity.get()!!.findViewById<RelativeLayout>(FOREGROUND_LAYOUT_ID) != null)
return mActivity.get()!!.findViewById(FOREGROUND_LAYOUT_ID)
2 types of error:
java.lang.ClassCastException - android.widget.ImageView cannot be cast to android.widget.RelativeLayout
My investigation say s:
The error you're encountering is due to a class cast exception in the getBackgroundDimLayout function. The code is trying to cast an ImageView to a RelativeLayout, which is causing the issue.
Looking at your code, it seems that you are creating an ImageView (targetScreenshotView) in the addTargetViewAtBackgroundDimLayout function, and later, in the getBackgroundDimLayout function, you are expecting to find a RelativeLayout with the ID FOREGROUND_LAYOUT_ID. However, since targetScreenshotView is an ImageView, the cast fails.
To fix this issue, you should create a RelativeLayout instance for FOREGROUND_LAYOUT_ID in the getBackgroundDimLayout function, rather than relying on targetScreenshotView.
And similar may apply for next error
Fatal Exception: java.lang.ClassCastException: android.widget.LinearLayout cannot be cast to android.widget.RelativeLayout
In my investigation, I see sometimes it does not show the bubble case tooltip that we use in our app. I am trying to find the:
If anyone has faced this issue? what solution has worked.
Are there any alternatives to this library?
The text was updated successfully, but these errors were encountered:
Throws Error at line #2
2 types of error:
My investigation say s:
The error you're encountering is due to a class cast exception in the getBackgroundDimLayout function. The code is trying to cast an ImageView to a RelativeLayout, which is causing the issue.
Looking at your code, it seems that you are creating an ImageView (targetScreenshotView) in the addTargetViewAtBackgroundDimLayout function, and later, in the getBackgroundDimLayout function, you are expecting to find a RelativeLayout with the ID FOREGROUND_LAYOUT_ID. However, since targetScreenshotView is an ImageView, the cast fails.
To fix this issue, you should create a RelativeLayout instance for FOREGROUND_LAYOUT_ID in the getBackgroundDimLayout function, rather than relying on targetScreenshotView.
And similar may apply for next error
In my investigation, I see sometimes it does not show the bubble case tooltip that we use in our app. I am trying to find the:
The text was updated successfully, but these errors were encountered: