i'm having difficult time getting work. android documentation, while seemingly straightforward, isn't getting me need be.
what want accomplish widget must width of phone regardless of form factor.
i need 4 x 1 (or 4 x 2 fine even)...but needs fill width.
<appwidget-provider xmlns:android="http://schemas.android.com/apk/res/android" android:minwidth="250dp" android:minheight="100dp" android:previewimage="@drawable/main_app_icon" android:initiallayout="@layout/initial_widget_layout" android:updatepriodmillis="0"/> i understand minheight incorrect. can offer guidance on that?
thanks.
edit: while realize there number of threads talking widgets, cannot find 1 explains how make widget fill entire width of screen.
my god...every freaking time!!! every time post question on stackoverflow swear figure out answer.
in short...in layout widget (not appwidgetprovider xml), needed set layout_width , layout_height = match_parent
Comments
Post a Comment