Skip to content

ElevatedDrawable not working even after setting clipChildren = false #11

@UvrajSB

Description

@UvrajSB

<androidx.cardview.widget.CardView
    android:clipToPadding="false"
    android:layout_margin="20dp"
    android:id="@+id/kindle_parent_card_detail"
    android:background="@drawable/kindle_card"
    app:cardBackgroundColor="@color/cool_gray"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:theme="@style/ThemeOverlay.Neumorph.Dark"
    style="@style/Widget.Neumorph.CardView"
    android:clipChildren="false">


        <LinearLayout
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:orientation="vertical"
            android:layout_margin="30dp"
            android:elevation="50dp"
            android:clipChildren="false">
        <TextView
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:textSize="15sp"
            android:layout_marginHorizontal="20dp"
            android:fontFamily="@font/poppins"
            android:textColor="@color/white"
            android:id="@+id/highlight_text"/>
        <androidx.cardview.widget.CardView
            android:layout_width="wrap_content"
            android:layout_height="20dp"
            app:cardCornerRadius="10dp"
            android:paddingHorizontal="10dp"
            android:layout_centerHorizontal="true"
            app:cardBackgroundColor="@color/black"
            android:layout_below="@id/highlight_text"
            android:clipChildren="false">
            <TextView
                android:layout_width="wrap_content"
                android:layout_height="20dp"
                android:id="@+id/name_of_kindle"
                android:textSize="12sp"
                android:textColor="@color/lime"
                android:text="A General Introduction to Psychoanalysis"/>
        </androidx.cardview.widget.CardView>
        </LinearLayout>
</androidx.cardview.widget.CardView>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions