skip to Main Content

Android Studio – How to cadd a swipe to refresh to my code?

I have the following layout code in my xlm, to call my recycler view in my status fragment <?xml version="1.0" encoding="utf-8"?> <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" tools:context=".fragments.Status"> <androidx.swiperefreshlayout.widget.SwipeRefreshLayout android:id="@+id/swipeToRefresh" android:layout_width="match_parent" android:layout_height="match_parent" app:layout_constraintTop_toTopOf="parent" app:layout_constraintTop_toBottomOf="parent" app:layout_constraintLeft_toLeftOf="parent" app:layout_constraintRight_toRightOf="parent"> <androidx.recyclerview.widget.RecyclerView android:id="@+id/statusRecyclerView" android:layout_width="match_parent" android:layout_height="match_parent"…

VIEW QUESTION

Android Studio – Why the lines are crossed out and the error

Why the lines are crossed out and the error where the dot is I don't understand package com.ggenius.whattowearkotlin.data.network import android.content.Context import android.net.ConnectivityManager import com.ggenius.whattowearkotlin.internal.NoConnectivityException import okhttp3.Interceptor import okhttp3.Response class ConnectivityInterceptorImpl( context: Context? ) : ConnectivityInterceptor { private val appContext =…

VIEW QUESTION
Back To Top
Search