Update
It appears that you are updating the LayoutParam
for your View
in your Adapter
.
It is possible to tell this because your UI appears absolutely fine until you begin scrolling. This means that your XML is correct as it is defined in your XML layout file.
The fact that it changes after scrolling begins, means there is a logic error in your onBindViewHolder
implementation. That is why the error appears when you scroll down, and then the error sticks when you scroll back up.
Old answer
Your issue is that your divider has gone rogue:
<View
android:layout_width="1px"
android:layout_height="match_parent"
android:background="?attr/buyPortfolioSeperatorBackground"
android:layout_marginRight="5dp"
android:layout_marginLeft="5dp" />
For testing purposes, set it to:
<View
android:layout_width="1px"
android:layout_height="30dp"
android:background="?attr/buyPortfolioSeperatorBackground"
android:layout_marginRight="5dp"
android:layout_marginLeft="5dp" />
Make sure you change both of them!