daimajia / daimajia/NumberProgressBar

字体大小可以当做宽度或者高度吗

Open
#70 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
6.1k
Forks
1.4k
PR merge metrics
No merged PRs in 30d

Description

@Override
protected int getSuggestedMinimumWidth() {
return (int) mTextSize;
}

@Override
protected int getSuggestedMinimumHeight() {
return Math.max((int) mTextSize, Math.max((int) mReachedBarHeight, (int) mUnreachedBarHeight));
}
重写的这两个方法中为什么返回mTextSize,textSize和宽高有什么关联吗?

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by locating the Android view class containing getSuggestedMinimumWidth(), getSuggestedMinimumHeight(), and mTextSize, then read the Android View measurement documentation and inspect how these fields are used. Done means documenting whether text size is intentionally used as a minimum dimension and explaining its relationship to the view's measured width and height.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, java
Domain
mobile
Issue type
Documentation
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.