SHARE
TWEET

Untitled

a guest Dec 13th, 2018 48 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. image.setOnClickListener{
  2.       val intent_full = Intent(context, FullscreenActivity::class.java)
  3.       intent_full.putExtra("galeria", imagesUri!![position])
  4.       intent_full.putExtra("positionGallery", position)
  5.       auxPositionGallery = position
  6.       Log.d("positionGallery", position.toString())
  7.       context.startActivity(intent_full)
  8. }
  9.    
  10. class CartaoTipologiaAdapter(private val context: Context, private val
  11.   cartoesTipologiaModelArrayList: ArrayList<WoundsClass>)
  12.   : RecyclerView.Adapter<CartaoTipologiaAdapter.ViewHolder>() {
  13.  
  14.   override fun onBindViewHolder(holder: ViewHolder, position: Int) {
  15.         val adapter = ViewPageAdapter(context)
  16.  
  17.         /**ViewPager*/
  18.         val vp : ViewPager = holder.viewPager
  19.         holder.viewPager.adapter = adapter
  20.         holder.viewPager.currentItem = imagesUri!!.size
  21.  
  22.         /**PageIndicatorView*/
  23.         holder.pageIndicatorView.setViewPager(vp)
  24.         holder.pageIndicatorView.count = imagesUri!!.size
  25.         holder.pageIndicatorView.selection = imagesUri!!.size
  26.    }
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
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top