当我翻阅 Android Gallery 时,它会移动到图像并且焦点锁定在它上面。我应该听哪个事件来锁定图像?
问问题
116 次
1 回答
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)
{
}
});
于 2011-09-02T04:50:55.047 回答