Implementation of rounded corner button and line drawing in Android

From , 5 Years ago, written in Java, viewed 78 times.
URL https://pastebin.vip/view/bd22c2ef
  1. <?xml version="1.0" encoding="utf-8"?>  
  2. <shape  
  3.     xmlns:android="http://schemas.android.com/apk/res/android"  
  4.     android:shape="rectangle">  
  5.     <!-- 填充的颜色(白色) -->  
  6.     <solid android:color="#0000FF" />  
  7.     <!-- 设置按钮的四个角为弧形 -->  
  8.     <!-- android:radius 弧形的半径 -->  
  9.     <corners android:radius="5dip" />  
  10.      
  11. <!-- padding:Button里面的文字与Button边界的间隔 -->  
  12. <padding  
  13.    android:left="10dp"  
  14.    android:top="10dp"  
  15.    android:right="10dp"  
  16.    android:bottom="10dp"  
  17. />  
  18. </shape>  
  19.  
  20. //java/6594

Reply to "Implementation of rounded corner button and line drawing in Android"

Here you can reply to the paste above

captcha

https://burned.cc - Burn After Reading Website