AdapterLibrary

A rxJava2 + ViewPager banner view for android

License

License

GroupId

GroupId

com.github.thepacific
ArtifactId

ArtifactId

banner
Last Version

Last Version

0.0.1
Release Date

Release Date

Type

Type

aar
Description

Description

AdapterLibrary
A rxJava2 + ViewPager banner view for android
Project URL

Project URL

https://github.com/thepacific/banner-view
Source Code Management

Source Code Management

https://github.com/thepacific/banner-view

Download banner

How to add to project

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

Dependencies

compile (6)

Group / Artifact Type Version
io.reactivex.rxjava2 : rxjava jar 2.0.7
io.reactivex.rxjava2 : rxandroid jar 2.0.1
com.romandanylyk » pageindicatorview jar 0.1.2
com.github.thepacific : adapter jar 2.0.2
com.android.support » appcompat-v7 jar 25.3.1
com.android.support.constraint » constraint-layout jar 1.0.2

Project Modules

There are no modules declared in this project.

BannerView

A rxJava2 + ViewPager banner view for android. Automatically plays images and stops when on touching

Download

Setup

compile 'com.github.thepacific:banner:0.0.1'

XML

<com.pacific.banner.BannerView
        android:id="@+id/banner"
        android:layout_width="match_parent"
        android:layout_height="170dp"
        app:news_icon=""
        app:news_text=""
        app:news_mask_color=""
        app:show_news_icon="true|false" >
</com.pacific.banner.BannerView>

<declare-styleable name="BannerView">
        <attr name="show_news_icon" format="boolean" />
        <attr name="news_mask_color" format="reference" />
        <attr name="news_icon" format="reference" />
        <attr name="news_text" format="string" />
</declare-styleable>

Java

        bannerView.setImageLoader(ImageLoader loader);

        bannerView.setOnPhotoClickListener(View.OnClickListener listener);

        bannerView.addAll(List< Photo > list);

        bannerView.remove(Photo photo);

        bannerView.add(Photo photo);

        bannerView.replace(int index, Photo photo);

        bannerView.replaceAll(List<Photo> list);

        bannerView.setNewsText(@StringRes int resId);

        bannerView.setNewsText(String str);

        bannerView.setIconImageResource(@DrawableRes int resId);

        bannerView.setIconImageResource(@NonNull Drawable drawable);

        bannerView.setMaskColor(int color);

        bannerView.setMaskBackgroundResource(@DrawableRes int resId);

        bannerView.setMaskBackground(Drawable drawable);

License

The MIT License

com.github.thepacific

thepacific

Thepacific Corp

Versions

Version
0.0.1