daily pastebin goal
1%
SHARE
TWEET

Untitled

a guest Jan 15th, 2019 75 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. class Holder(
  2.         itemView: View,
  3.         val people: List<Person>,
  4.         val context: Context) : RecyclerView.ViewHolder(itemView),
  5.         View.OnClickListener {
  6.  
  7.         val name: TextView = itemView.findViewById(R.id.list_name)
  8.         val email: TextView = itemView.findViewById(R.id.list_email)
  9.         val phone: TextView = itemView.findViewById(R.id.list_phone)
  10.  
  11.         init {itemView.setOnClickListener(this)}
  12.  
  13.         override fun onClick(v: View?) {
  14.             val person = people[adapterPosition]
  15.             val intent = Intent(context, UpdateFirestoreActivity::class.java)
  16.             intent.putExtra("Person", person)
  17.             context.startActivity(intent)
  18.         }
  19.     }
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