CarouselView icon indicating copy to clipboard operation
CarouselView copied to clipboard

Cannot see indicator view

Open fawasashraf opened this issue 4 years ago • 1 comments

The indicator is hidden behind the layout resource

layout resource used:- ` <com.google.android.material.card.MaterialCardView 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:id="@+id/card" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginVertical="@dimen/_12sdp" app:cardCornerRadius="@dimen/_8sdp" app:cardPreventCornerOverlap="true" app:layout_constraintTop_toTopOf="parent" app:strokeColor="@color/glade_green" app:strokeWidth="0.5dp">

<androidx.constraintlayout.widget.ConstraintLayout
    android:layout_width="match_parent"
    android:layout_height="wrap_content">

    <ImageView
        android:id="@+id/imageView"
        android:layout_width="0dp"
        android:layout_height="wrap_content"
        android:scaleType="centerCrop"
        app:layout_constraintEnd_toEndOf="parent"
        app:layout_constraintStart_toStartOf="parent"
        app:layout_constraintTop_toTopOf="parent"
        tools:srcCompat="@tools:sample/avatars[3]" />

    <TextView
        android:id="@+id/textViewTitle"
        android:layout_width="0dp"
        android:layout_height="wrap_content"
        android:layout_marginStart="@dimen/_30sdp"
        android:fontFamily="monospace"
        tools:text="Gold Savings"
        android:textColor="@android:color/background_light"
        android:textSize="@dimen/_20ssp"
        android:textStyle="bold"
        app:layout_constraintBottom_toBottomOf="@+id/imageView"
        app:layout_constraintEnd_toEndOf="parent"
        app:layout_constraintStart_toStartOf="parent"
        app:layout_constraintTop_toTopOf="@+id/imageView"
        app:layout_constraintVertical_bias="0.86" />
</androidx.constraintlayout.widget.ConstraintLayout>

</com.google.android.material.card.MaterialCardView>`

fawasashraf avatar Nov 10 '21 08:11 fawasashraf

set it to wrap_content for the carousel layout.

But, I more prefer making new indicator layout then using the library. You can see the example to making new one here

ruman1609 avatar Dec 11 '21 06:12 ruman1609