[英]How to make Cardlibs CardView look exactly like Android Support CardView
我正在使用it.gmariotti.cardslib.library.view.CardListView
作為它的適配器並控制卡列表。
it.gmariotti.cardslib.library.view.CardView
看起來很糟糕,並在非常煩人的地方添加了填充和邊距。
如何使it.gmariotti.cardslib.library.view.CardView
和it.gmariotti.cardslib.library.view.CardListView
看起來就像默認android.support.v7.widget.CardView
?
(這是可能的,因為它是在演示cardlib
應用程序中以某種方式完成的。
fragment_cards.xml
<it.gmariotti.cardslib.library.view.CardListView xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/card_list"
android:layout_width="match_parent"
android:layout_height="match_parent"/>
test_card.xml
<it.gmariotti.cardslib.library.view.CardView xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="200dp"
style="@style/card.native"/>
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.