-2
請給我代碼設計編輯文本框,圓角按鈕等。這是顯示在圖像中。我想要設計登錄n註冊(註冊)頁面如圖像pz給出mi源代碼
請給我代碼設計編輯文本框,圓角按鈕等。這是顯示在圖像中。我想要設計登錄n註冊(註冊)頁面如圖像pz給出mi源代碼
您可以使用XML繪製,並以此爲背景
先去繪製目錄,並創建新的繪製資源文件並將其命名爲MyRoundButton那麼所有這些代碼複製到它
<?xml version="1.0" encoding="UTF-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle">
<stroke
android:color="#ff66cc"
android:width="2dp"/>
<corners
android:radius="10dp"/>
</shape>
然後將此添加到您的Button背景中
android:background="@drawable/MyRoundButton"
半徑= 「someValue中」 由
的Android
和邊框顏色:顏色= 「#someColor」
現在你可以通過改變
更改Android圓角半徑
你的問題不清楚?你想要圓角的textview或所有的設計? – behrooz
你有沒有試過尋找答案?我確信這個問題已經在這裏回答過了。相關示例:http://stackoverflow.com/questions/6054562/how-to-make-the-corners-of-a-button-round http://stackoverflow.com/questions/10266595/how-to-make - 圓形按鈕 – MasterHD
@ behroz:我想要完整的設計 –