Fork me on GitHub
上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 15 下一页
摘要: 1,首先在布局中添加 android:imeOptions="actionSearch 2,然后java代码中设置代码:et_input_password.setOnEditorActionListener(new TextView.OnEditorActionListener() { ... 阅读全文
posted @ 2016-05-04 17:39 程序员小冰 阅读(1341) 评论(0) 推荐(0)
摘要: 解决方案为以下两种: 方法1:在fragmentActivity里oncreate方法判断savedInstanceState==null才生成新Fragment,否则不做处理。 方法2:在fragmentActivity里重写onSaveInstanceState方法,但不做实现,也就是... 阅读全文
posted @ 2016-04-29 11:38 程序员小冰 阅读(809) 评论(0) 推荐(0)
摘要: package com.xiaobing.zhbj.utils;import java.io.BufferedInputStream;import java.io.BufferedOutputStream;import java.io.ByteArrayOutputStream;import j... 阅读全文
posted @ 2016-04-27 23:47 程序员小冰 阅读(185) 评论(0) 推荐(0)
摘要: 传值方法一[java] Intent intent = new Intent(); Bundle bundle = new Bundle(); //该类用作携带数据 bundle.putString("name", "tom"); bundle.putString("ip","8.8.... 阅读全文
posted @ 2016-04-26 14:52 程序员小冰 阅读(334) 评论(0) 推荐(0)
摘要: /** * MD5加码。32位 * @param inStr * @return */ public static String MD5(String inStr) { MessageDigest md5 = null; try... 阅读全文
posted @ 2016-04-23 11:53 程序员小冰 阅读(303) 评论(0) 推荐(0)
摘要: textV.setTextColor(Color.parseColor("#FF0000"));tv_price.setTextColor(getResources().getColor(R.color.img_all_text_color)); 阅读全文
posted @ 2016-04-22 10:34 程序员小冰 阅读(1121) 评论(0) 推荐(0)
摘要: private String generateWord() { String[] beforeShuffle = new String[] { "2", "3", "4", "5", "6", "7", "8", "9", "A", "B", ... 阅读全文
posted @ 2016-04-21 11:28 程序员小冰 阅读(1024) 评论(0) 推荐(0)
摘要: 在开发中我们经常需要把我们的应用设置为全屏,有两种方法,一中是在代码中设置,另一种方法是在配置文件里改! 一、在代码中设置: 代码如下: package com.android.tutor; import android.app.Activity; import android.os.... 阅读全文
posted @ 2016-04-19 15:50 程序员小冰 阅读(702) 评论(0) 推荐(0)
摘要: android:scrollbars="none“ android:listSelector="@null" 阅读全文
posted @ 2016-04-19 09:51 程序员小冰 阅读(313) 评论(0) 推荐(0)
摘要: 没有网络权限也能导致这个问题 也可能是因为模拟机没联网的问题 阅读全文
posted @ 2016-04-19 09:36 程序员小冰 阅读(149) 评论(0) 推荐(0)
上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 15 下一页


Fork me on GitHub