Programmatically creating a it.gmariotti.cardslib.library.view.CardViewNative

160 Views Asked by At

Below is my layout in 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>

I want to programmatically create this view CardViewNative, which is from the cardslib library. But I am troubled by the card:card_layout_resourceID and the style attributes. How to create this CardViewNative in code?

0

There are 0 best solutions below