twoway

two-way ViewPager

License

License

Categories

Categories

JADE General Purpose Libraries Utility
GroupId

GroupId

com.github.jadeice
ArtifactId

ArtifactId

twoway
Last Version

Last Version

0.1.1
Release Date

Release Date

Type

Type

aar
Description

Description

twoway
two-way ViewPager
Project URL

Project URL

https://github.com/Jadeice/Twoway
Source Code Management

Source Code Management

https://github.com/Jadeice/Twoway

Download twoway

How to add to project

<!-- https://jarcasting.com/artifacts/com.github.jadeice/twoway/ -->
<dependency>
    <groupId>com.github.jadeice</groupId>
    <artifactId>twoway</artifactId>
    <version>0.1.1</version>
    <type>aar</type>
</dependency>
// https://jarcasting.com/artifacts/com.github.jadeice/twoway/
implementation 'com.github.jadeice:twoway:0.1.1'
// https://jarcasting.com/artifacts/com.github.jadeice/twoway/
implementation ("com.github.jadeice:twoway:0.1.1")
'com.github.jadeice:twoway:aar:0.1.1'
<dependency org="com.github.jadeice" name="twoway" rev="0.1.1">
  <artifact name="twoway" type="aar" />
</dependency>
@Grapes(
@Grab(group='com.github.jadeice', module='twoway', version='0.1.1')
)
libraryDependencies += "com.github.jadeice" % "twoway" % "0.1.1"
[com.github.jadeice/twoway "0.1.1"]

Dependencies

compile (1)

Group / Artifact Type Version
com.android.support » appcompat-v7 jar 24.2.1

Project Modules

There are no modules declared in this project.

双向滚动的ViewPager

TwowayViewPager can be used on Mobile and TV

简单使用

<android.support.v4.view.TwowayViewPager
....
/>

VPager = (TwowayViewPager) findViewById(R.id.vertical_pager);
HPager = (TwowayViewPager) findViewById(R.id.horizontal_pager);
// 设置ViewPager方向
VPager.setOrientation(TwowayViewPager.VERTICAL);    // 竖向
HPager.setOrientation(TwowayViewPager.HORIZONTAL);  // 横向

Adapter

public class SampleAdapter extends TwowayFragmentStatePagerAdapter{.....}

Versions

Version
0.1.1