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

百分比LinearLayout内部textview使用百分比padding出现左右均分的问题 #28

Open
Khaos116 opened this issue Aug 14, 2016 · 1 comment

Comments

@Khaos116
Copy link

在线性布局中使用百分比padding左右后,内部横线放一个imagview和一个textview,当textview也使用百分比padding后出现问题
app:layout_paddingLeftPercent="2%w"
app:layout_paddingRightPercent="4%w"

@yizems
Copy link

yizems commented Aug 14, 2016

试试 sw吧,一般的话,由于 有些 view可能使用wrap_content 会出现一些问题,使用sw和sh一般不会出问题

------------------ 原始邮件 ------------------
发件人: "CASE_CAI";notifications@github.com;
发送时间: 2016年8月14日(星期天) 晚上6:18
收件人: "hongyangAndroid/android-percent-support-extend"android-percent-support-extend@noreply.github.com;

主题: [hongyangAndroid/android-percent-support-extend] 百分比LinearLayout内部textview使用百分比padding出现左右均分的问题 (#28)

在线性布局中使用百分比padding左右后,内部横线放一个imagview和一个textview,当textview也使用百分比padding后出现问题
app:layout_paddingLeftPercent="2%w"
app:layout_paddingRightPercent="4%w"


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.

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