Search in sources :

Example 1 with TextSliderView

use of com.hkm.slider.SliderTypes.TextSliderView in project UltimateRecyclerView by cymcsg.

the class SliderHeader method setup_double_faces.

protected void setup_double_faces(final SliderLayout mslide) throws Exception {
    ArrayList<BaseSliderView> ie = new ArrayList<>();
    // mslide.setCustomAnimation(new DescriptionAnimation(250, new DecelerateInterpolator()));
    for (int i = 0; i < urls.length; i++) {
        TextSliderView textSliderView = new TextSliderView(this);
        // initialize a SliderLayout
        textSliderView.image(urls[i]).setScaleType(BaseSliderView.ScaleType.Fit).setOnSliderClickListener(this);
        //add your extra information
        ie.add(textSliderView);
    }
    mslide.loadSliderList(ie);
}
Also used : ArrayList(java.util.ArrayList) BaseSliderView(com.hkm.slider.SliderTypes.BaseSliderView) TextSliderView(com.hkm.slider.SliderTypes.TextSliderView)

Aggregations

BaseSliderView (com.hkm.slider.SliderTypes.BaseSliderView)1 TextSliderView (com.hkm.slider.SliderTypes.TextSliderView)1 ArrayList (java.util.ArrayList)1