首先我们先来看下官方API对SurfaceView的介绍
SurfaceView的API介绍
Provides a dedicated drawing surface embedded inside of a view hierarchy. You can control the format of this surface and, if you like, its size; th...
分类:
移动开发 时间:
2015-05-05 16:38:38
阅读次数:
217
今天遇到一个查询问题,多加了一个查询参数导致查询超时报黄,经过公司DBA改进,涨姿势了。现在发出来跟大家分享一下!~
SELECT m.* FROM TB_UserSiteGroup u WITH(NOLOCK),Message.dbo.View_Message_8 m WITH(NOLOCK)
WHERE m.FromUserID = u.UserID AND u.AdminID...
分类:
数据库 时间:
2015-05-05 16:36:44
阅读次数:
173
在expandListView的group中如果包含imageview发现,报错。提示无法将imageview转换成TextView.查看源码发现,SimpleExpandableListAdapter中有如下方法:
private void bindView(View view, Map data, String[] from, int[] to) {
int len = to...
分类:
移动开发 时间:
2015-05-05 16:36:41
阅读次数:
146
在编写自定义view的时候,通常会在onTouchEvent回调方法中进行一些关乎距离的判断逻辑,这里的距离常量如果适配到多分辨率的不同设备上时可能会出现一些错乱的问题。所以一般来说,常常需要dp到Px的转换操作,常用的方法如下:1. 定义常量,仅仅是个数字,但是隐含的单位为dp2. 在使用该常量的...
分类:
其他好文 时间:
2015-05-05 15:56:36
阅读次数:
130
info.plist文件中,View controller-based status bar appearance项设为YES,则View controller对status bar的设置优先级高于application的设置。为NO则以application的设置为准,view controlle...
分类:
移动开发 时间:
2015-05-05 14:09:41
阅读次数:
168
var setting = { view: { dblClickExpand: true,//双击展开 showLayer: false, selectedMulti: f...
分类:
其他好文 时间:
2015-05-05 12:23:29
阅读次数:
99
package com.matp.view;import java.awt.FlowLayout;public class SimpleDialog extends JDialog implements ActionListener { // 文本框,用于输入字符串 JTextField ...
分类:
编程语言 时间:
2015-05-05 12:13:49
阅读次数:
199
http://blog.csdn.net/vector_yi/article/details/24719873一、MVP介绍 随着UI创建技术的功能日益增强,UI层也履行着越来越多的职责。为了更好地细分视图(View)与模型(Model)的功能,让View专注于处理数据的可视化以及与用户的交互,同....
分类:
移动开发 时间:
2015-05-05 12:06:43
阅读次数:
146
熟悉web开发中童鞋们都知道为了防止恶意破解、恶意提交、刷票等我们在提交表单数据时,都会使用随机验证码功能。在Android应用中我们同样需要这一功能,该如何实现呢,下面我们就自定义一个随机验证码View控件实现这一需求,并且具备通用性,需要的时候在界面中直接加入这个View组件即可。...
分类:
移动开发 时间:
2015-05-05 10:43:45
阅读次数:
183
onAttachedToWindow在Activity生命周期中的位置放大招:onAttachedToWindow不能在onCreate中哟~View view = getWindow().getDecorView(); WindowManager.LayoutParams lp = (Windo....
分类:
移动开发 时间:
2015-05-05 10:29:30
阅读次数:
180