AdapterLibrary

A rxJava2 + ViewPager banner view for android

Лицензия

Лицензия

Группа

Группа

com.github.thepacific
Идентификатор

Идентификатор

banner
Последняя версия

Последняя версия

0.0.1
Дата

Дата

Тип

Тип

aar
Описание

Описание

AdapterLibrary
A rxJava2 + ViewPager banner view for android
Ссылка на сайт

Ссылка на сайт

https://github.com/thepacific/banner-view
Система контроля версий

Система контроля версий

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

Скачать banner

Как подключить последнюю версию

<!-- 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"]

Зависимости

compile (6)

Идентификатор библиотеки Тип Версия
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

Модули Проекта

Данный проект не имеет модулей.

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

Версии библиотеки

Версия
0.0.1