安装/配置: 通过另外一个工具也可以测试手机客户端APP的性能,这就是android开发包中的DDMS工具(Dalvik Debug Monitor Service),先来说一下android开发包的安装: 1、 首先安装JDK,1.5以上的版本 2、 在安装完JDK 后,就需要下载及安装Andro
分类:
移动开发 时间:
2016-02-28 22:52:45
阅读次数:
289
今天在做技术总结,顺便就把知识共享,个人崇尚分享。 通过以下方式来监听是不是发生了应用的前后台切换: 1. android api 10 – 15 通过ActivityManager registerActivityWatcher方法注册IActivityWatcher的方式监听。 2. andro
分类:
移动开发 时间:
2016-02-26 16:59:58
阅读次数:
567
1、布局文件中使用 1 <android.support.v7.widget.RecyclerView 2 android:id="@+id/recycleview" 3 android:paddingLeft="10dp" 4 android:paddingRight="10dp" 5 andro
分类:
其他好文 时间:
2016-02-23 15:54:59
阅读次数:
152
Design Library出来已经快有一个月了,当时大概看了一下介绍这个新版本变化的译文,内容不多,给我印象最深的就是Percent lib、AppBarLayout 和NavigationView的变化,当然还有Design Lib的一些控件内部实现的变化没有介绍,从而使得在使用新版本的控件时候
分类:
其他好文 时间:
2016-02-22 22:06:45
阅读次数:
298
一、简介 二、代码1.java (1)MainActivity.java 1 import android.app.Activity; 2 import android.content.Context; 3 import android.hardware.Sensor; 4 import andro
分类:
移动开发 时间:
2016-02-22 17:35:44
阅读次数:
183
安卓第二天笔记--数据保存 1.保存数据私有文件 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" andro
分类:
移动开发 时间:
2016-02-21 22:40:33
阅读次数:
296
近期更新了自己Android Studio中的SDK到最新版本号,AS的一部分配置改动了。 然后 在打开布局文件的时候 会出现 渲染错误 Rendering problem the rendering library is more recent than your version of andro
分类:
移动开发 时间:
2016-02-21 14:19:31
阅读次数:
180
今天看了鸿洋_大神在慕课网讲的qq5.0侧滑菜单。学了不少的知识,同时也佩服鸿洋_大神思路的清晰。
看了教程课下也自己实现了一下。代码几乎完全相同 别喷我啊。。没办法 o(︶︿︶)o 唉
像素不好 没办法 找不到好的制作gif的软件。
我们暂且称侧滑左边界面的为menu,右边为content
首先是menu的布局
<RelativeLayout xmlns:andro...
分类:
移动开发 时间:
2016-02-19 09:14:29
阅读次数:
283
在手工打造下拉刷新功能 自带的progressBar太丑了 做个也不费事,一个简单的圆形 旋转动画加type是sweep的gradient渐变 <rotate //旋转动画xmlns:android="http://schemas.android.com/apk/res/android" andro
分类:
其他好文 时间:
2016-02-14 14:11:29
阅读次数:
231
<?xml version="1.0" encoding="utf-8"?><ScrollView xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" andro
分类:
其他好文 时间:
2016-02-12 15:10:08
阅读次数:
230