All Projects → mthli → Slice

mthli / Slice

Licence: apache-2.0
Android drawable that allows you custom round rect position.

Programming Languages

java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to Slice

Backgroundlibrary
A framework for directly generating shape through Tags, no need to write shape.xml again(通过标签直接生成shape,无需再写shape.xml)
Stars: ✭ 3,179 (+425.45%)
Mutual labels:  drawable
Flutter Infinitecards
An infinite card switching UI for Flutter, support custom animation 自定义实现神奇动效的卡片切换视图
Stars: ✭ 333 (-44.96%)
Mutual labels:  cardview
Pagetransformerhelp
👍 A PageTransformer library for Android ViewPager,have some Banner styles. ViewPager 实现轮播图、实现卡片切换。
Stars: ✭ 478 (-20.99%)
Mutual labels:  cardview
Editdrawabletext
EditDrawableText - An EditText which makes your Drawable Clickable
Stars: ✭ 288 (-52.4%)
Mutual labels:  drawable
Cardslideview
一行代码实现ViewPager卡片效果,比ViewPager2更强大,底层同样是RecyclerView
Stars: ✭ 301 (-50.25%)
Mutual labels:  cardview
Handycontrols
Contains some simple and commonly used WPF controls based on HandyControl
Stars: ✭ 347 (-42.64%)
Mutual labels:  cardview
TakingImageOfAView
An example on how to take screenshot of a particular view
Stars: ✭ 15 (-97.52%)
Mutual labels:  drawable
Nodrawable
一个旨在减少99%的drawable.xml文件的库,可直接在布局文件中对任意View声明drawable属性。
Stars: ✭ 551 (-8.93%)
Mutual labels:  drawable
Appcompat Extension Library
A library that builds on the AppCompat Design Library and provides additional common components such as AccountHeaderView, FloatingActionMenu, CircleImageView, Picker Dialogs, FlexibleToolbarLayout, Delightful Detail Drawables and TypefaceCompat.
Stars: ✭ 307 (-49.26%)
Mutual labels:  drawable
Gaussianblur
An easy and fast library to apply gaussian blur filter on any images. 🎩
Stars: ✭ 473 (-21.82%)
Mutual labels:  drawable
Spedittool
An efficient and scalable library for inputing and displaying gif or @mention on graph-text mixed TextView/EditText
Stars: ✭ 292 (-51.74%)
Mutual labels:  drawable
Onedrawable
✏️ Use only one image to set a background with a click effect for the View
Stars: ✭ 298 (-50.74%)
Mutual labels:  drawable
Viewpagercards
ViewPager cards inspired by Duolingo
Stars: ✭ 4,040 (+567.77%)
Mutual labels:  cardview
Nativescript Cardview
♦️ ♣️ NativeScript widget for Material Design CardView
Stars: ✭ 279 (-53.88%)
Mutual labels:  cardview
Cardview
小票形状的CardView,可以修改阴影颜色
Stars: ✭ 494 (-18.35%)
Mutual labels:  cardview
Uilibrary
平时项目开发中写的自定义Drawable、View和Shape
Stars: ✭ 260 (-57.02%)
Mutual labels:  drawable
Gradientdrawabletuner
🕹️ See how the properties of Android's "shape" affect the Drawable's appearance, intuitively.
Stars: ✭ 343 (-43.31%)
Mutual labels:  drawable
Elasticview
Elastic view is a regular CardView, which can flex from user touches
Stars: ✭ 566 (-6.45%)
Mutual labels:  cardview
Shuffle
🔥 A multi-directional card swiping library inspired by Tinder
Stars: ✭ 535 (-11.57%)
Mutual labels:  cardview
React Native Cardview
Native CardView for react-native (All Android version and iOS)
Stars: ✭ 426 (-29.59%)
Mutual labels:  cardview

Slice

Android Arsenal

YOU DON'T NEED CardView.

Android drawable that allows you custom round rect position, with more friendly and flexible API.

Support Android 2.1+

Example

For example, we can build a card style background for RecyclerView:

example.png

DEMO

API

  • setColorRes(@ColorRes int colorRes)

  • setColor(@ColorInt int color)

  • setElevation(@FloatRange(from = 0.0F) float elevationDp)

  • setRadius(@FloatRange(from = 0.0F) float radiusDp)

  • setRippleRes(@ColorRes int maskRes) only work for API 21+.

  • setRipple(@ColorInt int mask) only work for API 21+.

  • showLeftTopRect(boolean show)

  • showRightTopRect(boolean show)

  • showRightBottomRect(boolean show)

  • showLeftBottomRect(boolean show)

  • showLeftEdgeShadow(boolean show) only work for pre API 21.

  • showTopEdgeShadow(boolean show) only work for pre API 21.

  • showRightEdgeShadow(boolean show) only work for pre API 21.

  • showBottomEdgeShadow(boolean show) only work for pre API 21.

Gradle

At your top-level build.gradle file:

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

And then at your project build.gradle file:

dependencies {
    implementation 'com.github.mthli:Slice:v1.3'
}

Done!

Thanks

License

Copyright (C) 2018 Matthew Lee
Copyright (C) 2014 The Android Open Source Project

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
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].