android:shape=["rectangle" | "oval" | "line" | "ring"] shape的形状,默认为矩形,可以设置为矩形(rectangle)、椭圆形(oval)、线性形状(line)、环形(ring) 标签 corners 圆角gradient 渐变padding ...
分类:
移动开发 时间:
2016-08-26 10:29:58
阅读次数:
167
Ovals, mathematically, are ellipses, including circles as a special case. The ellipse is fit into a rectangle defined by the coordinates (x0, y0) of t ...
分类:
编程语言 时间:
2016-05-09 00:04:24
阅读次数:
246
addOval(RectF oval, Path.Direction dir)方法: 绘制椭圆,同上绘制圆的方法
addPath(Path src, float dx, float dy)方法: 在已有的Path上通过平移创建新的path
addCircle(float x, float y, float radius, Direction dir)方法:
使用pat...
分类:
其他好文 时间:
2016-05-07 10:25:12
阅读次数:
135
<?xml version="1.0" encoding="utf-8"?><shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape=["rectangle" | "oval" | "line" | ...
分类:
移动开发 时间:
2016-04-26 15:53:27
阅读次数:
138
Shape的基础标签共有6个:corners, gradient, solid, stroke, padding, size Shape可以有四种形状:rectangle(矩形,默认形状),oval(椭圆形),ring(水平线),ring(环形) 关于corners标签:corners元素只适用于r ...
分类:
移动开发 时间:
2016-04-12 20:53:59
阅读次数:
253
This puzzle consists of a random sequence of m black disks and n white disks on an oval-shaped track, with a turnstile capable of flipping (i.e., reve ...
分类:
其他好文 时间:
2016-04-08 00:55:18
阅读次数:
189
记录下平时常用的小知识点,知识在于积累!shape:<?xmlversion="1.0"encoding="utf-8"?>
<shapexmlns:android="http://schemas.android.com/apk/res/android"
android:shape="oval">
<cornersandroid:radius="5dp"/>
<solidandroid:color="#000000"/>..
分类:
其他好文 时间:
2015-12-08 16:17:28
阅读次数:
134
1. 效果图 2.圆形图 bg_btn_round.xml 2. 椭圆形图 bg_btn_oval_gray.xml 3. 实现蓝色效果,把的颜色改为蓝色就可以了
分类:
其他好文 时间:
2015-12-01 12:37:23
阅读次数:
158