Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/meilcli/androidpagelayout
PageLayout for Xamarin Android
https://github.com/meilcli/androidpagelayout
android page-layout view-pager xamarin xamarin-android xamarin-library
Last synced: about 1 month ago
JSON representation
PageLayout for Xamarin Android
- Host: GitHub
- URL: https://github.com/meilcli/androidpagelayout
- Owner: MeilCli
- License: mit
- Created: 2017-02-07T16:30:34.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2017-03-18T09:08:12.000Z (almost 8 years ago)
- Last Synced: 2024-12-06T17:48:06.519Z (about 1 month ago)
- Topics: android, page-layout, view-pager, xamarin, xamarin-android, xamarin-library
- Language: C#
- Size: 2.68 MB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# AndroidPageLayout
[![NuGet version](https://badge.fury.io/nu/Meilcli.Android.PageLayout.svg)](https://www.nuget.org/packages/Meilcli.Android.PageLayout/)
PageLayout for Xamarin.AndroidThis layout is ViewPager-like layout but non used Adapter
![](vertical.gif)
![](horizontal.gif)## Required
- MonoAndroid7.0 (if older version? should update Xamarin.Android)## Install
~~~
Install-Package Meilcli.Android.PageLayout
~~~## How diferrent from ViewPager?
- Non Adapter! Page's view is adding while containing in PageLayout
- Support multiple page.
- Support NestedScrollView in Page (PageLayout implements NestedScrollingParent)
- Support vertical and horizontal orientation.## API Document
[API Document](https://meilcli.github.io/AndroidPageLayout/)## Usage
How use in your Project? see [sample AndroidPageLayout.App](/AndroidPageLayout.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 PageLayout and child view in xml
```xml
```
### How customize orientation?
Set page_orientation in PageLayout
```
app:page_orientation="vertical"
app:page_orientation="horizontal"
```### How add Page in PageLayout?
Set page_view to true in PageLayout's child view
```
app:page_view="true"
```### How show multiple page?
Set page_multi_size in PageLayout
```
app:page_multi_size="2"
```### Activity Transition and Twitter-like image viewer
![](twitter_like_image_viewer.gif)See sample
- [TwitterLikeImageViewerActivity](/AndroidPageLayout.App/TwitterLikeImageViewerActivity.cs)
- [TwitterLikeImageViewer.axml](/AndroidPageLayout.App/Resources/layout/TwitterLikeImageViewer.axml)
- [Styles.xml (for lolipop)](/AndroidPageLayout.App/Resources/values-v21/Styles.xml)## License
This library is under MIT License.And, this library use [SlideLayout](https://github.com/MeilCli/AndroidSlideLayout)