You can use Button
and set this image as background android:background="@drawable/chamfered_edge_img"
(i hav used above image as chamfered_edge_img, u can use same image without text and add text to button with android:text="My Button Name"
)
Code:
<Button
android:layout_width="150dp"
android:layout_height="50dp"
android:scaleType="fitXY"
android:background="@drawable/lcoyg"
style="?selectableItemBackground"
/>
Result:
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.