自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

cxcbupt

我的学习记录

  • 博客(9)
  • 资源 (4)
  • 收藏
  • 关注

转载 Requesting Permissions at Run Time

Beginning in Android 6.0 (API level 23), users grant permissions to apps while the app is running, not when they install the app.This approach streamlines the app install process, since the user doe

2016-12-29 10:34:22 330

转载 Things That Cannot Change

Sometimes a developer will make a change to an application that has surprising results when installed as an update to a previous version — shortcuts break, widgets disappear, or it can’t even be insta

2016-12-26 13:21:21 244

转载 Some Tips About Layout Resource

<ViewGroup xmlns:android="http://schemas.android.com/apk/res/android" android:id="@[+][package:]id/resource_name" android:layout_height=["dimension" | "match_parent" | "wrap_content"]

2016-12-15 18:10:29 267

转载 Inset Drawable

A drawable defined in XML that insets another drawable by a specified distance. This is useful when a View needs a background that is smaller than the View's actual bounds.

2016-12-14 21:13:36 313

转载 Launch-Time Performance----Profiling Launch Performance

In order to properly diagnose start time performance, you can track metrics that show how long it takes your application to start.Time to initial displayFrom Android 4.4 (API level 19), logcat

2016-12-13 14:13:00 348

原创 Defining and Enforcing Permissions

To enforce your own permissions, you must first declare them in your AndroidManifest.xml using one or more  elements.For example, an application that wants to control who can start one of its acti

2016-12-09 11:34:40 220

原创 Activity configChanges 含义

我们知道,默认情况下,当系统配置发生改变后(如旋转手机屏幕),Activity会被重新创建.有时候我们并不想Activity被重新创建,这时可以通过在mannifest.xml文件中指定该Activity相应的configChanges属性,以防止该属性发生变化时Activity被重新创建(当指定的属性发生变化时,Activity不会被重新创建,而是调用该Activity的onConfigur

2016-12-09 10:44:35 293

原创 View.setBackgroundResource(int resId)当resId代表的Drawable带有Padding时,会改变View本身的Padding值

View.setBackgroundResource(int resId)源码如下:/** * Set the background to a given Drawable, or remove the background. If the * background has padding, this View's padding is set to the

2016-12-06 16:10:52 959

原创 Activity内嵌Fragment,当Activity recreate时Fragment被添加多次,造成相互遮盖

问题描述:由于某些原因(如旋转屏幕,或内存不足时)造成Activity被destroy ,当再次回到该Activity时,系统会recreate 该Activity , if your activity instance is destroyed and recreated, the state of the layout is restored to its previous state w

2016-12-06 15:16:57 3233

Android图表--achartengine

AChartEngine is a charting library for Android applications It currently supports the following chart types: line chart area chart scatter chart time chart bar chart pie chart bubble chart doughnut chart range high low bar chart dial chart gauge combined any combination of line cubic line scatter bar range bar bubble chart cubic line chart All the above supported chart types can contain multiple series can be displayed with the X axis horizontally default or vertically and support many other custom features The charts can be built as a view that can be added to a view group or as an intent such as it can be used to start an activity ">AChartEngine is a charting library for Android applications It currently supports the following chart types: line chart area chart scatter chart time chart bar chart pie chart bubble chart doughnut chart range high low bar chart dial chart gauge combined any combination of line cubic line s [更多]

2014-10-26

SmartUpload上传及下载

jspSmartUpload是由www.jspsmart.com网站开发的一个可免费使用的全功能的文件上传下载组件,适于嵌入执行上传下载操作的JSP文件中。

2014-09-12

JFreeChart使用相关

JFreeChart是JAVA平台上的一个开放的图表绘制类库。它完全使用JAVA语言编写,是为applications, applets, servlets 以及JSP等使用所设计。 JFreeChart可生成饼图(pie charts)、柱状图(bar charts)、散点图(scatter plots)、时序图(time series)、甘特图(Gantt charts)等等多种图表,并且可以产生PNG和JPEG格式的输出,还可以与PDF和EXCEL关联。

2014-09-11

DAO设计模式Demo

DAO(Data Access Object)是一个数据访问接口,数据访问:顾名思义就是与数据库打交道。夹在业务逻辑与数据库资源中间。 本文按照DAO设计模式的思想,设计并实现了该模式架构。

2014-09-05

空空如也

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

TA关注的人

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