如何解决此错误
类型'android.view.ViewGroup'的实例不能分配给 类型
的变量com.android.keyguard.ChallengeLayout
代码
ChallengeLayout challenge = mSlidingChallengeLayout != null ?
mSlidingChallengeLayout : mMultiPaneChallengeLayout;
答案 0 :(得分:0)
该错误表示您的布局不是ViewGroup
的王者。
接口[ChallengeLayout][1]
将由您的ViewGroup实现,在这里,它似乎是SlidingChallengeLayout
...因此,请确保类SlidingChallengeLayout
实现了ChallengeLayout
PS:ChallengeLayout不是公共API。确保您确实需要自定义Android ROM ...