caikaidev / bottommenututorial Goto Github PK
View Code? Open in Web Editor NEWAndroid bottom dialog
Home Page: http://www.jianshu.com/p/8d420b668eda
Android bottom dialog
Home Page: http://www.jianshu.com/p/8d420b668eda
How can I change cancel button text?
Is it possible to change text color on dialog ?
Hello,
in the layout of the library there is a fixed chinese text. It should be a @string/something in order to override it
android:text="取消"
跳出弹框后,你点击框外的空白的地方,本来点一下是弹框消失,然后你不停的点击空白地方。然后你就看到弹框不停的在那里跳动。。。可以试试。
window.getDecorView().setOnTouchListener(new View.OnTouchListener() {
@OverRide
public boolean onTouch(View v, MotionEvent event) {
dismiss();
return true;
}
});
这么写有问题的。因为是onTouch就去执行,所以如果你在里面打上Log,你就会发现多次执行dismiss方法,虽然对于使用上是没有问题,但是最好做修改,因为不然你摸其他地方,其本上都是执行好几次。可以在手指收起来的时候去执行,这样只会执行一次
window.getDecorView().setOnTouchListener(new View.OnTouchListener() {
public boolean onTouch(View v, MotionEvent event) {
if (event.getAction() == MotionEvent.ACTION_UP) {
BottomDialog.this.dismiss();
return true;
}
return false;
}
});
hi,show dialog animation is very slow , can change this?
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.