提交 4a7c1731 编写于 作者: D Dustin Lam

Update comment on CheeseViewHolder to also include Separators

上级 211259c4
......@@ -23,8 +23,8 @@ import android.widget.TextView
import androidx.recyclerview.widget.RecyclerView
/**
* A simple ViewHolder that can bind a Cheese item. It also accepts null items since the data may
* not have been fetched before it is bound.
* A simple ViewHolder that can bind a Cheese or Separator item. It also accepts null items since
* the data may not have been fetched before it is bound.
*/
class CheeseViewHolder(parent: ViewGroup) : RecyclerView.ViewHolder(
LayoutInflater.from(parent.context).inflate(R.layout.cheese_item, parent, false)
......@@ -48,4 +48,5 @@ class CheeseViewHolder(parent: ViewGroup) : RecyclerView.ViewHolder(
cheese = (item as? CheeseListItem.Item)?.cheese
nameView.text = item?.name
}
}
\ No newline at end of file
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册