WallpaperManager.SetWallpaperOffsets(IBinder, Single, Single) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
在該桌布在視窗後方可見時,將目前桌布的顯示位置設為任何較大空間。
[Android.Runtime.Register("setWallpaperOffsets", "(Landroid/os/IBinder;FF)V", "GetSetWallpaperOffsets_Landroid_os_IBinder_FFHandler")]
public virtual void SetWallpaperOffsets(Android.OS.IBinder? windowToken, float xOffset, float yOffset);
[<Android.Runtime.Register("setWallpaperOffsets", "(Landroid/os/IBinder;FF)V", "GetSetWallpaperOffsets_Landroid_os_IBinder_FFHandler")>]
abstract member SetWallpaperOffsets : Android.OS.IBinder * single * single -> unit
override this.SetWallpaperOffsets : Android.OS.IBinder * single * single -> unit
參數
- windowToken
- IBinder
IBinder:這些偏移應該關聯的視窗,由 View.getWindowToken() 回傳。
- xOffset
- Single
float:沿 X 維度的偏移量,從 0 到 1。
- yOffset
- Single
float:沿 Y 維度的偏移量,從 0 到 1。
- 屬性
備註
在該桌布在視窗後方可見時,將目前桌布的顯示位置設為任何較大空間。 X 和 Y 的偏移是浮點數,範圍從 0 到 1,代表桌布在螢幕空間中應該的位置。 這些只有在桌布比展示大時才有意義。
Android 參考資料。android.app.WallpaperManager.setWallpaperOffsets
本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。