项目作者: MeilCli

项目描述 :
SlideLayout for Xamarin Android
高级语言: C#
项目地址: git://github.com/MeilCli/AndroidSlideLayout.git
创建时间: 2017-02-03T15:17:21Z
项目社区:https://github.com/MeilCli/AndroidSlideLayout

开源协议:MIT License

下载


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

  1. 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

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

Second, add SlideLayout and child view in xml

  1. <androidslidelayout.SlideLayout
  2. android:layout_width="match_parent"
  3. android:layout_height="match_parent">
  4. <View
  5. android:layout_width="match_parent"
  6. android:layout_height="match_parent"
  7. app:draggable_all_direction="true" ></View>
  8. </androidslidelayout.SlideLayout>

How customize directions?

Set draggable_*_direction in SlideLayout’s child view

  1. app:draggable_all_direction="true"
  2. app:draggable_vertical_direction="true"
  3. app:draggable_horizontal_direction="true"
  4. app:draggable_top_direction="true"
  5. app:draggable_bottom_direction="true"
  6. app:draggable_left_direction="true"
  7. 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