customDialog 设置宽度无效
Open
- Dominant language
- Java
- Stars
- 1.2k
- Forks
- 158
- PR merge metrics
- No merged PRs in 30d
Description
通过
v.setLayoutParams(new RelativeLayout.LayoutParams((int) (ScreenUtils.getScreenWidth() * 0.5F), RelativeLayout.LayoutParams.WRAP_CONTENT));
设置dialog的宽度无效
Contributor guide
No contributing guide indexed for this repository
Research direction
Start at the customDialog implementation and trace how the RelativeLayout.LayoutParams supplied to v are applied when the dialog is shown. Reproduce the reported width issue with ScreenUtils.getScreenWidth() * 0.5F; done means the dialog content uses the requested half-screen width.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, java
- Domain
- mobile
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100