protected override void OnCreate(Bundle savedInstanceState) { base.OnCreate(savedInstanceState); SetContentView(Resource.Layout.activity_fold); _imageView = FindViewById<ImageView>(Resource.Id.image_view); _imageView.SetImageResource(Resource.Drawable.image); _anchorSeekBar = FindViewById<SeekBar>(Resource.Id.anchor_seek_bar); _foldingLayout = FindViewById<FoldingLayout>(Resource.Id.fold_view); _foldingLayout.FoldEnded += (s, e) => Log.Info(Tag, "Fold Ended"); _foldingLayout.FoldStarted += (s, e) => Log.Info(Tag, "Fold Started"); _anchorSeekBar.StopTrackingTouch += (s, e) => { _anchorFactor = _anchorSeekBar.Progress / 100.0f; _foldingLayout.AnchorFactor = _anchorFactor; }; }
public ScrollGestureDetector(FoldingLayout layout, int touchSlop) { _layout = layout; _touchSlop = touchSlop; }
public FoldingLayout(Context context, IAttributeSet attrs, int defStyle) : base(context, attrs, defStyle) { _that = this; Init(context, attrs); }
public ScrollGestureDetector(FoldingLayout layout, int touchSlop) { _layout = layout; _touchSlop = touchSlop; }
public FoldingLayout(Context context, IAttributeSet attrs, int defStyle) : base(context, attrs, defStyle) { _that = this; Init(context, attrs); }