why not work in constraint layout
See original GitHub issuei dot know why my layout not show circle image view ?
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".TypeAccountActivity">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintEnd_toEndOf="parent"
tools:ignore="MissingConstraints"
android:id="@+id/txt_typeforgot"
android:text="@string/type_of_animal"
android:textSize="24sp"
android:textAppearance="@style/TextAppearance.AppCompat.Medium"
android:textColor="@color/grey_900"
android:layout_marginTop="152dp"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintHorizontal_bias="0.497"/>
<de.hdodenhof.circleimageview.CircleImageView
xmlns:app="http://schemas.android.com/apk/res-auto"
android:id="@+id/profile_image"
android:layout_width="96dp"
android:layout_height="96dp"
android:src="@drawable/snake"
app:civ_border_width="2dp"
android:background="@color/colorPrimary"
app:civ_border_color="@color/grey_900"
app:civ_circle_background_color="@color/colorPrimary"
tools:ignore="MissingConstraints"/>
<Button
android:id="@+id/btn_viaemail"
style="@style/Base.Widget.AppCompat.Button.Borderless.Colored"
android:layout_width="match_parent"
android:layout_height="49dp"
android:textColor="@color/white"
android:background="@drawable/button_shape"
android:textAppearance="@style/TextAppearance.AppCompat.Medium.Inverse"
android:textStyle="bold" tools:ignore="MissingConstraints"
app:layout_constraintStart_toStartOf="parent"
android:layout_marginStart="32dp"
app:layout_constraintEnd_toEndOf="parent"
android:layout_marginEnd="32dp"
app:layout_constraintHorizontal_bias="0.0"
android:text="@string/submit"
android:layout_marginTop="24dp"
app:layout_constraintTop_toBottomOf="@+id/email"
app:layout_constraintBottom_toBottomOf="parent"
android:layout_marginBottom="8dp"
app:layout_constraintVertical_bias="0.0"/>
</androidx.constraintlayout.widget.ConstraintLayout>
Issue Analytics
- State:
- Created 5 years ago
- Comments:6 (1 by maintainers)
Top Results From Across the Web
Constraint Layout not working properly despite adding ...
I am using Constraint Layout in a list item and having difficulties in getting it to work properly when the code is compiled, ......
Read more >ConstraintLayout: NEVER EVER! - Rami Jemli
This article is about the common mistakes that beginners do when dealing with ConstraintLayout. Widgets not rendering; MATCH_PARENT not working ...
Read more >Android layout editor doesn't work with Constraint layout
I have a constraint layout package and all, the project builds and works as expected, but doing constraint layouts without a designer is...
Read more >ConstraintLayout | Android Developers
A ConstraintLayout is a android.view.ViewGroup which allows you to position and size widgets in a flexible way. Note: ConstraintLayout is available as a ......
Read more >ConstraintLayout. Constraint Layout has already been one…
Imagine you have a layout that you must change lots of views visibility in it accordingly. One way is to put them in...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Did you build your project after adding the library (Menu “Build” -> “Make Project”)?
Ok. thats work. thanks. please write in read.me doc to do that for project android x
anyway thanks for awesome third-party library @hdodenhof goodluck