View Code? Open in Web Editor
NEW
BottomDialog is a bottom dialog layout implemented with DialogFragment, Supports pop-up animation, Support any layout
Home Page: http://shaohui.me
License: Apache License 2.0
bottomdialog's People
Contributors
bottomdialog's Issues
getDimAmount 怎么从0.1-0.9 效果没有变化呢
怎么设置这个属性:
当点击BottomDialog中的任何一个控件后,BottomDialog自动消失。
你好 怎么为layout中的某个Imageview设置监听器呢
麻烦写下代码,谢谢、
Error:Could not find com.android.support:support-v4:24.2.1.
Required by:
ActivityTest1013:app:unspecified > com.android.support:appcompat-v7:23.4.0
ActivityTest1013:app:unspecified > com.android.support:design:23.4.0
ActivityTest1013:app:unspecified > com.android.support:appcompat-v7:23.4.0 > com.android.support:support-vector-drawable:23.4.0
ActivityTest1013:app:unspecified > com.android.support:design:23.4.0 > com.android.support:recyclerview-v7:23.4.0
Please install the Android Support Repository from the Android SDK Manager.
Open Android SDK Manager
错误log如上,貌似必须安装24.2.1的v4包?可是我的开发版本是23.4.0
请问如何解决?
dialog.setCancelOutside(true); // 点击外部区域是否关闭,默认true
点击外部区域好像无法隐藏dialog
dialog显示的view好像是铺满整个屏幕的,所以点击其他地方没有反应。
怎么给其中的一个按钮设定监听,使按钮点击后,Dialog随即消失???
Error:(42, 54) No resource found that matches the given name (at 'src' with value '@mipmap/share_wechat_solid').
Error:(68, 54) No resource found that matches the given name (at 'src' with value '@mipmap/share_weixin_friends_solid').
Error:(94, 54) No resource found that matches the given name (at 'src' with value '@mipmap/share_weibo_solid').
Error:(120, 54) No resource found that matches the given name (at 'src' with value '@mipmap/share_qq_solid').
Error:(146, 54) No resource found that matches the given name (at 'src' with value '@mipmap/share_qqzone_solid').
重复点击会报这个错,应该是show出的时候重复add
final BottomDialog mDialog = BottomDialog.create(getActivity().getSupportFragmentManager());或者final BottomDialog mDialog = BottomDialog.create(getFragmentManager());都不行
怎么在bindview几调用BottomDialog的dismiss??
setViewListener(new BottomDialog.ViewListener() {
@OverRide
public void bindView(View v) {
//do somthing
}
})
setViewListener监听接口方法里做的事情,设置的点击事件,横屏之后(弹窗虽然还在)点击事件无效,你可以拿您的弹窗微信R.id.mRlWechat设置试一下点击事件,横竖屏切换就无效了
public void bindView(View v) {
这里面点击按钮如何消失对话框
}
在运行example的时候,showDialog方法中把布局改为dialog_edit_text后,setCancelOutside方法是生效的;当布局是dialog_layout的时候,setCancelOutside方法是不生效的,测试手机:魅蓝,华为
DialogFragment中的show会crash,偶尔
一般回复评论会经常用到(检查是否输入了文字,如果有文字,则提示用户)
你好,有两个问题需要请教下:
1.我是在fragment中弹出的dialog的,.setCancelOutside(true)设置之后点击空白区域dialog不消失;
2.点击事件是在bindView中触发的?
谢谢!
你好,请问你用的手机录屏和转 gif 是什么软件呢?谢谢~~
@android :style/Theme.DeviceDefault.Dialog 需要api14 以上
但是gradle 里面minSdkVersion 9,应该改为14吧