当我浏览Android图库时,它会移动到图像并且焦点会锁定在图像上。我应该在哪个事件中监听图像锁定?
答案 0 :(得分:1)
尝试以下代码
mCoverFlow.setOnItemSelectedListener(new OnItemSelectedListener()
{
@Override
public void onItemSelected(AdapterView<?> arg0, View v, int position, long arg3)
{
// position will give you the locked item
}
@Override
public void onNothingSelected(AdapterView<?> arg0)
{
}
});