Skip to content
Advertisement

Getting Problem In RecycleView with TextInputEditText

I am a new Programmer, actually I was trying to make an app. I was trying to make an activity that uses RecyclerView to Show TextInputEditText with spinner and TextView. It means that I was trying to make an activity that uses Recyclerview and In the layout of Recycler View, I have used Text Input Edit Text and Spinner and TextView. I have put these three in a single layout. But the main problem that I facing is that when I launch my app with my code then it remains blank activity it is not showing TextInputEditText nor spinner and nor TextView.

So the conclusion is I want to show [TextInputEditText, Spinner and TextView] in RecyclerView But my code is returning Blank Activity.

Here is my code:-

It is my adapter class:-

JavaScript

It is My MainActivity:-

JavaScript

Here is my RecyclerView Layout:-

JavaScript

My Main Layout –

JavaScript

I have not used any modal class because I don’t know how to use it with Widgets.

Advertisement

Answer

you need to pass the data to your adapter

JavaScript

we could not show the Recyclerview with empty data

User contributions licensed under: CC BY-SA
3 People found this is helpful
Advertisement