예제 #1
0
            public override View OnCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState)
            {
                View view = inflater.Inflate(Resource.Layout.KurumsalRenkSecBaseActivity, container, false);

                picker = view.FindViewById <ColorPicker>(Resource.Id.picker);
                //saturationBar = view.FindViewById<SaturationBar>(Resource.Id.saturationbar);
                valueBar = view.FindViewById <ValueBar>(Resource.Id.valuebar);


                //picker.AddSVBar(svBar);
                //picker.addOpacityBar(opacityBar);
                //picker.AddSaturationBar(saturationBar);
                picker.AddValueBar(valueBar);

                //To get the color
                var a = picker.Color;

                //To set the old selected color u can do it like this
                picker.OldCenterColor = picker.Color;
                // adds listener to the colorpicker which is implemented
                //in the activity
                picker.OnColorChangedListener = this;

                //to turn of showing the old color
                // picker.setShowOldCenterColor(false);

                //adding onChangeListeners to bars
                //opacitybar.setOnOpacityChangeListener(new OnOpacityChangeListener …);
                //valuebar.setOnValueChangeListener(new OnValueChangeListener …);
                //saturationBar.setOnSaturationChangeListener(new OnSaturationChangeListener …);



                mRecyclerView = view.FindViewById <RecyclerView>(Resource.Id.recyclerView1);
                mRecyclerView.HasFixedSize = true;
                new System.Threading.Thread(new System.Threading.ThreadStart(async delegate
                {
                    await Task.Run(async delegate
                    {
                        await Task.Delay(1000);
                        RekleriGetir();
                    });
                })).Start();
                return(view);
            }