I'm targeting API 23.
Previously, I am using FrameLayout
's setForeground
method in device with API 16 without any issues.
Recently, I migrate FrameLayout
to android.support.design.widget.CoordinatorLayout
, with intention to continue support for device with API 16.
To my surprise, setForeground
for View
, is only available since API 23.
Also, bug in documentation will give you lotsa headache - Call requires API level 23: getForeground() error, but is a FrameLayout method since API 1
So, may I know how do you perform setForeground
on android.support.design.widget.CoordinatorLayout
, for device with API 16?
ViewCompat
doesn't help much, as it doesn't contain setForeground
method.