zhanyongsheng / brokenview Goto Github PK
View Code? Open in Web Editor NEWGlass-break effect for views
License: MIT License
Glass-break effect for views
License: MIT License
在BrokenView.setCallback监听中,我在onFallEnd中使用reset没反应呀,这怎么搞
There's no such method available to perform the glass break animation programmatically on a view. It only responds to touch events.
I've implemented BrokenView with ViewPager, and it is only working for the first Tab (View) that references it in the ViewPager - any ideas why?
Many thanks
How to start broken animation while clicking on the view?
现在长按完破碎动画有两次,如何直破一次呢
修改setRepeatCount(1);参数为0就没有动画了
When glass gets breaked it apears once again and falls again :-X
I am adding view with default listener
RelativeLayout relative = (RelativeLayout) getLayoutInflater().inflate(R.layout.view_break_glass, null);
ImageView imageView = (ImageView) relative.findViewById(R.id.glass);
BrokenView brokenView = BrokenView.add2Window(this);
BrokenTouchListener listener = new BrokenTouchListener.Builder(brokenView).build();
imageView.setOnTouchListener(listener);
return relative;
public void animationBroken(View mView){
BrokenConfig mBrokenConfig=new BrokenConfig();
mBrokenConfig.complexity=8;
Point mPaint=new Point(parentLayout.getWidth()/2,parentLayout.getHeight()/2);
BrokenAnimator mBrokenAnimator=mBrokenView.createAnimator(parentLayout,mPaint,mBrokenConfig);
mBrokenAnimator.start();
}
有时候破碎不成功
could anyone translate this to Flutter? Instead of View it should be a Widget.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.