- 博客(9)
- 资源 (1)
- 收藏
- 关注
原创 Fish_Redux和BloC设计思想的比较
Fish_Redux的分层更加精细,以flutter的官网的hello world为列,点击加号触发了 Action(增加Action),具体增加Action产生的数据增加这个事件交给Effect处理,Effect处理把状态增加以后再发送一个 更新Action,更新Action再去reducer层更新State数据 Bloc仅仅把点击加号当作了一个数据加一事件...
2021-09-25 15:38:35
299
原创 递归算法的理解(以单链表逆转为实例)
单链表为1234一共进行了4次调用//第四次调用public Node reverse(Node head) { if (head == null || head.next == null) return head;//heasd =4返回4 Node temp = head.next;//temp =4; Node newHead = reve...
2019-07-19 17:48:09
504
原创 ktx
当implementation 'androidx.core:core-ktx:1.0.0-alpha1'时,不可以使用implementation 'com.android.support:appcompat-v7:28.0.0-alpha3'要用implementation 'androidx.appcompat:appcompat:1.0.0-alpha3'Google...
2018-08-01 13:59:40
662
原创 room数据库升级
static final Migration MIGRATION_1_2 = new Migration(1, 2) { @Override public void migrate(SupportSQLiteDatabase database) { database.execSQL("CREATE TABLE IF NOT EXISTS `U...
2018-06-27 10:04:15
3147
原创 androidstudio Ambiguous method call. Both findViewById
1问题描述,Android Studio 升级后 findViewById(R.id.xxx);报Ambiguous method call. BothfindViewById(int)in AppCompatActivity andfindViewById(int)in Activity match2解决方法 尝试网上的解决方法无效后, 打开 AppCompatActivity 源码点击 Syn...
2018-05-29 14:52:36
3155
1
原创 Android App进程中最少有几个线程
在ART上最少八个线程1"Binder_1"@4,098 in group "main": RUNNING//就是我们的ApplicationThread,这个类实现了IBinder接口,用于进程间通信。具体来说,是我们的应用程序和Ams通信的工具。2 "Binder_2"@4,099 in group "main": RUNNING就是我们的ViewRoot.W对象,它也是实现了IBinder接...
2018-04-28 11:57:53
3994
2
原创 NotFoundError: Failed to create a directory: /tmp\tensorflow; No such file or directory
win7运行python fully_connected_feed.py出错,出错原因没有系统环境变量TEST_TMPDIR解决办法添加系统环境变量TEST_TMPDIR
2018-03-14 11:50:02
3844
3
原创 xUtils-2.6.14在android5.0以下系统https问题
首先自定义 SSLSocketFactory package com.lidroid.xutils.util;import android.os.Build;import com.lidroid.xutils.http.client.DefaultSSLSocketFactory;import org.apache.http.conn.ssl.SSLSock
2017-10-26 16:41:47
1045
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人