码迷,mamicode.com
首页 >  
搜索关键字:values    ( 8569个结果
【android自己定义控件】自己定义View属性
1、自己定义View的属性2、在View的构造方法中获得我们自己定义的属性3、重写onMesure 4、重写onDraw3这个步骤不是必须,当然了大部分情况下还是须要重写的。1、自己定义View的属性,首先在res/values/ 下建立一个attrs.xml , 在里面定义我们的属性和声明我们的整...
分类:移动开发   时间:2014-09-02 21:15:45    阅读次数:287
Binary Tree Preorder Traversal
问题描述 Given a binary tree, return the preorder traversal of its nodes' values. For example: Given binary tree {1,#,2,3}, 1 2 / 3 return [1,2,3]. Note: Recurs...
分类:其他好文   时间:2014-09-02 17:50:45    阅读次数:136
MySQL表操作之增删查改
01 插入数据 INSERT INSERT INTO `table_name` ( `column01_name` , `column02_name` , ... ) VALUES ( value01 , value02 , ...) 02 查询数据 SELECT SELECT *...
分类:数据库   时间:2014-09-02 15:40:54    阅读次数:198
并发基本名词解释
Intra-thread semantics(线程内语义):             The memory model determines what values can be read at every point in the program. The actions of each thread in isolation must behave as governed by the se...
分类:其他好文   时间:2014-09-02 14:14:25    阅读次数:493
Android -- 使用主题配置文件,去掉程序启动界面的短暂黑屏
关于黑屏默认的情况下,程序启动时,会有一个黑屏的时期,原因是,首个activity会加载一些数据,比如初始化列表数据等.去除步骤1./res/values/styles.xml 在 Theme 中,添加一个 android:windowBackgrounds 属性,设置需要的图片2.在 Androi...
分类:移动开发   时间:2014-09-02 12:05:24    阅读次数:213
android选中radiobutton后改变TextColor
首先,看下效果图,以护照为例然后选中护照后可以看到 字体由黑色变成了白色下面说下实现方法。首先 在values文件夹下的color.xml文件中加入标签的颜色然后在drawable文件夹下新建xml文件,输入内容。如果要写true事件TextColor变色,那一定还要写上当false的时候TextC...
分类:移动开发   时间:2014-09-02 10:16:44    阅读次数:485
Linux -- groupadd
GROUPADD(8) 系统管理命令 GROUPADD(8)名称 groupadd - 创建一个新组大纲 groupadd [选项] group描述 The groupadd command creates a new group account using the values specified...
分类:系统相关   时间:2014-09-02 00:04:23    阅读次数:434
LeetCode: Gray Code
LeetCode: Gray CodeThe gray code is a binary numeral system where two successive values differ in only one bit.Given a non-negative integer n represen...
分类:其他好文   时间:2014-09-01 22:31:13    阅读次数:289
switch case 的值
switch(value), 这个value只能使用能够转int类型的类型。如 char String int enum >>> Only convertible int values, strings or enum variables are permittedcase 必须和value的类型一...
分类:其他好文   时间:2014-09-01 19:30:43    阅读次数:215
java map遍历
1.最常规的一种遍历方法,最常规就是最常用的,虽然不复杂,但很重要,这是我们最熟悉的,就不多说了!! public static void work(Map map) { Collection c = map.values(); Iterator it = c.it...
分类:编程语言   时间:2014-09-01 17:18:53    阅读次数:170
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!