公共组件汇总

公共组件使用方法


列表选择中间弹出框

<h2>效果:</h2> <p><img src="https://www.showdoc.cc/server/api/common/visitfile/sign/5a761ea1d9fface24a4454539bcf0b8a?showdoc=.jpg" alt="" /> <img src="https://www.showdoc.cc/server/api/common/visitfile/sign/04761ae1b337256af5723e3f614a00aa?showdoc=.jpg" alt="" /></p> <h2>使用方式:</h2> <p>new BuildCenterListDialog.Builder<ListDiloagChooseBean>() .setDataList(list) .setTitleStr(&quot;标题文本&quot;) .setChooseKeyStr(mChooseKey) .setChooseResultInterface(new ChooseListItemsDialogFragment.IChooseItemResultListener<ListDiloagChooseBean>() { @Override public void chooseResult(ListDiloagChooseBean obj) { Toast.makeText(ChooseListDialogActivity.this,&quot;选择项:&quot;+obj.getValue(), Toast.LENGTH_SHORT).show(); mChooseKey=obj.getKey(); } }) .show(this);</p> <h2>方法说明:</h2> <pre><code>setDataList: 设置数据list setTitleStr: 设置标题,不设置或者设置为空则不显示标题 setChooseKeyStr: 设置默认选中项的key字符串 setChooseResultInterface: 设置选择结果回调</code></pre>

页面列表

ITEM_HTML