Below is the view stub that I am trying to use in the widget layout for app widgets.
<ViewStub
android:id="@+id/test_viewstub"
android:layout_width="50dp"
android:layout_height="30dp"
android:inflatedId="@+id/test_viewstub"
android:layout_alignParentTop="true"
android:layout="@layout/test_viewstub"/>
The issue is that when I add this to the widget layout the widget UI is lost and 'Problem loading widget' message is displayed in the place of widget.
But when I use the same view stub as it is in an activity layout then its working perfectly fine.
Any suggestions or help on this issue.
Thanks In Advance