Comments (3)
因为在自定义的布局layout_custom_dialog_layout.xml中我去掉了取消按钮 只有确认按钮`
<Button
android:id="@+id/dialog_posi_btn"
style="@style/dialog_button_style"
android:background="@drawable/custom_btn_bg"
android:text="确定" />
</LinearLayout>`
你想要有取消按钮在你自定义的布局中加入取消按钮即可,view的id参考cb_dialog.xml 中的即可(id要一样不然找不到这个按钮)。
`
<Button
android:id="@+id/dialog_neg_btn"
style="@style/dialog_button_style"
android:background="@drawable/cb_button_background_left"
android:text="取消"
android:textColor="@color/cb_btn_bg_blue"
android:visibility="gone" />
<View
android:id="@+id/btn_line_verticle"
android:layout_width="0.5dp"
android:layout_height="match_parent"
android:background="@color/btn_bg_line"
android:visibility="gone" />
<Button
android:id="@+id/dialog_posi_btn"
style="@style/dialog_button_style"
android:background="@drawable/cb_button_background_right"
android:text="确定"
android:textColor="@color/cb_btn_bg_blue" />
</LinearLayout>`
from cbdialog.
我在自定义布局中加入了取消按钮 ,id也是一样的,确定按钮的监听事件都获取不到
from cbdialog.
测试了下确实有问题,已经修改,可以更新到最新v1.0.7
from cbdialog.
Related Issues (12)
- 设置透明度的代码有错 HOT 1
- setTitleTextColor无效
- 当message字数太多时,展示不全
- 建议 HOT 1
- 进度条没有消失方法? HOT 1
- create进度框之后有dismiss的方法吗 HOT 1
- 显示不出 HOT 3
- 请教关于Dialog的关于FragmentDialog HOT 1
- 增加无标题 HOT 1
- 对话框确定颜色 HOT 3
- 请问下 那个进度条默认10秒能不能更改 时间太久了呀 想做到点击按钮就开始加载进度条 数据来了就关闭进度条 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cbdialog.