I am using RadioButton
<RadioButton
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_margin="8dp"
android:id="@+id/optionC"
android:textColor="@color/black"
android:text="@string/opetion1"
android:drawableRight="@drawable/ic_google_logo"
android:textSize="18sp"
android:elevation="3dp"
android:translationZ="3dp"
android:stateListAnimator="@null" />
Now I want to set the drawableRihgt as a retrieved image. which I get from the real-time database with help of a URL. My question is that how I can set the retrieved image in drawableRight or drawable of RadioButton