there is such a code
<LinearLayout android:id="@+id/endLinearLayout" android:layout_width="match_parent" android:layout_height="wrap_content" android:orientation="horizontal"> <Button android:id="@+id/restartButton" android:layout_width="0dp" android:layout_height="match_parent" android:layout_weight="1" android:text="@string/restartButton" android:textSize="@dimen/joke_button_size" android:textStyle="bold" /> <ImageButton android:id="@+id/shareButton" android:layout_width="0dp" android:layout_height="match_parent" android:layout_weight="1" android:background="@drawable/ic_share_24dp"/> </LinearLayout> we get such a thing
How to make the image on the button not distort?
