2016-05-16 74 views
-2

我在我的應用程序中包含項目列表視圖,我想根據材料設計指南製作我的列表視圖,並且我看到了Google材質設計網站,但我對此沒有疑惑,也不明白如何在我的列表視圖中實現。 請幫助我: -如何根據Material Design Guidline在android中實現listview?

enter image description here

這裏是我的代碼: -

<ListView 
    android:id="@+id/listSetting" 
    android:layout_width="match_parent" 
    android:layout_height="wrap_content" 
    android:minHeight="100dp" 
    android:layout_below="@id/toolbar" 
    android:scrollbarSize="4dp" 
    android:scrollbarThumbVertical="@drawable/scrollbar"/> 

這裏是什麼標題身高72 SP和如何實施和紅色標記的數字是填充或保證金。

+0

你應該看看如何設計一個ListViewItem。 –

回答

0

The official Documentation明確表示72dpheight of list item16dp是左側和右側padding from screen edge.其中8dptop padding

+0

但是如何頂給物品高度72 ... –

+0

哪一個讓你困惑?左側72?或者是最上面的一個? –

+0

最右上角的一個 –

相關問題