I wrote this library just because I want a lightweight slider.
Use your own imageloader;
Create your own indicator;
Variety of transition effects;
Customize the animation of each page.
~(~ ̄▽ ̄)~
dependencies {
compile 'net.cpacm.simpleslider:library:1.0.1'
}
<net.cpacm.library.SimpleSliderLayout
android:id="@+id/simple_slider"
android:layout_width="match_parent"
android:layout_height="140dp"
android:background="#ffffff">
</net.cpacm.library.SimpleSliderLayout>
simpleSliderLayout.setCycling(true);
simpleSliderLayout.setAutoCycling(true);
simpleSliderLayout.setSliderDuration(3000);
simpleSliderLayout.setSliderTransformDuration(1000);
simpleSliderLayout.setPageTransformer(new FlipPageViewTransformer());
simpleSliderLayout.setAnimationListener(null);
circlePageIndicator = (CirclePageIndicator) findViewById(R.id.indicator);
simpleSliderLayout.setViewPagerIndicator(circlePageIndicator);
simpleSliderLayout.setAnimationListener(new DefaultDescriptionAnimation());
ImageSliderView
include ImageViewDescriptionSliderView
include ImageView and TextView
You can customize the Slider extends BaseSliderView
CirclePageIndicator
IconPageIndicator
LinePageIndicator
UnderlinePageIndicator
The above indicators modified from ViewPagerIndicator
SpringIndicator
Modify from SpringIndicator
You can customize the indicator implements PageIndicator
The above transforms come from AndroidImageSlider
You can customize the transform extends BaseTransformer
You can customize the animation implements OnAnimationListener
In the infinite loop mode, at least three sliders. Android API >= 3.0
Copyright 2016 cpacm
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.