[英]How to add button to Google Play store in bottom corner of Android App?
[英]Make Android Button Chamfered Corner
您可以使用Button
並將此圖像設置為背景android:background="@drawable/chamfered_edge_img"
(我在圖像上方使用了chamfered_edge_img,您可以使用沒有文本的同一圖像,並使用android:text="My Button Name"
將文本添加到按鈕中android:text="My Button Name"
)
碼:
<Button
android:layout_width="150dp"
android:layout_height="50dp"
android:scaleType="fitXY"
android:background="@drawable/lcoyg"
style="?selectableItemBackground"
/>
結果:
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.