是否有可能在ViewSwitcher中獲取當前顯示圖像的名稱/引用/ ID?ViewSwitcher中的當前圖像
switcher = (ViewSwitcher) findViewById(R.id.viewSwitcher);
[...]
@Override
public boolean onSingleTapUp(MotionEvent e) {
Log.d(TAG, "tell me please, how to get the name/reference/id/etc of the currently displayed image, so i can start a specific action relating to the current image");
return false;
}
謝謝!
托比亞斯
@mango獲取當前可見項目的索引:確定,但問題是如何檢測當前顯示的圖像,所以我可以開始與當前圖像有關的特定操作?我無法在評論中添加代碼,因此請參閱下文。 – CoUnt3r