@@ -33,7 +33,7 @@ class MainActivity : AppCompatActivity() {
3333 /* *
3434 * turn "isSingleLayout" into "false" when you want to try multi layout stuff
3535 * */
36- private var isSingleLayout = true
36+ private var isSingleLayout = false
3737
3838 override fun onCreate (savedInstanceState : Bundle ? ) {
3939 super .onCreate(savedInstanceState)
@@ -107,9 +107,10 @@ class MainActivity : AppCompatActivity() {
107107
108108 private fun exampleEzRecycleSingleLayout () {
109109
110- // if you want use findViewById() you'll shouldn't cast the EzRecycleView
110+ // if you want use findViewById() you shouldn't cast the EzRecycleView
111111 // if you want use view binding you should to cast the object like the example below
112- rvSample = binding.rvSample as EzRecyclerView <SampleData >
112+ // If you won't casting the object, you can use #EzRecyclerView.bind()
113+ rvSample = EzRecyclerView .bind(binding.rvSample)
113114
114115 // set class data
115116 rvSample.setData(SampleData ::class .java)
@@ -145,9 +146,10 @@ class MainActivity : AppCompatActivity() {
145146
146147 private fun exampleEzRecycleMultipleLayout () {
147148
148- // if you want use findViewById() you'll shouldn't cast the EzRecycleView
149+ // if you want use findViewById() you shouldn't cast the EzRecycleView
149150 // if you want use view binding you should to cast the object like the example below
150- rvSample = binding.rvSample as EzRecyclerView <SampleData >
151+ // If you won't casting the object, you can use #EzRecyclerView.bind()
152+ rvSample = EzRecyclerView .bind(binding.rvSample)
151153
152154 // set class data
153155 rvSample.setData(SampleData ::class .java)
0 commit comments