
工具类
Hi_AndG
接下来的一段时间内,我将整理之前学习android时候的笔记
展开
-
自定义了一个标题栏类TitleLayout
直接上代码,大家在以后的开发中根据实际需求可以做一些修改。原创 2016-12-09 21:24:55 · 796 阅读 · 0 评论 -
Activity进阶
ActivityManager负责创建Activity的实例并调用其onCreate()方法package com.atguigu.geoquiz;import android.app.Activity;import android.content.Intent;import android.os.Bundle;import android.view.View;import android.原创 2017-01-03 16:37:47 · 377 阅读 · 0 评论 -
Android热修复
1.什么是热修复 如果一个项目已经上线,出现了严重BUG,那么你第一反应是推送新版本,而热修复就是推送一个补丁文件到客户端,用户打开应用时自动安装。AndFix,全称是Android hot-fix。是阿里开源的一个Android热补丁框架,允许APP在不重新发布版本的情况下修复线上的bug。AndFix注意的地方 1.不支持添加字段,方法,资源布局修改,类 2.虽然不支持添加字段,但是你可以翻译 2017-01-05 19:11:22 · 290 阅读 · 0 评论 -
自定义通知(推送)效果
一般只有当程序进入到后台的时候我们才需要使用通知。 步骤: ①创建一个NotificationManager来对通知进行管理(getSystemService()获取实例) ②使用Builder构造器来创建一个Notification对象(使用V4包),最后都要调用build()方法 ③调用NotificationManager的notify()方法 ④点击效果的实现pendingInte原创 2017-01-11 17:32:06 · 717 阅读 · 0 评论 -
GitHub使用教程
1.找到GitBash并打开 git config –global user.name “用户名” git config –global user.email “邮箱” 去掉用户名和邮箱可以检查配置是否成功 2.创建仓库 cd 指定文件目录 C:/Users/lenovo/Desktop/MyApplication/lbstest git init 3.提交代码 只需要使用add和原创 2017-01-20 03:11:39 · 475 阅读 · 0 评论 -
GreenDao3.2.0使用教程
1、在app的Gradle中配置:apply plugin: 'org.greenrobot.greendao' dependencies { compile 'org.greenrobot:greendao:3.2.0'}2、在project的Gradle中配置:buildscript { repositories { jcenter()转载 2017-01-23 20:46:42 · 10384 阅读 · 2 评论 -
RxJava学习笔记
1.概念:扩展的观察者模式 RxJava的异步实现,是通过一种扩展的观察者模式来实现的。 观察者模式: A 对象(观察者)对 B 对象(被观察者)的某种变化高度敏感,需要在 B 变化的一瞬间做出反应。观察者不需要时刻盯着被观察者(例如 A 不需要每过 2ms 就检查一次 B 的状态),而是采用注册(Register)或者称为订阅(Subscribe)的方式,告诉被观察者:我需要转载 2017-01-24 02:49:04 · 601 阅读 · 0 评论 -
GreenDao3.2的使用
1、在app的Gradle中配置:apply plugin: 'org.greenrobot.greendao' dependencies { compile 'org.greenrobot:greendao:3.2.0'}2、在project的Gradle中配置:buildscript { repositories { jcenter()转载 2017-01-25 13:47:43 · 2503 阅读 · 0 评论 -
Tools在android开发中的应用
<ListView android:id="@+id/one" tools:listfooter="@layout/content_layout" tools:listitem="@layout/content_list_item" android:layout_width="match_parent" ...转载 2018-02-08 10:07:12 · 285 阅读 · 0 评论