dangiashish / StyledCardView

The StyledCardView is a customizable Android library designed to enhance the presentation of cardview-based UI components within your Android applications. This library provides developers with an easy-to-use and highly flexible solution for creating visually appealing cards with various styles. #styledcardview #advancedcardview #cardviewplus

Home Page:https://dangiashish.github.io/libs/styledcardview.html

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Styled Card View

CodeFactor

Gradle

Add repository in your build.gradle (project-level) file :

allprojects {
      repositories {
	...
	maven { url 'https://jitpack.io' }
	}
}
OR

in your settings.gradle

dependencyResolutionManagement {
    repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
    repositories {
        ...
        maven { url "https://jitpack.io" }
    }
}

Add dependency :

Add dependency in your build.gradle (module-level) file :

dependencies {

 implementation 'com.github.dangiashish:StyledCardView:1.0.0'

}

Xml Attrs

Preview Code
<com.github.dangiashish.StyledCardView
    android:layout_width="match_parent"
    android:layout_height="400dp"
    app:background_Type="fill_stroke"
    app:cornerRadius="10dp"
    app:background_Color="@color/white"
    app:shadow0_Outer_Alpha="0.3"
    app:shadow0_Outer_Angle="-45"
    app:shadow0_Outer_Blur="10dp"
    app:shadow0_Outer_Color="@android:color/holo_green_light"
    app:shadow0_Outer_Distance="10dp"
    app:shadow1_Outer_Alpha="0.5"
    app:shadow1_Outer_Angle="135"
    app:shadow1_Outer_Blur="10dp"
    app:shadow1_Outer_Color="@android:color/holo_blue_light"
    app:shadow1_Outer_Distance="5dp"
    app:shadow_Outer_Area="40dp"
    app:stroke_ColorType="gradient_sweep"
    app:stroke_Gradient_Angle="-45"
    app:stroke_Gradient_Color0="@android:color/holo_blue_light"
    app:stroke_Gradient_Color1="@android:color/holo_green_light"
    app:stroke_Width="1dp" />
 <com.github.dangiashish.StyledCardView
        android:layout_width="150dp"
        android:layout_height="150dp"
        android:layout_gravity="center"
        android:layout_marginStart="@dimen/dim_15"
        app:background_Color="@color/page_background_color"
        app:background_Type="fill_stroke"
        app:cornerRadius="@dimen/dim_15"
        app:corner_Type="circular"
        app:shadow0_Outer_Alpha="0.6"
        app:shadow0_Outer_Angle="-45"
        app:shadow0_Outer_Blur="@dimen/dim_10"
        app:shadow0_Outer_Color="#BBC3CE"
        app:shadow0_Outer_Distance="@dimen/dim_10"
        app:shadow1_Outer_Alpha="0.6"
        app:shadow1_Outer_Angle="135"
        app:shadow1_Outer_Blur="10dp"
        app:shadow1_Outer_Color="#FDFFFF"
        app:shadow1_Outer_Distance="@dimen/dim_10"
        app:shadow_Outer_Area="@dimen/dim_15">
        
            <androidx.appcompat.widget.AppCompatImageView
                style="@style/ImageViewIcon"
                android:layout_width="50dp"
                android:layout_height="50dp"
                android:layout_gravity="center"
                android:src="@drawable/baseline_arrow_back_24" />
        
    </com.github.dangiashish.StyledCardView>
<com.github.dangiashish.StyledCardView
        android:id="@+id/cvPhone"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_marginStart="@dimen/dim_12"
        android:layout_marginTop="@dimen/dim_12"
        android:layout_marginEnd="@dimen/dim_12"
        android:layout_marginBottom="@dimen/dim_5"
        app:background_Color="@color/page_background_color"
        app:background_Type="fill_stroke"
        app:cornerRadius="@dimen/dim_10"
        app:shadow0_Inner_Alpha="1"
        app:shadow0_Inner_Angle="135"
        app:shadow0_Inner_Blur="@dimen/dim_10"
        app:shadow0_Inner_Color="@color/shadow_inner_0_normal_color"
        app:shadow0_Inner_Distance="10dp"
        app:shadow1_Inner_Alpha="1"
        app:shadow1_Inner_Angle="-45"
        app:shadow1_Inner_Blur="@dimen/dim_10"
        app:shadow1_Inner_Color="@color/shadow_inner_1_normal_color"
        app:shadow1_Inner_Distance="10dp"
        app:shadow_Outer_Area="0dp">
    
        <androidx.appcompat.widget.AppCompatEditText
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:hint="Phone Number"/>

    </com.github.dangiashish.StyledCardView>

LICENSE

MIT License

Copyright (c) 2023 Ashish Dangi

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

About

The StyledCardView is a customizable Android library designed to enhance the presentation of cardview-based UI components within your Android applications. This library provides developers with an easy-to-use and highly flexible solution for creating visually appealing cards with various styles. #styledcardview #advancedcardview #cardviewplus

https://dangiashish.github.io/libs/styledcardview.html

License:MIT License


Languages

Language:Kotlin 100.0%