草庐IT

getForeground

全部标签

java - “调用需要 API 级别 23”错误,但 API 1 的 FrameLayout 上存在 getForeground()

总结最后,我发现了相关问题,setForeground()被错误地标记为在扩展FrameLayout的ViewGroups上需要API23。Issue189041:setForeground()incorrectlyflaggedasrequiringAPI23(NewApi)forViewGroupsextendingFrameLayout如果你没有扩展FrameLayout,说明文档有误,需要API23。Issue186273:View.setForegroundwrongAPIlevel更新问题标记为duplicatedofCan'tusesetForegroundmethodo