shape圓角內容的探索

android2.1版本的
  1. <shape>
  2.  <corners  
  3.   
  4.         android:topRightRadius="20dp"    右上角  
  5.         android:bottomLeftRadius="20dp"    右下角  
  6.         android:topLeftRadius="1dp"    左上角  
  7.         android:bottomRightRadius="0dp"    左下角  
  8. />  
</shape> 

屬性的bottomLeft和bottomRight是相反的
也就是說,left對應的右下角,right對應的是左下角,
但是到了sdk4.0就已經正常了。
發佈了29 篇原創文章 · 獲贊 18 · 訪問量 15萬+
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章