Updated (ConstraintLayout 1.1.+)
Use app:layout_constrainedWidth="true"
with android:layout_width="wrap_content"
Previously (deprecated):
app:layout_constraintWidth_default="wrap"
with android:layout_width="0dp"
More Related Contents:
- ConstraintLayout views in top left corner
- ConstraintLayout: change constraints programmatically
- Differences between ConstraintLayout and RelativeLayout
- Evenly spacing views using ConstraintLayout
- Is it possible to put a ConstraintLayout inside a ScrollView?
- Scrollview inside constraint layout does not scroll to the bottom of the parent constraint
- constraint layout – Two views with largest width
- Android Layout editor ConstraintLayout
- Android – how to make a scrollable constraintlayout?
- How to add different weight to ConstraintLayout views
- My list view is lagging can anyone help me to fix this?
- Give Scroll view to only edittext in android
- Focusable EditText inside ListView
- How to layout text to flow around an image
- Nested Recycler view height doesn’t wrap its content
- Outlined Edit Text from Material Design
- RecyclerView expand/collapse items
- Adding button action in custom notification
- Android Image View Pinch Zooming [duplicate]
- Android remove space between tabs in tabwidget
- Android Studio – TextView not showing in design view layout
- How can I disable all views inside the layout?
- java.lang.IllegalStateException: The specified child already has a parent
- Is there a way to implement rounded corners to a Mapfragment?
- Memory leaks with custom font for set custom font
- How to achieve overlap/negative margin on Constraint Layout?
- Show entire bottom sheet with EditText above Keyboard
- How to get RelativeLayout working with merge and include?
- ImageView fit without stretching the image
- How to limit EditText length to 7 integers and 2 decimal places?