alexa
Facebook
Twitter
LinkedIn
Instagram
Whatsapp
Call Now
Quick Inquiry

android.widget.LinearLayout cannot be cast to android.widget.TextView at com.example.foodorderapp.Adapters.OrdersAdapter$viewHolder.<init> in android ?

android.widget.LinearLayout cannot be cast to android.widget.TextView at com.example.foodorderapp.Adapters.OrdersAdapter$viewHolder.<init> in android ?

Remove the ID from Linearlayout and add to your textview-

 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    **android:id="@+id/orderItemName"** //REMOVE THIS and add to your TEXTVIEW
    android:layout_width="match_parent"
    android:layout_height="120dp"
    android:orientation="vertical"
    android:padding="1dp">

207 0
7

Write a Comments


* Be the first to Make Comment

GoodFirms Badge
GoodFirms Badge

Fix Your Meeting With Our SEO Consultants in India To Grow Your Business Online