如图:
原因:第一个组件的layout_width设置为了铺满match_parent,把后面的组件给盖住了。
<TextView android:text="爱好:" android:layout_width="match_content" android:layout_height="wrap_content"/>
修改:layout_width设置为了自适应wrap_parent即可。
<TextView android:text="爱好:" android:layout_width="wrap_content" android:layout_height="wrap_content"/>
结果:
原文:https://www.cnblogs.com/Master-Sun/p/14251329.html