![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
eclipse
徐沫呗
这个作者很懒,什么都没留下…
展开
-
eclipse 的快捷键
eclipse转载 2015-04-29 17:00:36 · 267 阅读 · 0 评论 -
最受欢迎的5个Android ORM框架
原文地址 http://www.codeceo.com/article/5-android-orm-framework.html 本人 mark。在开发Android应用时,保存数据有这么几个方式,一个是本地保存,一个是放在后台(提供API接口),还有一个是放在开放云服务上(如 SyncAdapter 会是一个不错的选择)。对于第一种方式,即本地原创 2016-11-22 14:40:54 · 343 阅读 · 0 评论 -
Sqlite的完美替代者,android数据库新王者——Realm
原文地址 http://www.cnblogs.com/liushilin/p/5752099.html;自己记录一下,有时间去看看。mark;如果你比较关心android开发的最新动态的话,我想你一定知道android数据库新王者,没错,就是这个东西——Realm。在安卓开发中,我们有sharedPreference和文件操作,当然还有一直为之自豪的轻量原创 2016-11-22 14:22:42 · 2139 阅读 · 0 评论 -
android apk 防止反编译技术第一篇-加壳技术
原创文章 请访问 https://my.oschina.net/u/2323218/blog/393372转载 2016-11-18 17:36:27 · 269 阅读 · 0 评论 -
java android 计算两个日期之间的天数
public class Time { public static void main(String[] args) { SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd"); Date date_start = null; Date date_end =原创 2016-10-28 10:46:03 · 13921 阅读 · 0 评论 -
把String 或者 log 写在根目录下的 .txt 里
try { FileWriter fw = new FileWriter(Environment.getExternalStorageDirectory() + "/a1.txt"); fw.flush(); fw.write(string); fw.close();原创 2016-07-24 12:15:57 · 299 阅读 · 0 评论 -
android 判断横竖屏的方法
public boolean isScreenChange() {Configuration mConfiguration = this.getResources().getConfiguration(); //获取设置的配置信息int ori = mConfiguration.orientation ; //获取屏幕方向if(ori == mConfiguration.ORI原创 2016-05-16 17:11:13 · 2363 阅读 · 0 评论 -
double 保留两位小数
/** * double 保留两位小数 * * @param price * @return */public static BigDecimal bigDecimal(double price) { DecimalFormat myformat = new DecimalFormat(); myformat.applyPattern("0.00"); Sys原创 2015-12-24 18:41:34 · 328 阅读 · 0 评论 -
动态改变布局到顶部的距离
FrameLayout.LayoutParams layoutParam = new FrameLayout.LayoutParams( FrameLayout.LayoutParams.FILL_PARENT, FrameLayout.LayoutParams.FILL_PARENT);layoutParam.setMargins(0, 0, 0, 0);frameEmpty.setLayo原创 2016-02-23 15:02:28 · 1093 阅读 · 0 评论 -
android里TextView加下划线
如果是在资源文件里: resources> string name="hello">u>phone:0123456u>string> string name="app_name">MyLinkstring>resources>如果是代码里:TextView textView = (TextView)findViewById(R.id.tv_test); textVi原创 2015-07-21 15:54:45 · 282 阅读 · 0 评论 -
Android Launcher详解
转载连接 http://www.cnblogs.com/mythou/p/3153880.html。转载 2017-03-09 18:55:52 · 678 阅读 · 0 评论