之前做国际化的时间,每次写一个国际化的字符串都要到.strings里面对应添加资源,这样很容易遗忘掉一些国际换的资源。而且写起来很麻烦。一个个写太费劲了。今天心血来潮,正好考虑到国际化的事情,就上网查看了下资料,果然有利器啊。之前写国际化的方法 太low了。下面一一道来。test:1,首先,新建一个...
                            
                            
                                分类:
移动开发   时间:
2014-12-12 11:18:08   
                                阅读次数:
197
                             
                    
                        
                            
                            
                                原文链接 http://blog.csdn.net/yaochunnian/article/details/7261006grep 文件报错 “Binary file ... matches” 原因:文件为binary文件解决:strings vers.log.2010-03-09 | grep ....
                            
                            
                                分类:
其他好文   时间:
2014-12-10 22:48:31   
                                阅读次数:
178
                             
                    
                        
                            
                            
                                Given an array of strings, return all groups of strings that are anagrams.Note: All inputs will be in lower-case.分析:此题的题意不是很明确,意思重新表述应该是一组string里面,有几个...
                            
                            
                                分类:
其他好文   时间:
2014-12-10 22:28:44   
                                阅读次数:
294
                             
                    
                        
                            
                            
                                android控件开发之Spinner控件
概述:android中,Spinner控件主要是用来显示下拉列表,同时,用户可以选择列表中的数据,作为当前的选择
java代码:
此代码中使用了两种方法给Spinner提供数据(method 1和method 2)。运行时任选其一即可
方法一:
使用的动态list的形式给Spinner提供数据
方法二:
使用的Strings...
                            
                            
                                分类:
移动开发   时间:
2014-12-10 18:14:22   
                                阅读次数:
196
                             
                    
                        
                            
                            
                                Add BinaryGiven two binary strings, return their sum (also a binary string).For example,a ="11"b ="1"Return"100".先进行对齐操作,然后从右往左逐位相加,注意进位即可。代码写的比较长,但是很...
                            
                            
                                分类:
其他好文   时间:
2014-12-10 12:20:23   
                                阅读次数:
196
                             
                    
                        
                            
                            
                                android:installLocationThe default install location for the application.The following keyword strings are accepted:ValueDescription"internalOnly"The a...
                            
                            
                                分类:
移动开发   时间:
2014-12-09 15:33:06   
                                阅读次数:
183
                             
                    
                        
                            
                            
                                Given a stringS, find the longest palindromic substring inS. You may assume that the maximum length ofSis 1000, and there exists one unique longest pa...
                            
                            
                                分类:
其他好文   时间:
2014-12-09 13:44:16   
                                阅读次数:
210
                             
                    
                        
                            
                            
                                Write a function to find the longest common prefix string amongst an array of strings.分析:这道题没什么好方法,暴力搜索比较即可,在用C++实现时有一个小trick就是"Ifposis equal to thest...
                            
                            
                                分类:
其他好文   时间:
2014-12-09 13:42:01   
                                阅读次数:
143
                             
                    
                        
                            
                            
                                1)TD项目修改alps\mediatek\source\frameworks\base\core\res\res\values\Strings.xml中
的wifi_tether_configure_ssid_default_for_cmcc变量
2)非TD项目修改alps\frameworks\base\core\res\res\values\strings.xml中的wifi_tethe...
                            
                            
                                分类:
移动开发   时间:
2014-12-09 10:40:00   
                                阅读次数:
177
                             
                    
                        
                            
                            
                                Guava
一.Strings
1.Strings.padEnd方法
//padEnd普全右
		String a="12345";
		String b=Strings.padEnd(a, 10, 'x');
		System.out.println(b);
结果为:12345xxxxx
2.Strings.padStart方法
//padStart 普全左
		String a="12345...
                            
                            
                                分类:
其他好文   时间:
2014-12-08 21:32:39   
                                阅读次数:
254