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/...

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...

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...

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...

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...

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: &lt...
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...

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" ...

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...

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...

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...

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...

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...

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,...

© 2022 - 2024 — McMap. All rights reserved.