什么是机器人之间的区别:layout_width和android:宽

什么是机器人之间的区别:layout_width和android:宽

问题描述:

我不知道这两个属性之间和高度也差。

I do not know the difference between these two attributes and for the height also.

取一个TextView举例来说,如果我将其layout_width为WRAP_CONTENT并设置其宽度为50浸会怎样?

Take a TextView for example, what would happen if I set its layout_width to wrap_content and set its width to 50 dip?

有本质上没有区别,只是一个TextView的宽度为属性还。

There is essentially no difference, only a TextView has the width property also.

TextView.setWidth