自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

请叫我搞向

求带走

  • 博客(15)
  • 资源 (1)
  • 收藏
  • 关注

转载 Understanding Android Core: Looper, Handler, and HandlerThread

This Article covers Android Looper, Handler, and HandlerThread. These are among the building blocks of Android OS. In my own experience, I have used them in a very limited context until recently. My

2017-05-11 14:22:55 599

转载 Gravity and layout gravity

# Gravity and layout gravity #android:layout_gravityandroid:layout_gravity is used to set the position of an element in its parent (e.g. a child View inside a Layout).Supported by LinearLayout and Fr

2017-05-11 10:37:07 664

原创 LayoutPrams

A layout defines the visual structure for a user interface, such as an activity or widget.A layout is declared in XML, including screen elements that will appear in it. Code can be added to the applica

2017-05-10 23:38:59 649

转载 MediaPlayer

# Basic creation and playing #MediaPlayer class can be used to control playback of audio/video files and streams.Creation of MediaPlayer object can be of three types:Media from local resourceMediaPlay

2017-05-10 16:57:55 557

转载 浅谈 MVP in Android

一、概述对于MVP(Model View Presenter),大多数人都能说出一二:“MVC的演化版本”,“让Model和View完全解耦”等等。本篇博文仅是为了做下记录,提出一些自己的看法,和帮助大家如何针对一个Activity页面去编写针对MVP风格的代码。对于MVP,我的内心有一个问题: 为何这个模式出来后,就能被广大的Android的程序员接受呢?问了些程序员,他们对于MVP的普遍的

2017-05-10 16:33:11 454

转载 Android Canvas 方法总结

简介在自定义 View的时候,我们经常需要绘制一些自己想要的效果。 这里就需要使用Canvas对象。 下面将Canvas对象常用方法做个笔记,方便记忆。对Canvas进行操作对Canvas的一系列操作,是指对Canvas进行旋转、平移、缩放等操作。 这些操作可以让Canvas对象使用起来更加便捷。Canvas平移/** * 画布向(100,50)方向平移 * * 参数1: 向X轴

2017-05-10 11:55:49 561

转载 Android Canvas绘图详解

Android中使用图形处理引擎,2D部分是android SDK内部自己提供,3D部分是用Open GL ES 1.0。今天我们主要要了解的是2D相关的,如果你想看3D的话那么可以跳过这篇文章。大部分2D使用的api都在android.graphics和android.graphics.drawable包中。他们提供了图形处理相关的: Canvas、ColorFilter、Point(点)和Ret

2017-05-09 21:23:55 414

原创 ContentProvider

1) Create a Contract ClassA contract class defines constants that help applications work with the content URIs, column names, intent actions, and other features of a content provider. Contract classes

2017-05-09 18:20:15 328

转载 Using the Android Parcel

A short definition of an Android Parcel would be that of a message container for lightweight, high-performance Inter-process communication (IPC). On Android, a “process” is a standard Linux one, and o

2017-05-09 12:41:31 439

转载 史上最全干货:Android中的Intent

IntentIntents are small messages that can be passed around the Android system. These messages hold information about our intention to perform some task.From Android developers: It is basically a passiv

2017-05-08 23:13:14 987

原创 Android中两个Activity之间数据传递及返回

下面通过一个例子来详细说明先上代码,再细细分析MainActivitypublic class MainActivity extends Activity { private Button mainBtn=null; private final static int REQUEST_CODE=1; /** Called when the activity is

2017-05-08 18:27:34 1581

转载 Android开发之旅:android架构

架构图直观下面这张图展示了Android系统的主要组成部分:可以很明显看出,Android系统架构由5部分组成,分别是:Linux Kernel、Android Runtime、Libraries、Application Framework、Applications。第二部分将详细介绍这5个部分。Linux KernelAndroid基于Linux 2.6提供核心系统服务,例如:安全、内存管理、进程

2017-05-08 17:52:46 392

转载 Android基础入门

Android项目目录结构src:项目的java代码genbuildConfig:应用是否可以debugR:保存项目中使用的资源的idAndroid.jar:导入这个包,应用才可以使用Android的apilibs:存放第三方jar包assets:资源文件夹,存放视频或者音乐等较大的资源文件bin:存放应用打包编译后的文件res:资源文件夹,在这个文件夹中的所有资源,都会有资源id,读取时通过

2017-05-08 12:42:59 496 1

转载 Android总结篇系列:Activity生命周期

Android官方文档和其他不少资料都对Activity生命周期进行了详细介绍,在结合资料和项目开发过程中遇到的问题,本文将对Activity生命周期进行一次总结。Activity是由Activity栈进管理,当来到一个新的Activity后,此Activity将被加入到Activity栈顶,之前的Activity位于此Activity底部。Acitivity一般意义上有四种状态:1.当Activi

2017-05-08 12:33:47 347

原创 比特承诺 Bit Commitment

转者注:最近再看量子比特承诺,这里用到了经典信息论(密码学)中的比特承诺 转自:http://blog.csdn.net/mrcharles/article/details/52874483Introduction—A storyAlice:股票经纪人 Bob:股民 Alice:你的钱交给我,我替你买股票,我专业,挣钱多! Bob:怎么证明? Alice:我们上月买进的10只股票都上涨了10

2017-05-08 12:22:54 1441

c语言记事本

c语言写的记事本程序,可以实现新建记事本,删除记事本,显示记事本,等基本操作,大一写的小程序,至少应付什么工程实践项目是够了。

2015-09-15

空空如也

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

TA关注的人

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