我想为 API 14 使用 FlexboxLayout,但我遇到了一些问题,即ViewCompat类方法 ViewCompat.combineMeasuredStates方法不适用于 api 14。那么我该如何使用它呢?
1 回答
1
minSdkVersionof声明为 9,这意味着在 API 14 中使用它应该没有问题。不过,您可以看到类的实现并将其替换为您的实现,在这种情况下,而不是调用call 。FlexboxLayout ViewCompatViewCompat.combineMeasuredStates(int, int)View.combineMeasuredStates(int, int)
此外,如ViewCompat.combineMeasuredState(int, int) 的文档中所示:
此方法在 API 级别 26.0.0-alpha1 中已弃用。直接使用 combineMeasuredStates(int, int)。
于 2017-03-22T06:11:55.490 回答