Scenario: You can try using the shape's XML file instead of the picture. The effect of reducing the size of the package can be played.
Android button Maker is a tool that can generate button code online. The Android API provides the drawable resources for the geometric shapes defined by the XML file, including color, bounds, and gradients. These buttons are generated based on the drawable pattern of XML code, which can be loaded faster than normal PNG buttons. You can customize the button's properties on the settings panel and get its source code.
Although it is an online button-making tool, it is really simple and is used as follows:
In the right property bar, directly fill in the property values of the effect you want, in the left view to instantly display the button effect, adjust to the appropriate, directly to the lower left corner of the button and Buttonshape code to copy to your corresponding project. For example:
Shape code Generator