Eclipse Button按钮样式简单样式
生活随笔
收集整理的這篇文章主要介紹了
Eclipse Button按钮样式简单样式
小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個參考.
1、首先創(chuàng)建一個Button控件
<Buttonandroid:id="@+id/button1"android:layout_width="110dp"android:layout_height="40dp"android:background="@drawable/button_style"android:text="登陸"/>2、然后創(chuàng)建樣式文件
3、在樣式里面寫標簽
<!-- 圓角 --><corners android:radius="10dp"/><!-- 漸變顏色 --><gradientandroid:startColor="#121212"android:centerColor="#C2C2BA"android:endColor="#212121"/><!-- 按鈕中字體內(nèi)容與按鈕的間距<padding android:left=""android:top=""android:right=""android:bottom=""/>-->4、然后在Button控件引用這個標簽即可
總結(jié)
以上是生活随笔為你收集整理的Eclipse Button按钮样式简单样式的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: RedisClient 安装
- 下一篇: XG(信鸽推送)