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.

Not working as expected

See original GitHub issue

It does not change my image from normal into round form. I am unable to get what cause this issue. I m using it with linear layout and also tried with other layout as well. Please help `<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent">

<de.hdodenhof.circleimageview.CircleImageView
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:src="@drawable/empty_cart"
    app:layout_constraintBottom_toBottomOf="parent"
    app:layout_constraintEnd_toEndOf="parent"
    app:layout_constraintHorizontal_bias="0.5"
    app:layout_constraintStart_toStartOf="parent"
    app:layout_constraintTop_toTopOf="parent" />

</LinearLayout>`

`<LinearLayout android:layout_width="match_parent" android:layout_height="wrap_content" xmlns:app="http://schemas.android.com/apk/res-auto" android:layout_marginTop="4dp" android:layout_marginBottom="2dp" android:orientation="horizontal" android:weightSum="5" xmlns:android="http://schemas.android.com/apk/res/android">

<LinearLayout
    android:layout_width="0dp"
    android:layout_height="wrap_content"
    android:layout_margin="8dp"
    android:layout_weight="1"
    android:gravity="center"
    android:orientation="vertical">

    <de.hdodenhof.circleimageview.CircleImageView
        android:layout_width="50dp"
        android:layout_height="50dp"
        android:background="@color/shimmer_bg"
         />

    <TextView
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_marginTop="8dp"
        android:layout_marginBottom="8dp"
        android:gravity="center"
        android:text="Ctg 1"
        android:background="@color/shimmer_bg"
        android:textColor="@color/shimmer_bg" />

</LinearLayout>

<LinearLayout
    android:layout_width="0dp"
    android:layout_height="wrap_content"
    android:layout_margin="8dp"
    android:layout_weight="1"
    android:gravity="center"
    android:orientation="vertical">

    <de.hdodenhof.circleimageview.CircleImageView
        android:layout_width="50dp"
        android:layout_height="50dp"
        android:background="@color/shimmer_bg" />

    <TextView
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_marginTop="8dp"
        android:layout_marginBottom="8dp"
        android:gravity="center"
        android:text="Ctg 2"
        android:background="@color/shimmer_bg"
        android:textColor="@color/shimmer_bg" />

</LinearLayout>

<LinearLayout
    android:layout_width="0dp"
    android:layout_height="wrap_content"
    android:layout_margin="8dp"
    android:layout_weight="1"
    android:gravity="center"
    android:orientation="vertical">

    <de.hdodenhof.circleimageview.CircleImageView
        android:layout_width="50dp"
        android:layout_height="50dp"
        android:background="@color/shimmer_bg"
        />

    <TextView
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_marginTop="8dp"
        android:layout_marginBottom="8dp"
        android:gravity="center"
        android:text="Ctg 1"
        android:background="@color/shimmer_bg"
        android:textColor="@color/shimmer_bg" />

</LinearLayout>

<LinearLayout
    android:layout_width="0dp"
    android:layout_height="wrap_content"
    android:layout_margin="8dp"
    android:layout_weight="1"
    android:gravity="center"
    android:orientation="vertical">

    <de.hdodenhof.circleimageview.CircleImageView
        android:layout_width="50dp"
        android:layout_height="50dp"
        android:background="@color/shimmer_bg" />

    <TextView
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_marginTop="8dp"
        android:layout_marginBottom="8dp"
        android:gravity="center"
        android:text="Ctg 1"
        android:background="@color/shimmer_bg"
        android:textColor="@color/shimmer_bg" />

</LinearLayout>

<LinearLayout
    android:layout_width="0dp"
    android:layout_height="wrap_content"
    android:layout_margin="8dp"
    android:layout_weight="1"
    android:gravity="center"
    android:orientation="vertical">

    <de.hdodenhof.circleimageview.CircleImageView
        android:layout_width="50dp"
        android:layout_height="50dp"
        android:background="@color/shimmer_bg" />

    <TextView
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_marginTop="8dp"
        android:layout_marginBottom="8dp"
        android:gravity="center"
        android:text="Ctg 1"
        android:background="@color/shimmer_bg"
        android:textColor="@color/shimmer_bg" />

</LinearLayout>
</LinearLayout> `

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:2
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

12reactions
Surya23111998commented, May 11, 2020

just try Build -> Make Project and it will work fine

2reactions
hdodenhofcommented, Mar 16, 2019

Please have a look at #320, maybe you ran into the same issue. Also a background drawable will not be cropped to a circle, only the main drawable (set using android:src or setImage[..]).

Read more comments on GitHub >

github_iconTop Results From Across the Web

It is not working as expected. How can i fix this code?
I got the answer I wanted from the code but I don't understand why is it giving me the answer without the power...
Read more >
didn't work as expected | English examples in context - Ludwig
High quality example sentences with “didn't work as expected” in context from reliable sources - Ludwig is the linguistic search engine that helps...
Read more >
8 Steps To Take When Your Job Is Not What You Expected
What to do when your new job isn't what you expected · 1. Stay professional. · 2. Give the position a chance. ·...
Read more >
If Active Noise Cancellation isn't working as expected on your ...
If Active Noise Cancellation isn't working as expected on your AirPods Pro. Follow these steps. Make sure that you have the latest software...
Read more >
Atrium Integrator: Troubleshooting Job Schedules Not ...
What to look for when Atrium Integrator jobs schedules don't work as expected.
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