Using PreferenceScreen/PreferenceActivity to configure home screen widgets

后端 未结 2 1663
礼貌的吻别
礼貌的吻别 2021-02-10 14:57

I\'m creating an appwidget, where the user should be able to configure it before it is added to the home screen. To me, PreferenceScreen/PreferenceActivity seems perfect for the

2条回答
  •  暖寄归人
    2021-02-10 15:25

    You certainly can use a PreferenceActivity for this purpose. If you set it up as the android:configure activity in your widget configuration, though, you will have to do a bit of fancy footwork to then get your widget updated.

提交回复
热议问题