Click here to Skip to main content
15,867,756 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I need help to fix this bug, i use Sliderlayout inside a cardview. but when i use cardcornerradius in cardview, the sliderlayout doesn't corner in a cardview
XML
<androidx.cardview.widget.CardView
         android:id="@+id/NoLinkCardview"
         android:layout_width="wrap_content"
         android:layout_height="wrap_content"
         app:cardCornerRadius="30dp"
         app:layout_constraintBottom_toBottomOf="parent"
         app:layout_constraintEnd_toEndOf="parent"
         app:layout_constraintHorizontal_bias="0.452"
         app:layout_constraintStart_toStartOf="parent"
         app:layout_constraintTop_toTopOf="parent"
         app:layout_constraintVertical_bias="0.194">
             <in.myinnos.imagesliderwithswipeslibrary.SliderLayout
                 android:id="@+id/image_place_holder"
                 android:layout_width="292dp"
                 android:layout_height="150dp"
                 android:scaleType="fitXY"
                 android:clipToPadding="true" />
     </androidx.cardview.widget.CardView>


What I have tried:

the sliderlayout doesn't corner like cardview
Posted
Updated 21-Apr-21 17:58pm
v2
Comments
David Crow 22-Apr-21 8:52am    
Have you considered contact the author of that library?
Komang Putra 22-Apr-21 9:27am    
No, i tried using cardview for make layout rounded
David Crow 27-Apr-21 12:50pm    
Have you tried removing the SliderLayout to see if the card's radius shows up?
Komang Putra 27-Apr-21 12:53pm    
Yes i already removing that
David Crow 27-Apr-21 13:02pm    
So if the card's radius is not showing up, then it has nothing to do with the SliderLayout.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900