Fluid
  • Home
  • Archives
  • Categories
  • Tags
  • About

kotlin_begin

Kotlin in Action函数类型1val d: (String, Int) -> Unit // 函数类型 (String,Int) 接收参数 , Unit 返回类型 kotlin lambda 1234567891011121314151617181920212223242526272829303132333435363738 val list
2019-11-02
Kotlin

room

https://developer.android.com/training/data-storage/room Room https://codelabs.developers.google.com/codelabs/android-room-with-a-view/#0 https://codelabs.developers.google.com/codelabs/android-room-w
2019-09-20
ANDROID
#DB

RxJava02

操作符 retryWhen retryWhen是收到onError后触发是否要重订阅的询问,而repeatWhen是通过onComplete触发。 https://blog.csdn.net/qq_35599978/article/details/80290252 https://www.jianshu.com/p/d135f19e045c zip专用于合并事件,该合并不是连接(连接操作符后
2019-09-19
ANDROID
#RxJava

ThreadStop

https://segmentfault.com/a/1190000007961347 https://www.cnblogs.com/xingele0917/p/3994468.html
2019-08-30
JAVA

GreenDao

基本使用数据库定义 Bean schema:告知GreenDao当前实体属于哪个schema active:标记一个实体处于活跃状态,活动实体有更新、删除和刷新方法 nameInDb:在数据库中使用的别名,默认使用的是实体的类名 indexes:定义索引,可以跨越多个列 createInDb:标记创建数据库表 基础属性注解 @Id:主键 Long 型,可以通过@Id(autoincre
2019-08-12
ANDROID
#DB

Binder

IPC方式信号量 共享内存 : 容易导致同步问题。因为用户端没法解决。 Socket Binder: 服务端映射后, 官方解决了同步问题。 多进程作用 Binder流程![](Binder/2021-08-11 _8.31_binder_over.png) Binder机制mmap作用让一块虚拟内存 指向一块已知的物理内存。 这个物理内存是binder提供的。 传统进程通信 Binde
2019-08-11
#AOSP

Gradient

LinearGradient1234567891011121314151617181920212223/** * LinearGradient * Create a shader that draws a linear gradient along a line. * * @param x0 The x-coordinate for the start of the gradi
2019-07-22
VIEW

TEST_Robolectric

robolectric https://github.com/robolectric/robolectric google官方 Fragment测试方法 https://developer.android.google.cn/training/basics/fragments/testing 谷歌官方推荐的开源测试框架 Robolectric就是这么一个工具,简单来说它实现了一套可以在JVM上运行
2019-06-13
TEST
#Test

PrincipleComputer

进制运算的基本知识整数二进制2进制转10进制: 重复除2取余数 小数二进制 :𝑁= 0.11001 =1∗2−1+1∗2−2+1∗2−5=0.78125=25 / 32 (小数)十进制转换二进制:重复相乘法 二进制数据的表示方法原码 原码表示法 使用0表示正数、1表示负数 规定符号位位于数值第一位 表达简单明了,是人类最容易理解的表示法 0有两种表示方法:00 , 10 缺陷 但是
2019-04-08
Organization

Popupwindow

使用showAtLocation1234public void showAtLocation(View parent, int gravity, int x, int y) { mParentRootView = new WeakReference<>(parent.getRootView()); showAtLocation(parent.getWi
2019-03-26
ANDROID
1…1516171819…25

Search

Hexo Fluid