Jeff Lee blog: http: www.cnblogs.com Alandre 泥沙磚瓦漿木匠 ,retain the url when reproduced Thanks 今天我們來Android UI第一講:實現Layout 背景局部Shape圓角設計 效果圖: 第一步:定義一個shape res drawable shape to corner no bottom line.xml ...
2014-11-18 21:34 3 1722 推薦指數:
先上效果圖: 就是一個類似微信qq那種item的shape。 即時上代碼,少廢話。 以下文件均為drawable文件夾下 文件:shape_general_item_top_bg_up.xml 文件 ...
定義圓圈:比如角標: xml布局文件 xml 背景文件 第二定義圓: xml布局文件 xml 背景文件 圓角巨型 ...
...
ShareDrawable資源 shareDrawable資料用於定義一個基本的集合圖形,它在xml資源文件中,使用<shap.../>根元素定義,使用android:shape屬性定義集合圖形類形。shareDrawable可以定義矩形,圓形,橢圓形,線形等幾種圖形。 下面舉個 ...
xml控件配置屬性 標簽 corners ----------圓角gradient ----------漸變padding ----------內容離邊界距離size ------------大小 solid ----------填充顏色stroke ----------描 ...