Udostępnij za pośrednictwem


AppWidgetProviderInfo.PreviewLayout Property

Definition

The layout resource id of a preview of what the AppWidget will look like after it's configured.

[Android.Runtime.Register("previewLayout", ApiSince=31)]
public int PreviewLayout { get; set; }
[<Android.Runtime.Register("previewLayout", ApiSince=31)>]
member this.PreviewLayout : int with get, set

Property Value

Attributes

Remarks

The layout resource id of a preview of what the AppWidget will look like after it's configured.

Unlike previewImage, previewLayout can better showcase AppWidget in different locales, system themes, display sizes & density etc.

If supplied, this will take precedence over the previewImage on supported widget hosts. Otherwise, previewImage will be used.

This field corresponds to the android:previewLayout attribute in the AppWidget meta-data file.

Java documentation for android.appwidget.AppWidgetProviderInfo.previewLayout.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to