Specify the android:previewImage属性 http://developer.android.com/guide/topics/appwidgets/index.html#preview在您的应用程序小部件 XML 元数据文件中:
<appwidget-provider xmlns:android="http://schemas.android.com/apk/res/android"
android:minWidth="146dip"
android:minHeight="146dip"
android:updatePeriodMillis="0"
android:initialLayout="@layout/widget"
android:autoAdvanceViewId="@+id/words"
android:previewImage="@drawable/preview"
android:resizeMode="vertical"
/>
(from 这个示例项目 https://github.com/commonsguy/cw-omnibus/tree/master/AppWidget/LoremWidget)
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)