1.实现ActionSheetListener监听,其中onOtherButtonClick方法为点击回调,通过index判断点击的是哪个 2.弹出 ActionSheet.createBuilder(this, getSupportFragmentManager()) .setCancelButtonTitle("Cancel") .setOtherButtonTitles("content1", "content2") .setCancelableOnTouchOutside(true) .setListener(this).show(); 3.设置style: 在style里添加<item name="actionSheetStyle">@style/ActionSheetStyleiOS7</item> style可以自定义 具体地址:http://www.jcodecraeer.com/a/anzhuokaifa/androidkaifa/2014/0905/1677.html
actionsheet使用
最新推荐文章于 2022-12-14 17:27:01 发布
本文详细介绍了如何在Android应用中实现ActionSheet对话框,包括设置监听器、弹出ActionSheet及自定义样式的方法。
1938

被折叠的 条评论
为什么被折叠?



