您好,登錄后才能下訂單哦!
請求超時!
要在Android Button上繪制圓角邊框,可以通過定義一個drawable資源文件來實現(xiàn)。以下是一種實現(xiàn)方式:
<?xml version="1.0" encoding="utf-8"?> <shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="rectangle"> <solid android:color="@android:color/white" /> <corners android:radius="10dp" /> <stroke android:width="2dp" android:color="@color/colorAccent" /> </shape>
<Button android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="Button" android:background="@drawable/button_border" />
通過以上步驟,就可以在Android Button上繪制帶有圓角邊框的樣式了。可以根據(jù)需要調整xml文件中的邊框顏色、寬度以及圓角半徑等屬性來定制自己想要的樣式。
免責聲明:本站發(fā)布的內容(圖片、視頻和文字)以原創(chuàng)、轉載和分享為主,文章觀點不代表本網站立場,如果涉及侵權請聯(lián)系站長郵箱:is@yisu.com進行舉報,并提供相關證據(jù),一經查實,將立刻刪除涉嫌侵權內容。
億速云公眾號
手機網站二維碼
Copyright ? Yisu Cloud Ltd. All Rights Reserved. 2018 版權所有
廣州億速云計算有限公司粵ICP備17096448號-1 粵公網安備 44010402001142號增值電信業(yè)務經營許可證編號:B1-20181529