android - ViewStub not working in App widget -


below view stub trying use in widget layout 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 when add widget layout widget ui lost , 'problem loading widget' message displayed in place of widget.

but when use same view stub in activity layout working fine.

any suggestions or on issue.

thanks in advance


Popular posts from this blog

c# - ODP.NET Oracle.ManagedDataAccess causes ORA-12537 network session end of file -

matlab - Compression and Decompression of ECG Signal using HUFFMAN ALGORITHM -

utf 8 - split utf-8 string into bytes in python -