RecycleView2

layoutManager
と
adapter
の設定を行う。
コピペで、こんな感じで実装した。
recyclerView?.layoutManager = LinearLayoutManager(this)
recyclerView?.adapter = RecyclerAdapter(this, items)
itemsは表示したい内容の配列。 

シェアする

  • このエントリーをはてなブックマークに追加

フォローする