自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(13)
  • 资源 (2)
  • 收藏
  • 关注

转载 单例模式

一、懒汉式单例 java中单例模式是一种常见的设计模式,单例模式的写法有好几种,这里主要介绍三种:懒汉式单例、饿汉式单例、登记式单例。   单例模式有以下特点:   1、单例类只能有一个实例。   2、单例类必须自己创建自己的唯一实例。   3、单例类必须给所有其他对象提供这一实例。   单例模式确保某个类只有一个实例,而且自行实例化并向整个系统提供这个实例。//懒汉式单例类.在第一次调用

2016-07-31 21:54:22 204

翻译 Material Design for Developers

material design specification. google training Material design is a comprehensive guide for visual, motion, and interaction design across platforms and devices. To use material design in your Android

2016-07-27 17:33:20 455

翻译 Android Training--Managing the System UI

Dimming the System BarsThis lesson describes how to dim the system bars (that is, the status and the navigation bars) on Android 4.0 (API level 14) and higher. Android does not provide a built-in way t

2016-07-27 16:55:18 522

翻译 Android Training--SnackBar

Building and Displaying a Pop-Up MessageYou can use a Snackbar to display a brief message to the user. The message automatically goes away after a short period. A Snackbar is ideal for brief messages t

2016-07-26 23:08:17 372

转载 最详细的 Android Toolbar 开发实践总结

toolbar 详解文章 http://www.codeceo.com/article/android-toolbar-develop.html

2016-07-26 22:27:12 182

翻译 Android Training--Supporting Different Screen Sizes

Use Size QualifiersThere’s only so much mileage you can get from a flexible layout or relative layout like the one in the previous sections. While those layouts adapt to different screens by stretching

2016-07-25 22:32:16 634

原创 Android 进阶知识点整理

qq群里发的问题,慢慢整理答案设计模式六大原则1 单一职责原则: 不要存在多于一个导致类变更的原因。通俗的说:即一个类只负责一项职责。2 里氏替换原则: 所有引用基类的地方必须能透明地使用其子类的对象。 通俗的说:当使用继承时。类 B 继承类 A 时,除添加新的方法完成新增功能外,尽量不要重写父类 A的方法, 也尽量不要重载父类 A 的方法。 如果子类对这些非抽象方法任意修改, 就会对整个继

2016-07-25 14:53:45 1026

转载 99%的人都理解错了HTTP中GET与POST的区别

GET和POST是HTTP请求的两种基本方法,要说它们的区别,接触过WEB开发的人都能说出一二。最直观的区别就是GET把参数包含在URL中,POST通过request body传递参数。 你可能自己写过无数个GET和POST请求,或者已经看过很多权威网站总结出的他们的区别,你非常清楚知道什么时候该用什么。 当你在面试中被问到这个问题,你的内心充满了自信和喜悦。 你轻轻松松的给出了一个“标准答案

2016-07-25 11:07:14 528

转载 欢迎使用CSDN-markdown编辑器

欢迎使用Markdown编辑器写博客本Markdown编辑器使用StackEdit修改而来,用它写博客,将会带来全新的体验哦:Markdown和扩展Markdown简洁的语法代码块高亮图片链接和图片上传LaTex数学公式UML序列图和流程图离线写博客导入导出Markdown文件丰富的快捷键快捷键加粗 Ctrl + B 斜体 Ctrl + I 引用 Ctrl

2016-07-25 10:52:37 164

翻译 Android Training--Intent

创建Intent后,查看是否有应用处理// Build the intentUri location = Uri.parse("geo:0,0?q=1600+Amphitheatre+Parkway,+Mountain+View,+California");Intent mapIntent = new Intent(Intent.ACTION_VIEW, location);// Verify

2016-07-24 22:14:58 221

翻译 Android Training--Fragment

动态添加Fragment public class MainActivity extends FragmentActivity { &Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState);

2016-07-24 16:43:49 244

转载 判断屏幕大小和分辨率

//Determine screen sizeif ((getResources().getConfiguration().screenLayout & Configuration.SCREENLAYOUT_SIZE_MASK) == Configuration.SCREENLAYOUT_SIZE_LARGE) { Toast.makeText(this, "Large screen",

2016-07-13 13:48:28 2242

原创 LogUtils工具栏

public class LogUtils{ private LogUtils() { /* cannot be instantiated */ throw new UnsupportedOperationException("cannot be instantiated"); } public static boolean isDebug = true;// 是否需要打印b

2016-07-05 11:14:45 297

SourceCodePro 代码字体下载

SourceCodePro 代码字体下载, adobe推出, 适合任何代码编写

2015-09-19

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除