android-constraintlayout Questions
4
Solved
I want to create a square grid inside ConstraintLayout. My first thought was to create a horizontal chain, give some margin value and set to all single view size attributes width = match_constraint...
Dewees asked 19/7, 2018 at 19:4
4
Solved
I'm using android ConstraintLayout Flow , and I have to arrange items from right to left , something like this :
XML code :
<androidx.constraintlayout.helper.widget.Flow
android:id="@+id/...
Gilman asked 22/11, 2020 at 20:0
4
Solved
I have 2 views and I need a barrier below but the barrier does not work as expected.
Here is my layout.
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayou...
Wethington asked 22/2, 2022 at 6:42
3
I have a RecyclerView inside of a ConstraintLayout whose top starts at the bottom of a textView, and whose bottom stretches down to the parent. I want the items in this RecyclerView to default to t...
Deel asked 28/11, 2017 at 19:15
2
Solved
I have a ConstraintLayout.Group defined like this:
<android.support.constraint.Group
android:id="@+id/someGroup"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
ap...
Culdesac asked 27/11, 2018 at 21:27
9
Solved
How to vertically align and center objects in constraint layout? It is possible to align vertically or horizontally but I have not found a way to center at the same time beside constraining the vie...
Magician asked 20/7, 2017 at 16:8
4
I'm trying to use the Jetpack Compose ConstraintLayout, and if all the views are visible, it is working great.
But if one of these views is missing, the sandcastle falls down.
For example, if a vie...
Conk asked 31/1, 2022 at 9:30
4
Solved
I'm having a problem to programmatically add views to a ConstraintLayout, and set up all the constraints required for the layout to work.
What I have at the moment doesn't work:
ConstraintLayout...
Martingale asked 27/10, 2016 at 2:29
2
Solved
What is the translation to java code of the following XML instructions used in a layout definition with a constraint layout?
app:layout_constraintBottom_toBottomOf="@+id/Button1"
app:layout_constr...
Malebranche asked 25/9, 2017 at 8:39
2
Solved
How can we make ImageView width and height equal to width of parent ConstraintLayout? So it displays a full width square ImageView.
Generally how can one set HEIGHT of some widget equal to WIDTH o...
Lynnelynnea asked 29/9, 2018 at 14:19
3
Solved
I'm trying to create a bulleted list in Android where the bullet is aligned to the vertical center of the first line in a TextView like so:
The XML for a single bullet/text row is this:
<an...
Vilhelmina asked 14/10, 2017 at 17:6
5
Solved
I am working on ConstraintLayout, I can adjust the child views, but I can't align the Textview from left to right. Is there any way to align the Textview from left to right?
Here is the code:
<...
Attainder asked 8/6, 2018 at 6:7
7
Solved
Is there any way to place an images half is on top of another image using only constraint layout. I know it can be done using relative and frame layouts but in the case of constraint layout is ther...
Creedon asked 16/3, 2018 at 11:22
5
Solved
I have circular imageview that I need to align above cardview but it should be like half circle of the image will be outside the cardview and remaining half circle of the image to be inside cardvie...
Nazler asked 5/10, 2016 at 8:59
7
Solved
After updating to com.android.support.constraint:constraint-layout:1.1.0
The constraint layout crashes saying:
All children of constraint layout should have ids to use constraint
set
I have set i...
Incompletion asked 25/5, 2018 at 10:16
7
Solved
I am using a MotionLayout with a scene-xml:
<Transition
motion:constraintSetStart="@+id/start"
motion:constraintSetEnd="@+id/end"
>
<OnSwipe
motion:touchAnchorId="@+id/v_top_sheet"
...
Glazier asked 21/4, 2020 at 13:49
2
I want to achieve the layout below using a ConstraintLayout with no nesting.
The layout requires a barrier since it's not guaranteed which textview will be taller. It also requires a chain since...
Etty asked 16/4, 2019 at 0:46
3
I want to chain title and description text centered with respect to image with chainStyle.Packed how to achieve this in jetpack compose.
when i use createVerticalChain() its create chain with respe...
androidandroid-jetpack-composeandroid-constraintlayoutandroid-jetpack-compose-layoutandroid-compose-layout
Millimeter asked 1/12, 2021 at 9:33
9
Solved
I am using ConstraintLayout in my application to make applications layout. I am trying to a create a screen wheren one EditText and Button should be in center and Button should be below of EditText...
Solander asked 31/3, 2017 at 14:42
2
Solved
I have this simple layout with 3 buttons that I need to implement (which I already did using ConstraintLayout):
But when I have a small screen size or/and the user set the font to max, the texts i...
Extricate asked 27/4, 2023 at 15:32
8
Solved
Imagine you have a LinearLayout inside a RelativeLayout that contains 3 TextViews with artist, song and album:
<RelativeLayout
...
<LinearLayout
android:id="@id/text_view_container"
andr...
Lina asked 26/4, 2018 at 11:19
0
So I had similar issue implementing the following Fill height for child in Row
There is answer https://mcmap.net/q/369869/-fill-height-for-child-in-row :
But it stops working as soon as you use Con...
Winter asked 11/4, 2023 at 22:4
7
Solved
Has anyone experienced issues with ConstraintLayout group visibility?
I'm using ConstraintLayout 1.1.3 and I'm setting the visibility of group in both XML layout and java code. But it does not chan...
Wabble asked 1/3, 2019 at 12:3
4
I am creating app in which there is screen with searchBar by this lib.
My activity layout looks like this:
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout
xmlns:android="http://sc...
Party asked 8/5, 2017 at 15:3
3
Solved
How to set constrained width/height in Compose?
Text("Test", Modifier.constrainAs(text) {
linkTo(
start = parent.start,
top = button.bottom,
end = parent.end,
bottom = parent.bottom,...
Halle asked 14/12, 2021 at 13:34
1 Next >
© 2022 - 2024 — McMap. All rights reserved.