自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(17)
  • 收藏
  • 关注

转载 Android:EditText 设置弹出数字输入法键盘

<EditText android:id="@+id/tele_number" android:layout_width="match_parent" android:layout_height="wrap_content" android:textSize="22dp"...

2019-03-21 20:54:00 2749

转载 Android: EditText中singleLine过期替代方法

设置属性:android:lines="1"转载于:https://www.cnblogs.com/Rainm/p/10574516.html

2019-03-21 20:51:00 284

转载 C#: WPF多线程UI更新——两种方法

地址:http://www.cnblogs.com/Jarvin/p/3756061.html转载于:https://www.cnblogs.com/Rainm/p/10551085.html

2019-03-18 11:17:00 1106

转载 C#: 获取代码执行时间(精确到毫秒)

private void Time(int i){ Stopwatch sw = new Stopwatch(); sw.Start(); Thread.Sleep(i); sw.Stop(); Console.WriteLine(sw.ElapsedTicks / (decimal)Stopwatch.Frequency * 1000);...

2019-03-18 11:16:00 2001

转载 Android:通过view获得的context来获取Activity的名字

1 public static Activity getActivityByContext(Context context){2 while(context instanceof ContextWrapper){3 if(context instanceof Activity){4 return (A...

2019-03-17 16:45:00 1723

转载 Android:通过Glide保存图片到本地,并同步到相册

1 save.setOnClickListener(new View.OnClickListener() { 2 @Override 3 public void onClick(View v) { 4 Glide.with(itemActivity.this) 5...

2019-03-17 16:36:00 2054

转载 Android:获取指定文件夹内的所有图片

1 public static List<String> getFilesAllName(String path){ 2 //传入指定文件夹的路径    File file = new File(path); 3 File[] files = file.listFiles(); 4 List<String> imagePa...

2019-03-17 16:35:00 3219

转载 ListView长按事件返回值为true和false的选择

ListView长按事件为setOnItenLongClickListener,最后返回为true避免与onItemClick事件冲突转载于:https://www.cnblogs.com/Rainm/p/10019224.html

2018-11-26 11:09:00 196

转载 PHP使用之实现弹出消息提示框的两种方法

原文:https://blog.csdn.net/tianchao7c/article/details/41978963方法一:echo "<script>alert('提示内容')</script>";方法二:1 echo '<script language="JavaScript">;alert("这是");locati...

2018-10-05 18:39:00 191

转载 用a标签实现submit提交按钮的效果

原文出处:https://www.cnblogs.com/shadada/p/9116455.html1 <form action="test.jsp" method="post" id="myform">2 3   名字:<input type="text" name="stu_n"/>4 5 </form>6 <a...

2018-10-05 17:30:00 1372

转载 Git操作

文章原文:https://www.liaoxuefeng.com/wiki/0013739516305929606dd18361248578c67b8067c8c017b000注意问题:  1、目录名要避免含有中文  2、编译文本时,编译器要使用标准的UTF-8编码,所有语言使用同一种编码,既没有冲突,又被所有平台所支持。  3、在Git中,用HEAD表示当前版本,上一个...

2018-09-25 12:13:00 109

转载 PHP学习笔记

1.CSS的引入方式1、嵌入式  通过<style></style>来书写CSS代码,但是只能用于当前网页,不能被其他网页共享,虽然<style>标记可以放在网页的任何地方,但是一般放在<head>内。2、外联式  通过<link>标记来引入外部的CSS文件(.css),可以被其它网页共享。 pinlic.css...

2018-09-25 10:29:00 90

转载 Mini program

1.Shopping cart 1 # bug分开添加同一种商品到购物车的时候 会以两种商品打印 2 # 未对用户输入的字符串进行判断 3 goods_name = [ 4 {"Name": "MI 8", "Price": 3699}, 5 {"Name": "MI 6", "Price": 2699}, 6 {"Name": "M...

2018-09-10 11:22:00 545

转载 Some question code

# 使用while和for循环分别打印字符串s=’asdfer’中每个元素。# s = "asdfer"## for i in s:# print(i)## i = 0# while i < len(s):# print(s[i])# i += 1# 如:content = input(‘请输入内容:’) # ...

2018-09-08 15:19:00 5769

转载 Important thing

1 '''2 bit_length3 1 0000 0001 14 2 0000 0010 25 3 0000 0011 26 '''# 类型转化注意点1 # int 转 str 无限制2 # str 转 int 只有字符串为数字的时候可以转3 # int 转 bool 只要是非零就是True else...

2018-09-05 08:30:00 115

转载 Python day2

#bit_length() 当十进制用二进制表示时,最少使用的位数1 '''2 bit_length3 1 0000 0001 14 2 0000 0010 25 3 0000 0011 26 '''# 转化规则1 # int 转 str 无限制2 # str 转 int 只有字符串为数字的时候可以转...

2018-09-03 20:47:00 83

转载 Python day1

# ascii 只能显示英文,特殊字符和数字# 万国码:unicode 最开始为16位,之后为32字节# 升级版:utf-8 utf-16 utf-32# utf-8: 最少用一个字节,一个字节表示一个英文# 欧洲16位,两个字节# 亚洲24位 三个字节# gbk 国产编译器。只能用于中文和ascii码中的文字注释'''#多行注释(这位单行注释)print('你好...

2018-08-28 16:59:00 117

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除