Skip to content

Instantly share code, notes, and snippets.

@maiconhellmann
Last active March 20, 2020 14:30
Show Gist options
  • Save maiconhellmann/8ce9fe6f2af3f13e937b79c479a11a95 to your computer and use it in GitHub Desktop.
Save maiconhellmann/8ce9fe6f2af3f13e937b79c479a11a95 to your computer and use it in GitHub Desktop.
Android - makes a view consumes all available space(fixes an issue related to the width of the component when used inside a RecyclerView). This is also a work around, the real problem is when a component is instantiated in code it should provide the layoutParams.
<View
....
app:layout_constraintHorizontal_bias="0"
android:layout_width="0dp"
app:layout_constraintWidth_default="wrap" >
</View>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment