Commit ac4014056c5fee381d86ae1e43b271b139e3d178
1 parent
8ac7ea6c
1 修改绑定机构信息状态栏提示文字颜色
Showing
1 changed file
with
14 additions
and
4 deletions
core/dentity_verfication/src/main/java/com/cnlive/core/company_verfication/ui/fragment/SelectCompanyDataFragment.java
| ... | ... | @@ -11,6 +11,7 @@ import com.cnlive.core.company_verfication.ui.adapter.CompanyDataAdapter; |
| 11 | 11 | import com.cnlive.core.company_verfication.ui.adapter.CompanyItemDataAdapter; |
| 12 | 12 | import com.cnlive.core.company_verfication.ui.model.CompanyItemData; |
| 13 | 13 | import com.cnlive.core.libs.base.frame.fragment.BaseFragment; |
| 14 | +import com.cnlive.core.libs.base.util.StatusBarConfig; | |
| 14 | 15 | import com.cnlive.core.libs.base.util.StatusBarUtil; |
| 15 | 16 | import com.cnlive.core.people_verfication.R; |
| 16 | 17 | import com.cnlive.core.people_verfication.databinding.FragmentSelectInCompanyDataBinding; |
| ... | ... | @@ -46,9 +47,10 @@ import androidx.recyclerview.widget.LinearLayoutManager; |
| 46 | 47 | |
| 47 | 48 | @Override |
| 48 | 49 | protected void initView() { |
| 49 | -// data.add("测试"); | |
| 50 | -// adapter = new CompanyDataAdapter(me, data); | |
| 50 | + //设置沉浸式状态栏 | |
| 51 | 51 | showImmersiveStatusBar(); |
| 52 | + //设置状态栏提示文字颜色 | |
| 53 | + setStatusBarTextColor(StatusBarConfig.BLACK); | |
| 52 | 54 | initTopBar(); |
| 53 | 55 | List<CompanyItemData> list = new ArrayList<>(); |
| 54 | 56 | list.add(new CompanyItemData(CompanyItemData.TYPE_ORGANIZATION, 0)); |
| ... | ... | @@ -94,13 +96,21 @@ import androidx.recyclerview.widget.LinearLayoutManager; |
| 94 | 96 | |
| 95 | 97 | } |
| 96 | 98 | }); |
| 97 | - | |
| 99 | + //蒙版点击 | |
| 100 | + binding.viewMask.setOnClickListener(new View.OnClickListener() { | |
| 101 | + @Override | |
| 102 | + public void onClick(View v) { | |
| 103 | + if (!isNull(behavior)) { | |
| 104 | + binding.viewMask.setVisibility(View.GONE); | |
| 105 | + behavior.setState(BottomSheetBehavior.STATE_HIDDEN); | |
| 106 | + } | |
| 107 | + } | |
| 108 | + }); | |
| 98 | 109 | |
| 99 | 110 | itemDataAdapter.setOnClickListener(new CompanyItemDataAdapter.OnClickListener() { |
| 100 | 111 | @Override |
| 101 | 112 | public void onClick(TextView textView) { |
| 102 | 113 | if (!isNull(behavior)) { |
| 103 | - | |
| 104 | 114 | binding.viewMask.setVisibility(View.VISIBLE); |
| 105 | 115 | behavior.setState(BottomSheetBehavior.STATE_EXPANDED); |
| 106 | 116 | } | ... | ... |