question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

why not work in constraint layout

See original GitHub issue

i dot know why my layout not show circle image view ? screenshot from 2019-02-26 14-43-53

<?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:closed
  • Created 5 years ago
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

7reactions
hdodenhofcommented, Feb 26, 2019

Did you build your project after adding the library (Menu “Build” -> “Make Project”)?

2reactions
yudikarmacommented, Feb 28, 2019

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

Read more comments on GitHub >

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

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found