Bigkoo / Bigkoo/Android-PickerView

布局与底部导航栏重叠的问题

Open
#1,024 2 comments 4 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
13.4k
Forks
3.4k
PR merge metrics
No merged PRs in 30d

Description

自问自答
build()之前调用setDecorView即可
activity中如下
```
.setDecorView(activity.getWindow().getDecorView().findViewById(android.R.id.content))
.build();
```
Frament中类似 下面是demo中的例子:

```
public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
mView = inflater.inflate(R.layout.fragment_test, null);
return mView;
}

@Override
public void onActivityCreated(@Nullable Bundle savedInstanceState) {
super.onActivityCreated(savedInstanceState);
mFrameLayout = (FrameLayout) mView.findViewById(R.id.fragmen_fragment);
}

.setDecorView(mFrameLayout)//非dialog模式下,设置ViewGroup, pickerView将会添加到这个ViewGroup中
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.