package com.marshalchen.common.uimodule.slider.SliderTypes; import android.content.Context; import android.view.LayoutInflater; import android.view.View; import android.widget.ImageView; import android.widget.TextView; import com.marshalchen.common.uimodule.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.slider_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; } }