skip to Main Content

Android Studio – ROOM Dao ERROR: Not Sure How to handle insert method's return type & Not Sure how to handle delete method's return type

I am giving the classes whatever I created and ,and where the error is showing. I am unable to understand the error. DAO package com.example.grocerylist import androidx.lifecycle.LiveData import androidx.room.* @Dao interface GroceryDao { @Insert(onConflict = OnConflictStrategy.REPLACE) suspend fun insert(item: GroceryItems)…

VIEW QUESTION

Native Child View does not occupy full height and width of FrameLayout – React native

I am trying to integrate camera-x inside an android fragment in react-native Here is my native code class CealScanQrView(context: Context): FrameLayout(context) { init { val frameLayoutParams = ViewGroup.LayoutParams( ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.MATCH_PARENT ) layoutParams = frameLayoutParams setLayoutParams(layoutParams) setBackgroundColor(Color.parseColor("#5FD3F3")) preview = PreviewView(context) preview.id…

VIEW QUESTION
Back To Top
Search