sunshaobei
sunshaobei
this is my code ------------------------------------------------------- ``` class MainActivity : AppCompatActivity() { val adapter = MyAdapter(this) override fun onCreate(savedInstanceState: Bundle?) { super.onCreate(savedInstanceState) setContentView(R.layout.activity_main) findViewById(R.id.vp).adapter = adapter } } ``` ------------------------------------------------------- ```...
``` ``` if i change the ContraintLayout to other viewgroup , that will be fine, or i delete the paddingStart of contraintlayout's child that will be fine too
or i just remove the viewpager2(recyclerview) that will be fine
i have no idear about this problem , and i have read a lot of source code of View、constraintlayout and recyclerview , then i found nothing
So, can you determine if this problem is ConstraintLayout‘s problem??? or recyclerview‘s
In this case , i found recyclerView+ConstraintString with RTL set like paddingStrat will be making this problem ,i fix this problem with a custom ConstraintLayout witch override it's addview(function) and...
I used it in gradle and it didn't work