'Call requires API level 23' error, but getForeground() exists on FrameLayout from API 1

后端 未结 1 1009

Summary

Finally, I found the related issue, setForeground() incorrectly flagged as requiring API 23 on ViewGroups extending Frame

1条回答
  •  梦谈多话
    2021-01-01 10:50

    Finally I found the related issue, setForeground() incorrectly flagged as requiring API 23 for ViewGroups extending FrameLayout.

    Issue 189041: setForeground() incorrectly flagged as requiring API 23 (NewApi) for ViewGroups extending FrameLayout

    If you are not extending FrameLayout, the documentation is wrong and API 23 is really required.

    Issue 186273: View.setForeground wrong API level

    0 讨论(0)
提交回复
热议问题