以编程方式创建it.gmariotti.cardslib.library.view.CardViewNative

时间:2015-09-25 10:49:39

标签: android android-view android-xml cardslib

下面是我在xml中的布局:

<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:card="http://schemas.android.com/apk/res-auto"
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="match_parent">

        <it.gmariotti.cardslib.library.view.CardViewNative
            android:id="@+id/my_nice_card_view"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            card:card_layout_resourceID="@layout/native_cardwithlist_layout"
            style="@style/card_external"/>

</LinearLayout>

我想以编程方式创建此视图CardViewNative,该视图来自cardslib library。但我对card:card_layout_resourceIDstyle属性感到不安。如何在代码中创建此CardViewNative

0 个答案:

没有答案
相关问题