上一页 1 ··· 140 141 142 143 144 145 146 147 148 ··· 340 下一页
摘要: Android 各种按钮点击效果以及兼容性问题总结 阅读全文
posted @ 2016-07-16 14:03 星辰之力 阅读(344) 评论(0) 推荐(0)
摘要: ToolBar与AppcompatAcitivity实现浸入式Statusbar效果 阅读全文
posted @ 2016-07-16 13:55 星辰之力 阅读(195) 评论(0) 推荐(0)
摘要: Android ServiceConnection 阅读全文
posted @ 2016-07-16 13:05 星辰之力 阅读(323) 评论(0) 推荐(0)
摘要: ServiceConnection类中的两个方法非别在服务连接成功时、不成功时调用。其中onServiceDisconnected()方法在连接正常关闭的情况下是不会被调用的, 该方法只在Service 被破坏了或者被杀死的时候调用.例如, 系统资源不足, 要关闭一些Services, 刚好连接绑定 阅读全文
posted @ 2016-07-16 13:04 星辰之力 阅读(1070) 评论(0) 推荐(0)
摘要: 自定义ActionProvider ToolBar 自定义Menu小红点 阅读全文
posted @ 2016-07-16 12:59 星辰之力 阅读(728) 评论(0) 推荐(0)
摘要: 一、Socket通信简介 Android与服务器的通信方式主要有两种,一是Http通信,一是Socket通信。两者的最大差异在于,http连接使用的是“请求—响应方式”,即在请求时建立连接通道,当客户端向服务器发送请求后,服务器端才能向客户端返回数据。而Socket通信则是在双方建立起连接后就可以直 阅读全文
posted @ 2016-07-16 10:27 星辰之力 阅读(70197) 评论(2) 推荐(1)
摘要: Reference 是一个抽象类,而 SoftReference,WeakReference,PhantomReference 以及 FinalReference 都是继承它的具体类。接下来我们来分别介绍和分析强引用以及 java.lang.ref 包下各种虚引用的特性及用法。StrongRefer 阅读全文
posted @ 2016-07-16 10:23 星辰之力 阅读(476) 评论(0) 推荐(0)
摘要: 在Android 5.0 中 Switch 更新了样式 变得 比较好用了 但是在5.0 以下的版本 还是老样子 不实用 因此 就有了 SwitchCompat 来兼容 它是v7 包中的 因此可兼容到 2.1 使用时 写一下布局即可。 这个switch 默认是 粉红色的 有的时候我们需要设置成和我们的 阅读全文
posted @ 2016-07-16 10:10 星辰之力 阅读(10901) 评论(0) 推荐(0)
摘要: android.support.v7.widget.AppCompatEditText 只有浮动标签 style中添加 XML 有错误提示的 style中添加 Xml中添加app:errorEnabled="true" 代码设置 til_Password.setError("请输入密... 阅读全文
posted @ 2016-07-16 10:07 星辰之力 阅读(10468) 评论(0) 推荐(0)
摘要: 1 Process.killProcess 和 System.exit(0) 两个都会 kill 掉当前进程。 你可以打开 DDMS 查看进程号,或 adb shell 进入 shell 然后 ps 一下,进程确实被 kill 掉了。 2 如果是在第一个 Activity 调用 Process.ki 阅读全文
posted @ 2016-07-15 23:12 星辰之力 阅读(452) 评论(0) 推荐(0)
上一页 1 ··· 140 141 142 143 144 145 146 147 148 ··· 340 下一页