<shape android:innerRa...
分类:
其他好文 时间:
2014-09-16 20:40:21
阅读次数:
223
Description
Bessie wants to navigate her spaceship through a dangerous asteroid field in the shape of an N x N grid (1 <= N <= 500). The grid contains K asteroids (1 <= K <= 10,000), which are conv...
分类:
其他好文 时间:
2014-09-14 14:08:57
阅读次数:
160
shape和selector是Android UI设计中经常用到的,比如我们要自定义一个圆角Button,点击Button有些效果的变化,就要用到shape和selector。可以这样说,shape和selector在美化控件中的作用是至关重要的。1.Shape 简介作用:XML中定义的几何形状位置...
分类:
移动开发 时间:
2014-09-12 23:16:54
阅读次数:
292
android:shape="rectangle">...
分类:
移动开发 时间:
2014-09-12 20:48:34
阅读次数:
252
1.在drawable 下新建 shape.xml 文件Xml代码 :124567891011android:radius为角的弧度,值越大角越圆。我们还可以把四个角设定成不同的角度,方法为:12.1设置成0dp无效,2.1以上版本可以,如果无效的话那就只能设成1dp了。2.设置引用 android...
分类:
移动开发 时间:
2014-09-10 12:12:20
阅读次数:
218
每次给4个点坐标,确保没有三点共线,判断构成的是个什么四边形就行了,并输出类型。
我的做法:
用点积和叉积判断线与线的关系
我的代码:
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
using namespace std;
s...
分类:
其他好文 时间:
2014-09-06 14:54:13
阅读次数:
309
Android开发中难免用到自定义的资源文件,其中很重要的便是Shape文件,Shape文件可以用来定义任意形状,常常用来做背景色等。Shape文件实际上也是.xml,其根元素是shape。下面将详细介绍Shape文件中各种元素和属性的含义。根元素<shape>指定基本形状shape属性指定基本形..
分类:
移动开发 时间:
2014-09-05 14:32:02
阅读次数:
262
@interface ViewController (){ Shape *_shape;}@end@implementation ViewController- (void)loadView{ //设置画板 self.view=[[SimpleDrawBoard alloc]ini...
分类:
其他好文 时间:
2014-09-04 22:13:40
阅读次数:
245
Setup-->User Preference-->display-->opengl-->staic-shapes_fill_solid打勾。可以将栅格铜皮改为实铜,Setup-->User Preference...-->display-->shape_fill-->old shape fill ...
分类:
其他好文 时间:
2014-09-03 16:30:56
阅读次数:
230
运用PHP面向对象的知识设计一个图形计算器,同时也运用到了抽象类知识,这个计算器可以计算三角形的周长和面积以及矩形的周长和面积。本图形计算器有4个页面:1.PHP图形计算器主页index.php; 2.形状的抽象类shape.class.php; 3三角形计算类triangle.clas...
分类:
Web程序 时间:
2014-09-02 00:04:03
阅读次数:
571