一些有用的属性

1.android:clipChildren

  Defines whether a child is limited to draw inside of its bounds or not. This is useful with animations that scale the size of the children to more than 100% for instance.

In such a case, this property should be set to false to allow the children to draw outside of their bounds. The default value of this property is true.

2.android:addStatesFromChildren

  Sets whether this ViewGroup's drawable states also include its children's drawable states. This is used, for example, to make a group appear to be focused when its

child EditText or button is focused. 

3.android:ellipsize 

TextView及其子类,当字符内容太长显示不下时可以省略号代替未显示的字符

       

原文地址:https://www.cnblogs.com/yuyutianxia/p/3643541.html