I am developing an Application.
My layout is in my Previous Question.
For that I am using horizontal List view. In that I want to Get the position of the images while Scroll is changed.
I had tried for this:
hlv.setOnScrollStateChangedListener(new OnScrollStateChangedListener() {
@Override
public void onScrollStateChanged(ScrollState scrollState) {
// TODO Auto-generated method stub
for(int i=0;i<albumList.size();i++)
{
if(hlv.callOnClick())
{
int id=i;
Toast.makeText(getApplicationContext(), ""+id, 1000).show();
}
}
}
});
But didnt successed. I didnt got the position of element in the Variable.