Last active
March 20, 2020 14:30
-
-
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.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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