Skip to content

hello #51

Description

@ispirLee25

my page change listener is not working

internal class MyPageChangeListener : Java.Lang.Object, ViewPager.IOnPageChangeListener
{
public MyPageChangeListener(MainActivity activity)
{
this.activim = activity;
Toast.MakeText(activim, "Tammadır", ToastLength.Long).Show();
System.Diagnostics.Debug.WriteLine("sadgasg");
}
public MainActivity activim;
public void OnPageScrolled(int position, float positionOffset, int positionOffsetPixels)
{
Toast.MakeText(activim, "Tammadır", ToastLength.Long).Show();
System.Diagnostics.Debug.WriteLine("OnPageSelected" + " " + position);
}

        public void OnPageScrollStateChanged(int position)
        {
            Toast.MakeText(activim, "Tammadır", ToastLength.Long).Show();
            System.Diagnostics.Debug.WriteLine("OnPageSelected" + " " + position);
        }

        public void OnPageSelected(int position)
        {
            Toast.MakeText(activim, "Tammadır", ToastLength.Long).Show();
            System.Diagnostics.Debug.WriteLine("OnPageSelected" + " " + position);

        }
    }

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions