Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -299,6 +299,7 @@ public void onSelect(int position, String text) {
break;
case R.id.btnShowBottomListWithCheck: //从底部弹出,带手势拖拽的列表弹窗,带选中效果
new XPopup.Builder(getContext())
// .isDarkTheme(true)
.isViewMode(true)
.isDestroyOnDismiss(true) //对于只使用一次的弹窗,推荐设置这个
.asBottomList("标题可以没有", new String[]{"条目1", "条目2", "条目3", "条目4", "条目5"},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -112,8 +112,9 @@ protected void bind(@NonNull ViewHolder holder, @NonNull String s, int position)
holder.getView(R.id.check_view).setVisibility(position == checkedPosition ? VISIBLE : GONE);
holder.<CheckView>getView(R.id.check_view).setColor(XPopup.getPrimaryColor());
}
holder.<TextView>getView(R.id.tv_text).setTextColor(position == checkedPosition ?
XPopup.getPrimaryColor() : getResources().getColor(R.color._xpopup_title_color));
if (position == checkedPosition){
holder.<TextView>getView(R.id.tv_text).setTextColor(XPopup.getPrimaryColor());
}
holder.<TextView>getView(R.id.tv_text).setGravity(XPopupUtils.isLayoutRtl(getContext()) ? Gravity.END : Gravity.START);
}else {
if(holder.getViewOrNull(R.id.check_view)!=null)holder.getView(R.id.check_view).setVisibility(GONE);
Expand Down