Код: Выделить всё
binding?.recyclerview?.apply {
if(resources.configuration.fontScale >= 1.3f) {
val layoutParams = this.layoutParams as ConstraintLayout.LayoutParams
this.updateLayoutParams {
layoutParams.apply {
startToStart = LayoutParams.PARENT_ID
endToEnd = LayoutParams.PARENT_ID
width = ConstraintLayout.LayoutParams.MATCH_CONSTRAINT //
Подробнее здесь: [url]https://stackoverflow.com/questions/78170009/android-updatelayoutparams-match-constraint-not-matching-new-given-constraints[/url]