EditText的自带属性里没有设置边框颜色的有俩种方式可以达到效果一种是网上比较推崇的用图作背景,另一种则是自绘图作背景的:
首先重新定义一个style。在values文件夹下新建一个style.xml文件: 接下来在drawable里添加my_edittext.xml:内容如下
其中ed...
分类:
其他好文 时间:
2014-05-16 03:17:01
阅读次数:
305
实现屏幕的渐渐展开main.xml MainActivity.javapackage
lesson.my.sudoku;import java.util.Timer;import java.util.TimerTask;import
lession.my.sudoku.R;import and...
分类:
其他好文 时间:
2014-05-15 21:34:37
阅读次数:
264
HDU 3555
BOMBhttp://acm.hdu.edu.cn/showproblem.php?pid=3555不能出现相邻的49正在学习。。。会了自己写#includeusing
namespace std;LL dp[21][3],n; int len,bit[21];//dp[i][0]...
分类:
其他好文 时间:
2014-05-15 21:18:59
阅读次数:
293
如果sql文件过大,会出现mysql out of memory
(NeededXXXbytes),或者"MySQL server has gone away"问题;
另外如果sql文件数据有中文,会出现乱码。解决的问题,修改max_allowed_packet参数,在my.ini或者my.cnf文...
分类:
数据库 时间:
2014-05-15 20:54:05
阅读次数:
395
题目链接题目意思: 给出两个字符串a, b, 求最长的公共字串c, c是a的后缀,也是b的前缀.
本题没有具体说明哪个字符串是文本串和匹配串, 所以都要考虑思路: 查找的时候, 当文本串结束的时候, 返回匹配串的位置, 即为c的长度.附上代码: 1
/************************...
分类:
其他好文 时间:
2014-05-15 20:50:22
阅读次数:
385
/*******************************************************
题意:
现在有一个n*m的博物馆g,每一个g[i][j]要不是一个<=2^12
的数,要不就是-1。
如果这个点是-1,表示这个点有一个守卫
否则就是以g[i][j]为关键字规则的宝物。
具体规则是:
现在有12个被编号的点(...
分类:
其他好文 时间:
2014-05-15 20:20:26
阅读次数:
251
Because the 2014 may be the 23rd Anniversary
from theAir Jordan 6, In my opinion so many people are watching the following
New Jordan 6s Releases - Ca...
分类:
其他好文 时间:
2014-05-15 17:55:41
阅读次数:
366
为了解决DNA序列的拼接以及检错,特写一下算法
package my.dna;
/**
*
* @author mabixiang
*
*/
public class Util2 {
public static void main(String[] args) {
String a = "lkjhgfasd";
String b = "sd5sflk";
resemb...
分类:
其他好文 时间:
2014-05-15 13:28:54
阅读次数:
349
原文出处:http://www.lornajane.net/posts/2014/working-with-php-and-beanstalkdWorking
with PHP and BeanstalkdI have just introduced Beanstalkd into my curre...
分类:
Web程序 时间:
2014-05-15 07:35:01
阅读次数:
415