Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

设置layout_height高度时,里面文字只显示一半 #165

Open
NSChris opened this issue Jun 19, 2020 · 1 comment
Open

设置layout_height高度时,里面文字只显示一半 #165

NSChris opened this issue Jun 19, 2020 · 1 comment

Comments

@NSChris
Copy link

NSChris commented Jun 19, 2020

No description provided.

@KMing86
Copy link

KMing86 commented Dec 3, 2020

那是因为他使用了默认的padding~ 你点进去看源码~ 他默认读取dimens的值~ 叫one_and_a_half_grid_unit,你只需在你的dimens.xml文件里~ 把这个值定义成0就行了~ 当然,也可以定义成别的,这个就是padding的值。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants