Add SwipeToRefresh to RecyclerView Android
Have activity page with following code:
On my main activity.kt file, I have the following code but I am unsure where i need to put listenings etc. as I didn't write this part of the code;
package com.example.what2do_v2
import android.content.Intent
import android.os.Bundle
import android.util.Log
import android.widget.ImageButton
import androidx.appcompat.app.AppCompatActivity
import androidx.recyclerview.widget.LinearLayoutManager
import...