K
Может контекст фрагмента/активити умереть в onCreateView/ onResume. например на тормознутом устройстве, или как-то еще?)
Size: a a a
K
QH
YI
ГА
QH
onBindViewHolder
меняю layoutParams
itemView.layoutParams = LinearLayout.LayoutParams(
LinearLayout.LayoutParams.WRAP_CONTENT,
LinearLayout.LayoutParams.WRAP_CONTENT
).also {
it.height = ...
}
ClassCastException: android.widget.LinearLayout$LayoutParams cannot be cast to androidx.recyclerview.widget.RecyclerView$LayoutParams
RecyclerView.LayoutParams
NT
onBindViewHolder
меняю layoutParams
itemView.layoutParams = LinearLayout.LayoutParams(
LinearLayout.LayoutParams.WRAP_CONTENT,
LinearLayout.LayoutParams.WRAP_CONTENT
).also {
it.height = ...
}
ClassCastException: android.widget.LinearLayout$LayoutParams cannot be cast to androidx.recyclerview.widget.RecyclerView$LayoutParams
КР
RecyclerView.LayoutParams
A
android:layout_above="@id/adView"
QH
K
КР
A
KT
QH
QH
NT
KT
T
CompileOptions.compilerArgs
. Use the CompileOptions.annotationProcessorPath
property instead.П
A