Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/meilcli/androidslidelayout
SlideLayout for Xamarin Android
https://github.com/meilcli/androidslidelayout
android slide-layout xamarin xamarin-android xamarin-library
Last synced: 29 days ago
JSON representation
SlideLayout for Xamarin Android
- Host: GitHub
- URL: https://github.com/meilcli/androidslidelayout
- Owner: MeilCli
- License: mit
- Created: 2017-02-03T15:17:21.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2017-03-18T08:21:13.000Z (almost 8 years ago)
- Last Synced: 2024-10-04T11:21:38.305Z (3 months ago)
- Topics: android, slide-layout, xamarin, xamarin-android, xamarin-library
- Language: C#
- Size: 2.99 MB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# AndroidSlideLayout
[![NuGet version](https://badge.fury.io/nu/Meilcli.Android.SlideLayout.svg)](https://www.nuget.org/packages/Meilcli.Android.SlideLayout/)
SlideLayout for Xamarin.AndroidSlideLayout' children view can drag!!
Allow Directions All, Vertical, Horizontal, Top, Bottom, Left, Right.
![](/all_vertical_horizontal.gif)
![](/top_bottom_left_right.gif)## Required
- MonoAndroid7.0 (if older version? should update Xamarin.Android)## Install
~~~
Install-Package Meilcli.Android.SlideLayout
~~~## API Document
[API Document](https://meilcli.github.io/AndroidSlideLayout/)## Usage
How use in your Project? see [sample AndroidSlideLayout.App](/AndroidSlideLayout.App)!!!### How add to layout.xml?
First, add this code to root layout in xml
```xml
xmlns:app="http://schemas.android.com/apk/res-auto"
```Second, add SlideLayout and child view in xml
```xml
```
### 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
![](/transition.gif)See sample
- [TransitionActivity](/AndroidSlideLayout.App/TransitionActivity.cs)
- [Transition.axml](/AndroidSlideLayout.App/Resources/layout/Transition.axml)
- [Styles.xml (for lolipop)](/AndroidSlideLayout.App/Resources/values-v21/Styles.xml)## License
This library is under MIT License.### Thanks
This library use [Xamarin.Android.Support Library](https://github.com/xamarin/AndroidSupportComponents/)
Xamarin.Android.Support is under [MIT License](https://github.com/xamarin/AndroidSupportComponents/blob/master/LICENSE.md)
Copyright (c) .NET Foundation ContributorsThis library use code that ported from FrameLayout to Xamarin
FrameLayout is under Apache License v2
Copyright (C) 2006 The Android Open Source Project