android listview item height

前端 未结 7 1697
渐次进展
渐次进展 2020-12-07 17:53

Why when i use SimpleCursorAdapter for ListView i have items height in ListView like this - \"listview

相关标签:
7条回答
  • 2020-12-07 18:15

    This is my solution(There is a nested LinearLayout):

    <?xml version="1.0" encoding="utf-8"?>
    <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
        android:layout_width="fill_parent"
        android:layout_height="fill_parent" >
    
        <LinearLayout
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:orientation="vertical" >
    
            <TextView
                android:id="@+id/item"
                android:layout_width="match_parent"
                android:layout_height="47dp"
                android:background="@drawable/box_arrow_top_bg"
                android:gravity="center"
                android:text="全部收支"
                android:textColor="#666"
                android:textSize="16sp" />
        </LinearLayout>
    
    </LinearLayout>
    
    0 讨论(0)
提交回复
热议问题