Android-StickyNavLayout

An android library for navigator that stick on the top

  • Owner: hongyangAndroid/Android-StickyNavLayout
  • Platform:
  • License:: Apache License 2.0
  • Category::
  • Topic:
  • Like:
    0
      Compare:

Github stars Tracking Chart

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>

#关于我

我的博客地址

Main metrics

Overview
Name With OwnerhongyangAndroid/Android-StickyNavLayout
Primary LanguageJava
Program languageJava (Language Count: 1)
Platform
License:Apache License 2.0
所有者活动
Created At2015-02-08 17:13:56
Pushed At2018-08-27 16:23:11
Last Commit At2017-07-01 20:35:11
Release Count0
用户参与
Stargazers Count1.4k
Watchers Count65
Fork Count441
Commits Count16
Has Issues Enabled
Issues Count37
Issue Open Count30
Pull Requests Count3
Pull Requests Open Count3
Pull Requests Close Count0
项目设置
Has Wiki Enabled
Is Archived
Is Fork
Is Locked
Is Mirror
Is Private