An android library for navigator that stick on the top
Switch branches/tags
Nothing to show
Clone or download
Latest commit 1d222ab Jul 1, 2017
Permalink
Failed to load latest commit information.
app 完善惯性下滑的处理 Jun 30, 2017
gradle/wrapper add as project Aug 14, 2016
.gitignore Initial commit Feb 8, 2015
LICENSE Initial commit Feb 8, 2015
README.md update screenshot Jul 26, 2015
StickyNavLayout.iml add as project Aug 14, 2016
build.gradle add as project Aug 14, 2016
gradle.properties add as project Aug 14, 2016
gradlew add as project Aug 14, 2016
gradlew.bat add as project Aug 14, 2016
sc.gif update screenshot Jul 26, 2015
settings.gradle add as project Aug 14, 2016

README.md

Android-StickyNavLayout

An android library for navigator that stick on the top

效果图

用法

直接作为跟布局,内部一次放置,顶部内容区域,导航,ViewPager。 注意id,需要使用预定的id资源。

<com.zhy.view.StickyNavLayout xmlns:tools="http://schemas.android.com/tools"
    xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:orientation="vertical" >

    <RelativeLayout
        android:id="@id/id_stickynavlayout_topview"
        android:layout_width="match_parent"
        android:layout_height="300dp"
        android:background="#4400ff00" >

        <TextView
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            android:gravity="center"
            android:text="软件介绍"
            android:textSize="30sp"
            android:textStyle="bold" />
    </RelativeLayout>

    <com.zhy.view.SimpleViewPagerIndicator
        android:id="@id/id_stickynavlayout_indicator"
        android:layout_width="match_parent"
        android:layout_height="50dp"
        android:background="#ffffffff" >
    </com.zhy.view.SimpleViewPagerIndicator>

    <android.support.v4.view.ViewPager
        android:id="@id/id_stickynavlayout_viewpager"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:background="#44ff0000" >
    </android.support.v4.view.ViewPager>

</com.zhy.view.StickyNavLayout>

#关于我

我的博客地址