my image View id is showing an error, probably not importing... this is my xml for Image View...
<ImageView
android:id="@+id/abc"
android:layout_width="0dp"
android:layout_height="0dp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintHorizontal_bias="1.0"
app:layout_constraintLeft_toLeftOf="parent"
app:layout_constraintRight_toRightOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintVertical_bias="1.0"
tools:srcCompat="@tools:sample/avatars"
android:contentDescription="TODO" />
and this is MainActivity where in glide, image view id is not accepting...
val jsonObjectRequest = JsonObjectRequest(
Request.Method.GET, url, null,
{response ->
Glide.with(this).load(url).into(abc);
},
{ })
these are my imports...
import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
import com.android.volley.Request
import com.android.volley.toolbox.JsonObjectRequest
import com.android.volley.toolbox.Volley
import com.bumptech.glide.Glide
please assist me to resolve that...