語言

EdgeEffect.OnPull 方法

定義

多載

名稱 Description
OnPull(Single)

當使用者將內容從邊緣拉離時,視圖應該會稱之為此。

OnPull(Single, Single)

當使用者將內容從邊緣拉離時,視圖應該會稱之為此。

OnPull(Single)

當使用者將內容從邊緣拉離時,視圖應該會稱之為此。

[Android.Runtime.Register("onPull", "(F)V", "GetOnPull_FHandler")]
public virtual void OnPull(float deltaDistance);
[<Android.Runtime.Register("onPull", "(F)V", "GetOnPull_FHandler")>]
abstract member OnPull : single -> unit
override this.OnPull : single -> unit

參數

deltaDistance
Single

距離自上次通話以來的變化。 數值可為0(無變化)至1.f(視角全長),或負值以表示向觸發效應所到達邊緣的變化。

屬性

備註

當使用者將內容從邊緣拉離時,視圖應該會稱之為此。 這會更新當前視覺效果及其相關動畫的狀態。 主持人視角應該始終 android.view.View#invalidate() 在此之後,並依此繪製結果。

使用 EdgeEffect 的視圖應該 #onPull(float, float) 偏好已知拉拔點位移的視角。

Java 文件 android.widget.EdgeEffect.onPull(float)

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於

OnPull(Single, Single)

當使用者將內容從邊緣拉離時,視圖應該會稱之為此。

[Android.Runtime.Register("onPull", "(FF)V", "GetOnPull_FFHandler")]
public virtual void OnPull(float deltaDistance, float displacement);
[<Android.Runtime.Register("onPull", "(FF)V", "GetOnPull_FFHandler")>]
abstract member OnPull : single * single -> unit
override this.OnPull : single * single -> unit

參數

deltaDistance
Single

距離自上次通話以來的變化。 數值可為0(無變化)至1.f(視角全長),或負值以表示向觸發效應所到達邊緣的變化。

displacement
Single

起始點效應的位移。 在觸覺的情況下,這就是指尖的位置。 數值範圍可能為 0-1。

屬性

備註

當使用者將內容從邊緣拉離時,視圖應該會稱之為此。 這會更新當前視覺效果及其相關動畫的狀態。 主持人視角應該始終 android.view.View#invalidate() 在此之後,並依此繪製結果。

Java 文件 android.widget.EdgeEffect.onPull(float, float)

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於