Need a unique gift idea?
A Pastebin account makes a great Christmas gift
SHARE
TWEET

Untitled

a guest Sep 23rd, 2018 60 Never
Upgrade to PRO!
ENDING IN00days00hours00mins00secs
 
  1. override fun onCreateViewHolder(parent: ViewGroup, viewType: Int): ViewHolder {
  2.   if (type == 1) {
  3.     return ViewHolder(LayoutInflater.from(parent.context).inflate(R.layout.item_layout_1, parent, false))
  4.   } else if (type == 2) {
  5.     return ViewHolder(LayoutInflater.from(parent.context).inflate(R.layout.item_layout_2, parent, false))
  6.   } else {
  7.     return ViewHolder(LayoutInflater.from(parent.context).inflate(R.layout.item_layout_3, parent, false))
  8.   }
  9. }
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