1

Before asking my question I want to post here two snapshots for better understanding.

  1. What I have done so far.enter image description here

  2. What I am trying to implement.enter image description here

I am using this coverflow Api for achieving this functionality because Android Gallery is deprecated.

Now the problem is I am not getting View of the selected Item when coverflow scrolling is finished so I can Highlight it currently coverflow returns me position of the Item for example with following code.

    mCoverFlow.setOnScrollPositionListener(new FeatureCoverFlow.OnScrollPositionListener() {
        @Override
        public void onScrolledToPosition(int position) {

        }

        @Override
        public void onScrolling() {
            mTitle.setText("");
        }
    });

And when I click on a item then I can change the border and code is here.

    mCoverFlow.setOnItemClickListener(new    AdapterView.OnItemClickListener() {
    @Override
    public void onItemClick(AdapterView<?> parent, View view, int position, long id) {
        Toast.makeText(CoverFlowActivity.this,
                getResources().getString(mData.get(position).titleResId),
                Toast.LENGTH_SHORT).show();
        view.requestFocus();
    }
});

with above code I can highlight the Item as below.enter image description here

Please suggest me if it is possible to achieve this functionality using this coverflow Api.

Thank you in advance.

Faraz Ahmed
  • 1,245
  • 1
  • 14
  • 24

1 Answers1

0

Okay guys I have achieved this functionality.enter image description here

By modifying cover flow.

Faraz Ahmed
  • 1,245
  • 1
  • 14
  • 24