![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Android Tips
noodies
这个作者很懒,什么都没留下…
展开
-
点击AlertDialog的按钮时,不自动关闭对话框
AlertDialog dialog = builder.show();View.OnClickListener clickListener = new View.OnClickListener() { ...}Button btn = dialog.getButton(DialogInterface.BUTTON_POSITIVE);btn.setOnClickListener(cli原创 2013-12-08 21:24:54 · 4596 阅读 · 0 评论 -
显示/隐藏密码切换
TransformationMethod m = null; if (!showPassword) { m = new PasswordTransformationMethod(); }((EditText)view.findViewById(R.id.passwordEditText)).setTransformationMethod(m);原创 2013-12-08 21:28:13 · 3026 阅读 · 0 评论 -
支持https但不验证证书的HttpClient
import java.io.IOException;import java.net.Socket;import java.net.UnknownHostException;import java.security.KeyManagementException;import java.security.KeyStore;import java.security.KeyStore原创 2013-12-10 10:55:29 · 25689 阅读 · 4 评论