Created
September 14, 2018 23:15
-
-
Save ebnrdwan/828bade12cb1a7e4efaf41e55761e7d6 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.daimajia.slider.library.SliderTypes; | |
import android.content.Context; | |
import android.view.LayoutInflater; | |
import android.view.View; | |
import android.widget.ImageView; | |
import android.widget.TextView; | |
import com.daimajia.slider.library.R; | |
/** | |
* This is a slider with a description TextView. | |
*/ | |
public class TextSliderView extends BaseSliderView{ | |
public TextSliderView(Context context) { | |
super(context); | |
} | |
@Override | |
public View getView() { | |
View v = LayoutInflater.from(getContext()).inflate(R.layout.render_type_text,null); | |
ImageView target = (ImageView)v.findViewById(R.id.daimajia_slider_image); | |
TextView description = (TextView)v.findViewById(R.id.description); | |
description.setText(getDescription()); | |
bindEventAndShow(v, target); | |
return v; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment