PageLayout for Xamarin.Android
This layout is ViewPager-like layout but non used Adapter
- MonoAndroid7.0 (if older version? should update Xamarin.Android)
Install-Package Meilcli.Android.PageLayout
- 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.
How use in your Project? see sample AndroidPageLayout.App!!!
First, add this code to root layout in xml
xmlns:app="http://schemas.android.com/apk/res-auto"
Second, add PageLayout and child view in xml
<androidpagelayout.PageLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
app:page_orientation="vertical">
<TextView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:text="Page1"
android:gravity="center"
app:page_view="true" />
</androidpagelayout.PageLayout>
Set page_orientation in PageLayout
app:page_orientation="vertical"
app:page_orientation="horizontal"
Set page_view to true in PageLayout's child view
app:page_view="true"
Set page_multi_size in PageLayout
app:page_multi_size="2"
See sample
This library is under MIT License.
And, this library use SlideLayout