使用如下图所示的图片 绘制一个可以走动的时钟:图片width为800, height是按原图比例放缩的 无标题文档
分类:
其他好文 时间:
2015-04-24 18:13:49
阅读次数:
125
给TextView添加Onclick事件还需要配置android:clickable="true",否则点击无效。 <TextView ??????????? android:id="@+id/user_register_button" ??????????? android:layout_width="wrap...
分类:
其他好文 时间:
2015-04-24 17:00:31
阅读次数:
106
iPhone尺寸规格 设备 iPhone 宽 Width 高 Height 对角线 Diagonal 逻辑分辨率(point) Scale Factor 设备分辨率(pixel) PPI 3GS 2.4 inches (62.1 mm) 4.5 inches (115.5 mm) 3.5-inch ? 320x480 @1x 320x480 16...
分类:
其他好文 时间:
2015-04-24 17:00:06
阅读次数:
176
布局文件layout背景色里:
<LinearLayout
android:layout_width="130dp"
android:layout_height="104dp"
android:background="@drawable/bg_frame"
android:orientation="vertical">
drawable/bg_frame.xml内容如下
<?xmlversion="1.0"encoding="UTF-8"?>
<laye..
分类:
移动开发 时间:
2015-04-24 16:45:31
阅读次数:
519
今天抽空折腾了一个遮罩层,遇到一个问题,就是设置style,看下面:一般我们要设置比较少的style通常会这样:element.style.height = "50px";element.style.width = "200px";Ok,通常style较少这样用没问题,但如果遇到要设置的比较多,还这...
分类:
编程语言 时间:
2015-04-24 15:45:23
阅读次数:
162
Direct3D初始化步骤(核心代码): 1 // 描述交换链 2 DXGI_SWAP_CHAIN_DESC sd; 3 sd.BufferDesc.Width = mClientWidth; 4 sd.BufferDesc.Height = mClientHeigth; 5...
分类:
其他好文 时间:
2015-04-24 15:40:29
阅读次数:
150
var iframe = document.createElement("iframe");iframe.style.width = "265px";iframe.style.height = "490px";iframe.style.border = "none";iframe.src = "ht...
分类:
其他好文 时间:
2015-04-24 12:18:57
阅读次数:
129
只需要将 css样式 的 list-style-type 属性设置为none即可 代码如下 list-style-type:none;
#two li{
list-style-type:none;
width:150px;
}
下面的代码位于标签内
我是新手...
分类:
其他好文 时间:
2015-04-24 06:45:04
阅读次数:
134
定义和用法attr() 方法设置或返回被选元素的属性值。根据该方法不同的参数,其工作方式也有所差异。实例1设置被选元素的属性和值。 设置图像的 width 属性实例2返回被选元素的属性值。 返回图像的宽度
分类:
Web程序 时间:
2015-04-24 00:52:55
阅读次数:
1060
public int calculateInSampleSize(BitmapFactory.Options option, int rWidth, int rHeight) { final int width = option.outWidth; final ...
分类:
移动开发 时间:
2015-04-23 19:07:32
阅读次数:
141