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;
            };
        }
Пример #2
0
 public ScrollGestureDetector(FoldingLayout layout, int touchSlop)
 {
     _layout = layout;
     _touchSlop = touchSlop;
 }
Пример #3
0
 public FoldingLayout(Context context, IAttributeSet attrs, int defStyle)
     : base(context, attrs, defStyle)
 {
     _that = this;
     Init(context, attrs);
 }
Пример #4
0
 public ScrollGestureDetector(FoldingLayout layout, int touchSlop)
 {
     _layout    = layout;
     _touchSlop = touchSlop;
 }
Пример #5
0
 public FoldingLayout(Context context, IAttributeSet attrs, int defStyle)
     : base(context, attrs, defStyle)
 {
     _that = this;
     Init(context, attrs);
 }