private void InitComponent() { try { MRvTools = FindViewById <RecyclerView>(Resource.Id.rvConstraintTools); MRvFilters = FindViewById <RecyclerView>(Resource.Id.rvFilterView); MRvColor = FindViewById <RecyclerView>(Resource.Id.add_text_color_picker_recycler_view); SeekBarRotate = FindViewById <IndicatorSeekBar>(Resource.Id.sbRotate); SeekBarRotate.SetOnSeekChangeListener(this); ImgUndo = FindViewById <ImageView>(Resource.Id.imgUndo); ImgRedo = FindViewById <ImageView>(Resource.Id.imgRedo); ImgSave = FindViewById <TextView>(Resource.Id.imgSave); ImgClose = FindViewById <ImageView>(Resource.Id.imgClose); ImgDeleteAll = FindViewById <ImageView>(Resource.Id.imgdeleteall); Typeface regularTxt6 = Typeface.CreateFromAsset(Assets, "SF-UI-Display-Regular.ttf"); ImgSave.SetTypeface(regularTxt6, TypefaceStyle.Normal); MRvTools.Visibility = ViewStates.Visible; MRvFilters.Visibility = ViewStates.Gone; SeekBarRotate.Visibility = ViewStates.Gone; MRvColor.Visibility = ViewStates.Gone; } catch (Exception e) { Console.WriteLine(e); } }
public void OnStopTrackingTouch(IndicatorSeekBar seekBar) { try { GC.Collect(GC.MaxGeneration, GCCollectionMode.Forced); var(key, filter) = ConvertTypeFilterEffect(Filter); if (!string.IsNullOrEmpty(filter) && !string.IsNullOrEmpty(key)) { float count = SeekBarProgress / 100; CustomEffect customEffect = new CustomEffect.Builder(filter) .SetParameter(key, count) .Build(); MNiceArtEditor.SetFilterEffect(customEffect); } else { Toast.MakeText(this, GetText(Resource.String.Lbl_Please_select_effect_filter), ToastLength.Long).Show(); SeekBarRotate.SetProgress(0); } } catch (Exception e) { Console.WriteLine(e); } }
public void OnProgressChanged(IndicatorSeekBar seekBar, int progress, float progressFloat, bool fromUserTouch) { switch (seekBar.Id) { case Resource.Id.sbRotate: SeekBarProgress = progressFloat; break; } }
public void OnProgressChanged(IndicatorSeekBar seekBar, int progress, float progressFloat, bool fromUserTouch) { try { switch (seekBar.Id) { case Resource.Id.sbOpacity: MProperties?.OnOpacityChanged(progress); break; case Resource.Id.sbSize: MProperties?.OnBrushSizeChanged(progress); break; } } catch (Exception e) { Console.WriteLine(e); } }
public void OnStartTrackingTouch(IndicatorSeekBar seekBar, int thumbPosOnTick) { }
public void OnSectionChanged(IndicatorSeekBar seekBar, int thumbPosOnTick, string tickBelowText, bool fromUserTouch) { }
public void OnStopTrackingTouch(IndicatorSeekBar seekBar) { }