Example #1
0
        public override void OnViewCreated(View view, Bundle savedInstanceState)
        {
            base.OnViewCreated(view, savedInstanceState);

            _horizontalInfiniteCycleViewPager         = view.FindViewById <HorizontalInfiniteCycleViewPager>(Resource.Id.hicvp);
            _horizontalInfiniteCycleViewPager.Adapter = new SafetyMainHorizontalPagerAdapter(this, Context);

            _horizontalInfiniteCycleViewPager.PageSelected += HorizontalInfiniteCycleViewPager_PageSelected;
        }
Example #2
0
 protected override void OnCreate(Bundle savedInstanceState)
 {
     base.OnCreate(savedInstanceState);
     Xamarin.Essentials.Platform.Init(this, savedInstanceState);
     // Set our view from the "main" layout resource
     SetContentView(Resource.Layout.activity_main);
     infiniteCycleViewPager = FindViewById <HorizontalInfiniteCycleViewPager>(Resource.Id.pager_main);
     GetData();
 }
Example #3
0
    protected override void OnCreate(Bundle savedInstanceState)
    {
        base.OnCreate(savedInstanceState);
        SetContentView(Resource.Layout.Main);
        InitData();
        HorizontalInfiniteCycleViewPager viewPager = FindViewById <HorizontalInfiniteCycleViewPager>(Resource.Id.hicvp);
        MyAdapter adapter = new MyAdapter(listImage, BaseContext);

        viewPager.Adapter = adapter;
    }
Example #4
0
        protected override void OnCreate(Bundle savedInstanceState)
        {
            base.OnCreate(savedInstanceState);

            SetContentView(Resource.Layout.ViewPromos);
            // Create your application here

            InitData();
            HorizontalInfiniteCycleViewPager viewPager = FindViewById <HorizontalInfiniteCycleViewPager>(Resource.Id.horizontal_viewpager);
            MyAdapter adapter = new MyAdapter(lstImages, BaseContext);

            viewPager.Adapter = adapter;
        }
Example #5
0
        protected override void ComponentsLocalizer()
        {
            base.ComponentsLocalizer();
            stub.LayoutResource = Resource.Layout.complaint;
            stub.Inflate();
            infiniteCycle = FindViewById <HorizontalInfiniteCycleViewPager>(Resource.Id.horizontal_viewpager);
            List <string> photos = new List <string>();

            photos.Add(GlobalVars.selectedComplaint.photo);
            photos.Add(GlobalVars.selectedComplaint.photo);
            photos.Add(GlobalVars.selectedComplaint.photo);
            infiniteCycle.Adapter = new InfiniteCycleAdapter(photos, this);
        }
 private void ComponentsLocalizer()
 {
     listProgress    = view.FindViewById <ListView>(Resource.Id.listProgress);
     complaintImages = view.FindViewById <HorizontalInfiniteCycleViewPager>(Resource.Id.horizontal_viewpager);
     complaintText   = view.FindViewById <TextView>(Resource.Id.ComProgresComplaint);
 }