在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):kerasking/MaterialDialog开源软件地址(OpenSource Url):https://github.com/kerasking/MaterialDialog开源编程语言(OpenSource Language):开源软件介绍(OpenSource Introduction):Material DialogThis is an Android library, I call it MaterialDialog. It's very easy to use. Just new it, then the beautiful AlertDialog will show automatedly. It is artistic, conforms to Google Material Design. I hope that you will like it, and enjoys it. ^ ^ ScreenshotsUsageStep 1Import the library, then add it to your Android Studio 简介及导入 jar 包和第三方开源库方法 Step 2It's very easy, just like this: mMaterialDialog = new MaterialDialog(this);
mMaterialDialog.setTitle("MaterialDialog");
mMaterialDialog.setMessage("hello world!");
mMaterialDialog.setPositiveButton("OK", new View.OnClickListener() {
@Override
public void onClick(View v) {
mMaterialDialog.dismiss();
...
}
});
mMaterialDialog.setNegativeButton("CANCLE", new View.OnClickListener() {
@Override
public void onClick(View v) {
mMaterialDialog.dismiss();
...
}
}); With the first init, it will show automatedly. Or, you can init it and call the About meA student in mainland China. (^ ^ Thanks daimajia) My blog: http://drakeet.me More about me: http://drakeet.me/about |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论