xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:descendantFocusability="blocksDescendants"
android:orientation="horizontal" >
style="@style/ListViewHeaderStyle"
android:layout_height="200dp"
android:id="@+id/tv_name"
/>
Listview每个item的布局文件,刚开始我在LinearLayout设置了高度为200dp的值,不生效,后来TextView设置高度200dp,LinearLayout为wrap_content这样才生效。