daily pastebin goal
43%
SHARE
TWEET

Untitled

a guest Sep 14th, 2018 54 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. package com.daimajia.slider.library.SliderTypes;
  2.  
  3. import android.content.Context;
  4. import android.view.LayoutInflater;
  5. import android.view.View;
  6. import android.widget.ImageView;
  7. import android.widget.TextView;
  8.  
  9. import com.daimajia.slider.library.R;
  10.  
  11. /**
  12.  * This is a slider with a description TextView.
  13.  */
  14. public class TextSliderView extends BaseSliderView{
  15.     public TextSliderView(Context context) {
  16.         super(context);
  17.     }
  18.  
  19.     @Override
  20.     public View getView() {
  21.         View v = LayoutInflater.from(getContext()).inflate(R.layout.render_type_text,null);
  22.         ImageView target = (ImageView)v.findViewById(R.id.daimajia_slider_image);
  23.         TextView description = (TextView)v.findViewById(R.id.description);
  24.         description.setText(getDescription());
  25.         bindEventAndShow(v, target);
  26.         return v;
  27.     }
  28. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top