/AndroidSlideLayout

SlideLayout for Xamarin Android

Primary LanguageC#MIT LicenseMIT

AndroidSlideLayout

NuGet version
SlideLayout for Xamarin.Android

SlideLayout' children view can drag!!

Allow Directions All, Vertical, Horizontal, Top, Bottom, Left, Right.

Required

  • MonoAndroid7.0 (if older version? should update Xamarin.Android)

Install

Install-Package Meilcli.Android.SlideLayout

API Document

API Document

Usage

How use in your Project? see sample AndroidSlideLayout.App!!!

How add to layout.xml?

First, add this code to root layout in xml

xmlns:app="http://schemas.android.com/apk/res-auto"

Second, add SlideLayout and child view in xml

<androidslidelayout.SlideLayout
  android:layout_width="match_parent"
  android:layout_height="match_parent">
  <View
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    app:draggable_all_direction="true" />
</androidslidelayout.SlideLayout>

How customize directions?

Set draggable_*_direction in SlideLayout's child view

app:draggable_all_direction="true"
app:draggable_vertical_direction="true"
app:draggable_horizontal_direction="true"
app:draggable_top_direction="true"
app:draggable_bottom_direction="true"
app:draggable_left_direction="true"
app:draggable_right_direction="true"

Activity Transition and Back Motion

See sample

License

This library is under MIT License.

Thanks

This library use Xamarin.Android.Support Library
Xamarin.Android.Support is under MIT License
Copyright (c) .NET Foundation Contributors

This library use code that ported from FrameLayout to Xamarin
FrameLayout is under Apache License v2
Copyright (C) 2006 The Android Open Source Project