All Projects → vivian8725118 → Cardview

vivian8725118 / Cardview

小票形状的CardView,可以修改阴影颜色

Programming Languages

java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to Cardview

React Native Cardview
Native CardView for react-native (All Android version and iOS)
Stars: ✭ 426 (-13.77%)
Mutual labels:  shadow, cardview
Viewpagercards
ViewPager cards inspired by Duolingo
Stars: ✭ 4,040 (+717.81%)
Mutual labels:  cardview
Tiny-OpenGL-Shadow-Mapping-Examples
Compact OpenGL Shadow Mapping Examples in a single compilation unit
Stars: ✭ 21 (-95.75%)
Mutual labels:  shadow
Cardslideview
一行代码实现ViewPager卡片效果,比ViewPager2更强大,底层同样是RecyclerView
Stars: ✭ 301 (-39.07%)
Mutual labels:  cardview
react-native-shadow-cards
Cards are a great way to display information, usually containing content and actions about a single subject. Cards can contain images, buttons, text and more.
Stars: ✭ 42 (-91.5%)
Mutual labels:  cardview
Tintlayout
This library help you to achieve popular drop shadow effect from view.
Stars: ✭ 322 (-34.82%)
Mutual labels:  shadow
iconplus
Produce icons with extra effect like long shadow, flat shadow, box effect, circle effect and rounded rectangle effect. It support Dynamic text, Font-awesome icons and also google materialized icon. You can make any Font-awesome icon as line icon and add attractive effect to it dynamically. As a output you will get CSS3 code and also you can expo…
Stars: ✭ 34 (-93.12%)
Mutual labels:  shadow
Pagetransformerhelp
👍 A PageTransformer library for Android ViewPager,have some Banner styles. ViewPager 实现轮播图、实现卡片切换。
Stars: ✭ 478 (-3.24%)
Mutual labels:  cardview
Shadowview
An iOS Library that makes shadows management easy on UIView.
Stars: ✭ 391 (-20.85%)
Mutual labels:  shadow
Skeleton
Skeleton Android
Stars: ✭ 293 (-40.69%)
Mutual labels:  cardview
Nativescript Cardview
♦️ ♣️ NativeScript widget for Material Design CardView
Stars: ✭ 279 (-43.52%)
Mutual labels:  cardview
nvgen-shader-for-unity-speedtree
#NVJOB Shader for Unity SpeedTree. Old, Legacy.
Stars: ✭ 37 (-92.51%)
Mutual labels:  shadow
Flutter Infinitecards
An infinite card switching UI for Flutter, support custom animation 自定义实现神奇动效的卡片切换视图
Stars: ✭ 333 (-32.59%)
Mutual labels:  cardview
modular-deferred-gpu-particle-system
modular particle system using compute shaders.
Stars: ✭ 20 (-95.95%)
Mutual labels:  shadow
shadow-accrual-maps
Accumulated shadow data computed for New York City
Stars: ✭ 15 (-96.96%)
Mutual labels:  shadow
AndroidJoyStickView
This library lets you create joystick with some customization for android
Stars: ✭ 45 (-90.89%)
Mutual labels:  shadow
Shadowhelper
A library to add shadows for the Android View.(一个方便为Android View添加自然的阴影的库)
Stars: ✭ 322 (-34.82%)
Mutual labels:  shadow
React Native Neomorph Shadows
Shadows and neumorphism/neomorphism for iOS & Android (like iOS).
Stars: ✭ 478 (-3.24%)
Mutual labels:  shadow
Coloredshadowimageview
ColoredShadowImageView allows you to create a beautiful shadow around the image based on corresponding area colors.
Stars: ✭ 454 (-8.1%)
Mutual labels:  shadow
Handycontrols
Contains some simple and commonly used WPF controls based on HandyControl
Stars: ✭ 347 (-29.76%)
Mutual labels:  cardview

CardView

类似小票效果的卡片列表,并且可以修改阴影颜色

Usage

可以直接引用CardView

CardView cardView=new CardView(context);
//修改CardView的主题颜色
cardView.changeTheme(0xff01a3a1);

原理

用paint.setShadowLayer来设置阴影颜色和尺寸,进行阴影绘制,用path来画出drawable的形状。 封装了changeTheme的方法,可以直接设置主题的颜色。

本示例中为了更好地实现效果,用了TopDrawable、CenterDrawable、BottomDrawable三部分拼接而成,也可以用来实现打印小票的视觉效果。另外添加了一个类似FloatingButton效果的CircleShadowDrawable

效果图

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].