0
我在列表視圖中使用drawable作爲我的分隔線。我的drawable是一個向下的箭頭。但是當它顯示在屏幕上時,它的寬度會拉長。 我知道有一種方法來設置分隔高度,但有沒有辦法設置其寬度?爲什麼我的可繪製ListView分隔線拉伸?
<ListView android:id="@android:id/list"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:divider="@drawable/down_arrow"
android:dividerHeight="1dp"
android:cacheColorHint="@android:color/transparent"
android:layout_gravity="center"
android:layout_below="@id/title">
</ListView>
解決了它,謝謝! – theWizard