neumorphism icon indicating copy to clipboard operation
neumorphism copied to clipboard

i want to set text on neumorphism rectangle shape

Open Octopus7597 opened this issue 4 years ago • 2 comments

Describe the request you'd like: A clear and concise description of what you want.

Additional context: Add any other context or screenshots about the feature request here.

Octopus7597 avatar Oct 16 '20 07:10 Octopus7597

How do I change the corner radius of the card view in xml?

sen9040 avatar Nov 18 '20 06:11 sen9040

i want to set text on neumorphism rectangle shape

You can use TextView in a CardView

How do I change the corner radius of the card view in xml?

Add this line to your CardView xml

app:neumorph_shapeAppearance="@style/CustomShapeAppearance">
    <soup.neumorphism.NeumorphCardView
        android:id="@+id/edittext_card"
        style="@style/Widget.Neumorph.CardView"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        app:neumorph_shapeAppearance="@style/CustomShapeAppearance">

        .......

    </soup.neumorphism.NeumorphCardView>

And create a new style with custom size for all corner

    <style name="CustomShapeAppearance">
        <item name="neumorph_cornerFamily">rounded</item>
        <item name="neumorph_cornerSize">16dp</item>
    </style>

Or specify each one

    <style name="CustomShapeAppearance">
        <item name="neumorph_cornerFamily">rounded</item>
        <item name="neumorph_cornerSizeTopLeft">64dp</item>
        <item name="neumorph_cornerSizeTopRight">64dp</item>
        <item name="neumorph_cornerSizeBottomLeft">64dp</item>
        <item name="neumorph_cornerSizeBottomRight">64dp</item>
    </style>

AmirMahdaviAM avatar Nov 22 '20 12:11 AmirMahdaviAM