SQLite + Android - Display Data in RecyclerView (Book Library App) | Part 3

Stevdza-San · 152K views · 2020 · 12:24

Open on YouTube

Databases & storageSoftware (other)tutorial

Why Stack Overflow recommends it

Stack Overflow users link it as the tutorial they followed for wiring a SQLite database to a RecyclerView adapter, then come back with follow-up questions about search filtering and item clicks.

Recommended by 2 people across 2 different months, 2020 to 2022.

What it is

Part 3 of a six-part Android tutorial series by Stevdza-San that builds a Book Library app on SQLite. This episode shows how to read rows from the database and display them in a RecyclerView using a custom adapter.

What people said

Recommends XCaMeLX · 2020-09 · Stack Overflow · on “How to implement Search Filter with RecyclerView”

I followed some youtube tutorial about SQLite and RecyclerView ( [this video] ) I completed all the things and customize it as I need to my app and everything work fine. Now all I want to do is add Search Button at the top (Action Bar) that i can search items from my RecyclerView. So i was try to figure out how to implement it, but I struggle with the filter and all those things. Every tutorials that I saw about this work with List (E) while my CustomeAdpter geting ArrayList and I can't undrstand how to make it work with the ArrayList. So if some one can help me with that and give me some little guidance I will be grateful EDIT I added the getFilter() function in my adapter, but when I try to sea

Recommends Jane Martinez · 2022-04 · Stack Overflow · on “How to fix/implement Search Filter with RecyclerView”

I followed the same youtube tutorial ( [this video] ) and read the answer/feedback from this user's question ( How to implement Search Filter with RecyclerView [LINK] ). I want to add the Search Bar and have the results be filtered but am struggling with it. Even the tutorials like the User came across are not helping as I am having the same issue. I really hope someone can help me, I really would be grateful. MainActivity.java @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_item_list_screen); getSupportActionBar().setTitle("Items List Screen"); recyclerViewItem = findViewById(R.id.recyclerViewItem); add_i_button

Cites oRenanzao · 2022-02 · Stack Overflow · on “How can data be stored in the Recycler View?”

I've tried to read articles and pages about adaptors, but I couldn't really understand it. So I followed a Youtube tutorial that works perfectly fine, even though I don't know why. If you could explain me in simple words like you would do in a pseudocode or something, it would be perfect. What I really want to know is how this adaptor is able to get the data and place it in different text boxes each time a new register is added. The code I adapted from the video is below and if you'd like to watch it yourself, this is the link: [this video] (I'm new here, sorry if I've done something wrong) public class Adaptador extends RecyclerView.Adapter<Adaptador.MyViewHolder> { private Context context; priv

Cites LucK · 2022-06 · Stack Overflow · on “recyclerview item click listener with sqlite java”

I would like to get data from the box which click on on the recycler view to go into a another activity to display. I have tried to flow this video [LINK] i dont understand at 6:16. Also [this video] i cannot get the data to pass to the new activity. Main code protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_staff_home); DB=new mainTextDBHelper(this); recyclerView=findViewById(R.id.recyclerview); Title=new ArrayList<>(); description=new ArrayList<>(); radiogroup=new ArrayList<>(); adapter=new recyclerviewAdapter(this,Title,description,radiogroup,listener); recyclerView.setAdapter(adapter); recyclerView.setLayoutManager(new L