Guest User

Untitled

a guest
Sep 14th, 2018
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.81 KB | None | 0 0
  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. }
Add Comment
Please, Sign In to add comment