<ImageButton
android:id="@+id/backbutton"
android:layout_width="65dp"
android:layout_height="50dp"
android:layout_gravity="center"
app:layout_constraintLeft_toRightOf="parent"
app:srcCompat="@drawable/backarrow"/>
i got this code but the image on the button appears too big that it cuts some of the photo’s parts. all i want to know is if there is any way to decrease the width and height of that background?
i have tried android:scaleType=”fitCenter” but didnt work
New contributor
luka lutidze is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.