JungHsuan / CircularUI

Display views in circular shape in Android with smooth scroll and item click action.
MIT License
36 stars 13 forks source link

Error on CircularTouchListener #1

Open akku20080 opened 6 years ago

akku20080 commented 6 years ago

I am getting this issue when I click circular item 'com.jh.circularlist.CircularTouchListener.CircularItemClickListener' is not public in 'com.jh.circularlist.CircularTouchListener'. Cannot be accessed from outside package

Please help!

JungHsuan commented 6 years ago

hi @akku20080, Can you describe how you use it or post some codes here? Thanks!

SangoX commented 6 years ago

The access level of interface CircularItemClickListener is package level. So outside package can't see the listener.

manishsundriyal commented 6 years ago

I am also facing the same error

'com.jh.circularlist.CircularTouchListener.CircularItemClickListener' is not public in 'com.jh.circularlist.CircularTouchListener'. Cannot be accessed from outside package

circularListView.setOnItemClickListener(new CircularTouchListener.CircularItemClickListener() {
            @Override
            public void onItemClick(View view, int index) {
                Toast.makeText(MainActivity.this,
                        "view at index " + index + " is clicked!",
                        Toast.LENGTH_SHORT).show();
            }
        });
JungHsuan commented 6 years ago

@manishsundriyal hi, as @SangoX said, I will fix this issue a.s.a.p. Thanks for the comment!

JungHsuan commented 6 years ago

hi @akku20080 and @manishsundriyal, I just updated code for solving this issue to 1.2 release. Please update the dependencies to 1.2 and try again, hope this will solve your problem, Thanks!