I want to resize my ImageButton with the mouse on the graphic layout or with the android:layout_width , android:layout_height . But whenever I do this, ImageButton does not change, in fact, no less, but it is cut along the edges.
ImageButton
android:layout_width
android:layout_height
early
First try using android: background instead of android: src to set the image on the button. In most cases, this helps. If not, then see these ..
You will need to specify fixed sizes for the buttons (use dp instead of px ). Example:
dp
px
<ImageButton android:background="@drawable/ic_menu_more" android:layout_width="50dip" android:layout_height="50dip" />
This may be a problem with the size of your image. Try using the modified image, and then use it in your image button. Then you can set the width and height of the button.