google / flexbox-layout

Flexbox for Android
Apache License 2.0
18.24k stars 1.79k forks source link

AppWidget support - Problem loading Widget #558

Closed KLT1003 closed 3 years ago

KLT1003 commented 3 years ago

Issues and steps to reproduce

I tried to build an AppWidget according to https://developer.android.com/guide/topics/appwidgets with a FlexBoxLayout as the widgets main layout. Just put some simple Textview with fixed width/height (e.g. 80dp) as inner elements for testing purposes. As soon as I try to create the widget I get the appropriate calls (onReceive, onEnabled, onUpdate, etc.) but the Widget shows "Problem loading widget". Logcat does not show any details to the cause (normally I would expect some layout inflating issues in the logcat). Does flexbox-layout support AppWidgets?

Expected behavior

Flexbox layout should work within an AppWidget.

Version of the flexbox library

2.0.1

dutscher commented 3 years ago

+1

thagikura commented 3 years ago

No it's not supported at this moment.

As far as I concern, it's not supported to use layouts or views from non-Android framework libraries at this moment.

KLT1003 commented 3 years ago

Unfortunate and also understandable that it's not a priority, but for clarification the widgets are native Android features and not a non-Android framework library.