android的控件

layout_width 控件的宽度     layout_height  控件的高度

fill_parent 随着控件的高度/宽度  wrap_content 随着文字的高度/宽度

<TextView  
    android:layout_width="fill_parent" 
    android:layout_height="wrap_content" 
    android:text="显示控件上要显示的内容"
    />

原文地址:https://www.cnblogs.com/hangekgmx/p/6837872.html