摘要: 然后在java中 阅读全文
posted @ 2019-03-21 20:54 Rainm 阅读(3813) 评论(0) 推荐(0) 编辑
摘要: 设置属性:android:lines="1" 阅读全文
posted @ 2019-03-21 20:51 Rainm 阅读(826) 评论(0) 推荐(0) 编辑
摘要: 地址:http://www.cnblogs.com/Jarvin/p/3756061.html 阅读全文
posted @ 2019-03-18 11:17 Rainm 阅读(683) 评论(0) 推荐(0) 编辑
摘要: private void Time(int i) { Stopwatch sw = new Stopwatch(); sw.Start(); Thread.Sleep(i); sw.Stop(); Console.WriteLine(sw.ElapsedTicks / (decimal)Stopwatch.Frequency * 1000); } 阅读全文
posted @ 2019-03-18 11:16 Rainm 阅读(4157) 评论(0) 推荐(0) 编辑
摘要: 通过该方法返回的活动实例, 然后在调用Activity的 阅读全文
posted @ 2019-03-17 16:45 Rainm 阅读(6322) 评论(0) 推荐(0) 编辑
摘要: 1 save.setOnClickListener(new View.OnClickListener() { 2 @Override 3 public void onClick(View v) { 4 Glide.with(itemActivity.this) 5 ... 阅读全文
posted @ 2019-03-17 16:36 Rainm 阅读(6675) 评论(0) 推荐(0) 编辑
摘要: 1 public static List getFilesAllName(String path){ 2 //传入指定文件夹的路径 File file = new File(path); 3 File[] files = file.listFiles(); 4 List imagePaths = new ArrayList(); 5 for(int... 阅读全文
posted @ 2019-03-17 16:35 Rainm 阅读(2700) 评论(0) 推荐(0) 编辑
摘要: ListView长按事件为setOnItenLongClickListener,最后返回为true避免与onItemClick事件冲突 阅读全文
posted @ 2018-11-26 11:09 Rainm 阅读(225) 评论(0) 推荐(0) 编辑
摘要: 原文:https://blog.csdn.net/tianchao7c/article/details/41978963 方法一: 方法二: 阅读全文
posted @ 2018-10-05 18:39 Rainm 阅读(23361) 评论(0) 推荐(0) 编辑
摘要: 原文出处:https://www.cnblogs.com/shadada/p/9116455.html 具体思路:用a标签的onclick事件 获取表单的id 执行form表单的提交操作,也就是执行submit事件。 阅读全文
posted @ 2018-10-05 17:30 Rainm 阅读(4804) 评论(0) 推荐(0) 编辑