Enhance Your App Widget? - Build an App Widget Preview Image

App widget allow users to access information from your app directly from the Home screen and interact with ongoing services (such as preview their email and control music playback).

画像1

Android Framework enhances these capabilities by enabling collections, created with widgets such as ListView, GridView, and StackView.

These widgets allow you to create more interactive app widgets, such as one with a scrolling list, and can automatically update their data through a RemoteViewsService.

<appwidget-provider xmlns:android="http://schemas.android.com/apk/res/android"
  ...
  android:previewImage="@drawable/preview">
</appwidget-provider>

Additionally, you should create a preview image of your app widget using the "Widget Preview" app and reference it with the android:previewImage attribute, so that users can see what the app widget looks like before adding it to their Home screen.


この記事が参加している募集

最近の学び

この記事が気に入ったらサポートをしてみませんか?