I am trying to build my own launcher application with widget host support as described in Hosting widgets in an android launcher.
This is working fine with some widgets like Analog clock but its not working with the Digital clock widget. When I tried adding Digital clock it becomes invisible, whereas with default home launcher it works just fine. Also a few widgets like Note appear "partially" with this code. Not with the default launcher, it then works fine.
I am using Marshmallow and later versions of android, and the behavior is common to all the phones.
Please share if anyone faced this issue and found the root cause? Or point me in the direction to solve this.