chrisjenx / Calligraphy

Custom fonts in Android the easy way...
Apache License 2.0
8.59k stars 1.1k forks source link

Frgment list adapter Error - CalligraphyLayoutInflater Activity it's working fine #414

Closed prashant31191 closed 6 years ago

prashant31191 commented 6 years ago

there is some issue on layout.. don't know but create new layout it's working well --updated layout-- <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical" android:layout_width="match_parent" android:layout_height="match_parent">

<android.support.v7.widget.CardView
    android:id="@+id/cardlist_item"
    android:layout_margin="8dp"
    android:padding="5dp"
    android:layout_width="match_parent"
    android:layout_height="wrap_content" >

    <LinearLayout
        android:orientation="vertical"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content">

    <TextView
        android:id="@+id/tvTtile"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:text="TextView" />
    <TextView
        android:id="@+id/tvDesc"
        android:layout_below="@+id/tvTtile"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:text="TextView" />
    <ImageView
        android:id="@+id/ivImage"
        android:layout_below="@+id/tvDesc"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:src="@drawable/header"
        android:adjustViewBounds="true"
        />
    </LinearLayout>

</android.support.v7.widget.CardView>