All Projects → likaiyuan559 → Toucheffects

likaiyuan559 / Toucheffects

Licence: mit
Android View点击特效TouchEffects,几行代码为所有控件添加点击效果

Programming Languages

java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to Toucheffects

DebounceMonitoring
📑 Add debounce logic for any method in a single line.
Stars: ✭ 44 (-73.65%)
Mutual labels:  touch, click
View Effects
Apply custom effects on view backgrounds
Stars: ✭ 176 (+5.39%)
Mutual labels:  view, effects
Enviews
🌟A cool dynamic view library
Stars: ✭ 1,771 (+960.48%)
Mutual labels:  view, effects
MeeInk
Material Design click effect
Stars: ✭ 33 (-80.24%)
Mutual labels:  effects, click
Cardslider
Card Slider is an android component allows you to implement carousel effect with infinite indicators and more features
Stars: ✭ 160 (-4.19%)
Mutual labels:  view
Aachartkit Swift
📈📊📱💻🖥️An elegant modern declarative data visualization chart framework for iOS, iPadOS and macOS. Extremely powerful, supports line, spline, area, areaspline, column, bar, pie, scatter, angular gauges, arearange, areasplinerange, columnrange, bubble, box plot, error bars, funnel, waterfall and polar chart types. 极其精美而又强大的跨平台数据可视化图表框架,支持柱状图、条形图、…
Stars: ✭ 1,962 (+1074.85%)
Mutual labels:  view
Terminal Advancednewfile
Fast creation of files and directories. Mimics the operation of AdvancedNewFile (Vim plugin)
Stars: ✭ 134 (-19.76%)
Mutual labels:  touch
Coordinator Behaviors
Android Library. Behaviors for CoordinatorLayout.
Stars: ✭ 143 (-14.37%)
Mutual labels:  view
Slidingsquareloaderview
Marvelous sliding square loader view
Stars: ✭ 166 (-0.6%)
Mutual labels:  view
Ddc
The Disco Discus Compiler
Stars: ✭ 164 (-1.8%)
Mutual labels:  effects
Airpurgeview
AirPurgeView
Stars: ✭ 156 (-6.59%)
Mutual labels:  view
Expansionpanel
Android - Expansion panels contain creation flows and allow lightweight editing of an element.
Stars: ✭ 1,984 (+1088.02%)
Mutual labels:  view
Zzhorizontalprogressbar
水平进度条,支持渐变色和二级进度
Stars: ✭ 153 (-8.38%)
Mutual labels:  view
Learnunityshader
学习Unity Shader过程中的一些记录,特效,动画Demo。
Stars: ✭ 141 (-15.57%)
Mutual labels:  effects
Threejs Sandbox
Set of experiments and extensions to THREE.js.
Stars: ✭ 163 (-2.4%)
Mutual labels:  effects
Inappviewdebugger
A UIView debugger (like Reveal or Xcode) that can be embedded in an app for on-device view debugging
Stars: ✭ 1,805 (+980.84%)
Mutual labels:  view
Guitarstack
Digital guitar effects right in your browser!
Stars: ✭ 164 (-1.8%)
Mutual labels:  effects
Layerjs
layerJS: Javascript UI composition framework
Stars: ✭ 1,825 (+992.81%)
Mutual labels:  touch
Show Case Card View
Show case card view
Stars: ✭ 151 (-9.58%)
Mutual labels:  view
Normalmap.js
normalmap.js is a library for creating simple interactive lighting effects using normal maps.
Stars: ✭ 156 (-6.59%)
Mutual labels:  effects

Android 点击特效TouchEffects

TouchEffects能够帮助你更快速方便的增加点击时候的效果,TouchEffects的目标是打造一个稳定、全面、且能更方便的自定义及个性化的一款点击效果框架。

功能特点:

  • 只需要几行代码便能为全局的View加上点击效果

  • 支持多种点击效果

  • 支持个性化设置

  • 支持View的独立效果

效果支持:

  • Scale(点击缩放)

  • Ripple(点击水波纹)

  • Ripple_1(点击水波纹1)

  • State(点击渐变)

  • Shake(触碰抖动,用于不可点击时的反馈)

  • 更多效果敬请期待

文档

效果演示

缩放效果 水波纹效果
渐变效果 水波纹1设置
抖动效果 个性化设置

简单用例

1.设置maven仓库

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

2.添加依赖

普通版本

目前已经全面转为androidx,普通版本将不再维护,请各位尽快使用androidx哦

implementation 'com.github.likaiyuan559:TouchEffects:v0.1.3'

androidx

implementation 'com.github.likaiyuan559:TouchEffects:0.4.1'

初始化设置

1.设置全局属性

public class MyApplication extends Application {

    static {
        TouchEffectsManager.build(TouchEffectsWholeType.SCALE)//设置全局使用哪种效果
                .addViewType(TouchEffectsViewType.ALL)//添加哪些View支持这个效果
                .setListWholeType(TouchEffectsWholeType.RIPPLE);//为父控件为列表的情况下,设置特定效果
                                .setAspectRatioType(4f,TouchEffectsWholeType.RIPPLE);//宽高比大于4时启动水波纹
    }
    ...

}

在BaseActivity中添加代码

@Override
protected void onCreate(@Nullable Bundle savedInstanceState) {

    TouchEffectsFactory.initTouchEffects(this);

    super.onCreate(savedInstanceState);

}

给View设置点击事件

view.setOnClickListener(this);

控件支持

  • TextView

  • Button

  • ImageView

  • ImageButton

  • FrameLayout

  • LinearLayout

  • RelativeLayout

  • ConstraintLayout

  • 增加支持AppCompat系列

问题反馈

如果遇到问题,请提交Issuse,作者会每天都关注Github,并且会尽力解决每一个BUG,也欢迎大家能多提一些建议,多谢。

喜欢请给个Star

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].