xml佈局中顯示listView和RecyclerView的item佈局

xml佈局中顯示listView和RecyclerView的item佈局

tools:listitem=”@layout/item_layout”
必須手動寫出來,as沒有提示的。

<android.support.v7.widget.RecyclerView
            android:id="@+id/living_danmu"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:cacheColorHint="@android:color/transparent"
            android:divider="@null"
            android:listSelector="@android:color/transparent"
            tools:listitem="@layout/item_layout"
            android:overScrollMode="never" />
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章