BottomSheet内部的微调器不起作用

时间:2018-06-28 13:12:21

标签: android android-spinner android-coordinatorlayout bottom-sheet coordinator-layout

我使用BottomSheetBehavior在底部工作表中添加了一个Spinner。设置好适配器并拉起底片后,应用崩溃,并显示以下错误。

java.lang.ClassCastException: android.view.ViewGroup$LayoutParams cannot be cast to android.support.constraint.ConstraintLayout$LayoutParams
    at android.support.constraint.ConstraintLayout.getViewWidget(ConstraintLayout.java:1142)
    at android.support.constraint.ConstraintHelper.updatePreLayout(ConstraintHelper.java:240)
    at android.support.constraint.ConstraintLayout.setChildrenConstraints(ConstraintLayout.java:850)
    at android.support.constraint.ConstraintLayout.updateHierarchy(ConstraintLayout.java:794)
    at android.support.constraint.ConstraintLayout.onMeasure(ConstraintLayout.java:1542)
    at android.view.View.measure(View.java:22071)

底表内的微调框是否存在兼容性问题?

0 个答案:

没有答案