This is my XML
<Button
android:id="@+id/w1"
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="1"
android:background="@color/buttons_background"
android:clickable="true"
android:drawableRight="@drawable/icon_more"
android:fontFamily="roboto medium"
android:paddingLeft="30dp"
android:paddingRight="30dp"
android:text="@string/w1_btn_more"
android:textColor="@color/text_color"
android:textSize="17sp" />
How to change from icon_more to icon_next.
Piece of code Java
Button w1 = (Button) view.findViewById(R.id.w1);
w1.set("???");