kyleduo / kyleduo/SwitchButton
layout_width and layout height is't not work,always the same size
Open
Nobody has claimed this yet.
bug
help wanted
- Dominant language
- Java
- Stars
- 4.7k
- Forks
- 864
- PR merge metrics
- No merged PRs in 30d
Description
when I use layout_width=200dp or layout height=50dp in xml file
I realize it's always the same size
i changed code in onMeasure method,but is't not work
I need you help
thanks!
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the XML layout attributes described in the issue and the widget's onMeasure method, then reproduce the fixed-size behavior in an Android layout. Trace how layout_width and layout_height are handled and verify that 200dp by 50dp produces the requested dimensions.
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
- 25/100