代码改变世界

阅读排行榜

CheckBox in ListView

2013-06-20 15:48 by java20130722, 234 阅读, 收藏,
摘要: CheckBox in ListViewListview 在android中是经常用的组件,一些特殊情况下,系统提供的list view item 不够用, 不能满足需求,那么就需要自定义listView。如果在listview的item里面需要有一个CheckBox 和 2 个 TextView(like gmail app list item),那么需要自定义list item layout和自定义adapter。有个简单list item(例子里面只显示一行内容): 当一个list view 的item里面有Button 或者是CheckBox等空间,会导致l... 阅读全文

自定义Dialog之Progress(二)

2013-05-28 19:45 by java20130722, 234 阅读, 收藏,
摘要: 自定义Dialog之Progress(二)系统的Dialog一般是适合UI设计的需求,那么就需要自定义的ProgressDialog.第一想法就是能在应用级别全局改变应用的ProgressDialog的样式。(已经试过,没有成功)做法是:@style/theme.customer_progress_dialog@style/theme.customer_progress_dialog 是自定义的theme如果有成功的,希望能分享下,谢谢。第二种做法是自定义theme, 然后定义一个ProgressDialog:CustomProgressDialog. 在应用里面就用这个.自定义theme:@ 阅读全文

Head Fisrt Android Development读书笔记(7)Multi Screep Apps

2012-10-19 10:27 by java20130722, 234 阅读, 收藏,
摘要: Screen Navigation1.Create a new Activity and configure it to use a new Layout2.Create an Intent3.Call startActivity or startActvityForResult to launch a new screen4.onActivityResult to deal with data result from launched activityNew Menu Steps1.Create a new menu XML file from the new XML file wizard 阅读全文

ANSI编码字符转化为UNICODE编码字符

2012-04-13 11:01 by java20130722, 234 阅读, 收藏,
摘要: WCHAR* S2W(char* ansi) { int i; WCHAR* unicode; unicode = (WCHAR*) malloc ((strlen(ansi)+2)*sizeof(WCHAR)); for (i = 0; i<(signed)strlen(ansi)+1; i++) unicode[i] = ansi[i]; unicode[i] = 0; return unicode; } 记得最后要释放unicode指针。 阅读全文

Hive官方手册翻译(Getting Started)

2013-02-27 15:58 by java20130722, 233 阅读, 收藏,
摘要: 翻译Hive官方文档系列,文中括号中包含 注: 字样的,为我自行标注的,水平有限,翻译不是完美无缺的。如有疑问,请参照Hive官方文档对照查看。内容列表Cloudera制作的Hive介绍视频安装与配置系统需求安装Hive发行版从Hive源码编译运行Hive配置管理概览运行时配置Hive, Map-Reduce 与本地模式错误日志DDL 操作元数据存储DML 操作SQL 操作查询示例SELECTS 和 FILTERSGROUP BYJOINMULTITABLE INSERTSTREAMINGSimple Example Use CasesMovieLens User RatingsApache 阅读全文
上一页 1 ··· 74 75 76 77 78 79 80 81 82 ··· 115 下一页