A Cool Viewpager ~ 可以展开缩放的Viewpager
Java
Latest commit bf45020 Dec 12, 2016 @githubwing img
Permalink
Failed to load latest commit information.
.idea
app
expandviewpager
gradle/wrapper
.gitignore first commit Dec 11, 2016
README.MD Update README.MD Dec 12, 2016
app-debug.apk
build.gradle
gradle.properties
gradlew first commit Dec 11, 2016
gradlew.bat
img.gif
settings.gradle

README.MD

这是很酷一个可以展开,缩小的Viewpager。

](https://jitpack.io/#githubwing/ExpandableViewpager)

image

下载体验

使用

在gradle添加依赖


allprojects {
        repositories {
            ...
            maven { url 'https://jitpack.io' }
        }
    }

    dependencies {
            compile 'com.github.githubwing:ExpandableViewpager:1.0.0'
    }


其次将ExpandableViewpager添加到布局。

ExpandViewPager提供了Viewpager常用方法以外。还有几个额外的方法:


 //设置背景布局
 mViewpager.setBackgroundView(int resId);

 //设置最小高度
 mViewpager.setMinHeight(int height);

//设置展开关闭监听器
mViewpager.setOnStateChangedListener(OnStateChangedListener listener);

//展开以及缩小
mViewpager.expand();
mViewpager.collaps();


License

Copyright 2016 androidwing1992

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.