鴻蒙OS IndexBar.OnSelectedListener

2022-09-08 10:11 更新

IndexBar.OnSelectedListener

public static interface IndexBar.OnSelectedListener

回調(diào)以偵聽和索引索引欄的更改事件。

方法總結

修飾符和類型 方法 描述
void onSelected(int index) 獲取索引欄上的當前索引號。

方法詳情

onSelected

void onSelected(int index)

獲取索引欄上的當前索引號。

參數(shù):

參數(shù)名稱 參數(shù)描述
index 指示索引欄上的當前索引號。
以上內(nèi)容是否對您有幫助:
在線筆記
App下載
App下載

掃描二維碼

下載編程獅App

公眾號
微信公眾號

編程獅公眾號