Skip to content

Commit 4446a0e

Browse files
committedFeb 10, 2022
📄子线程更新 UI 全解 IO-01/Blog@c3e0eeb
1 parent 8e80327 commit 4446a0e

File tree

15 files changed

+872
-65
lines changed

15 files changed

+872
-65
lines changed
 

‎index.html

+19-24
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
<meta property="og:url" content="/">
2525
<meta property="og:description" content="Eureka is a elegant and powerful theme for Hugo.">
2626
<meta property="og:site_name" content="IO01 Blog">
27-
<meta property="og:updated_time" content="2021-11-29T00:00:00+00:00">
27+
<meta property="og:updated_time" content="2022-01-06T00:00:00+00:00">
2828
<meta property="article:section" content>
2929
<link rel=alternate type=application/rss+xml href=/index.xml title="IO01 Blog">
3030
<body class="flex flex-col min-h-screen">
@@ -68,6 +68,24 @@
6868
<div class="flex flex-col-reverse lg:flex-row justify-between">
6969
<div class=w-full>
7070
<div class=mb-4>
71+
<a href=/posts/%E5%AD%90%E7%BA%BF%E7%A8%8B%E6%9B%B4%E6%96%B0-ui-%E5%85%A8%E8%A7%A3/ class="font-bold text-xl hover:text-eureka">子线程更新 UI 全解</a>
72+
</div>
73+
<div class=content>
74+
子线程更新 UI 异常设计理念及简单源码解析 初学者可能会犯在子线程更新 UI 的错误,例如: thread { imageView.setBackgroundColor(Color.RED) } 一旦运行,应用会直接崩溃并抛出异常,这也是我们 Android 开发的一条铁律
75+
</div>
76+
<div class="flex flex-wrap flex-row items-center mt-2 text-tertiary-text">
77+
<div class="mr-6 my-2">
78+
<i class="fas fa-calendar mr-1"></i>
79+
<span>2022-01-06</span>
80+
</div>
81+
</div>
82+
</div>
83+
</div>
84+
</div>
85+
<div class=py-6>
86+
<div class="flex flex-col-reverse lg:flex-row justify-between">
87+
<div class=w-full>
88+
<div class=mb-4>
7189
<a href=/posts/%E4%BD%BF%E7%94%A8%E9%98%BF%E9%87%8C%E4%BA%91%E6%95%88%E5%90%8C%E6%AD%A5git%E4%BB%93%E5%BA%93%E5%88%B0github/ class="font-bold text-xl hover:text-eureka">使用阿里云效同步 Git 仓库到 Github</a>
7290
</div>
7391
<div class=content>
@@ -162,29 +180,6 @@
162180
</div>
163181
</div>
164182
</div>
165-
<div class=py-6>
166-
<div class="flex flex-col-reverse lg:flex-row justify-between">
167-
<div class=w-full>
168-
<div class=mb-4>
169-
<a href=/posts/%E4%BB%8E%E9%98%BF%E9%87%8C%E8%A7%84%E7%BA%A6%E8%B0%88%E8%B5%B7-%E5%8C%85%E8%A3%85%E7%B1%BB%E7%9A%84%E5%80%BC%E6%AF%94%E8%BE%83%E6%B3%A8%E6%84%8F%E4%BA%8B%E9%A1%B9/ class="font-bold text-xl hover:text-eureka">从阿里规约谈起-包装类的值比较注意事项</a>
170-
</div>
171-
<div class=content>
172-
前言 int、long 等基本数据类型值比较可以直接使用 == 比较,其包装类型:Integer、Long 如果直接使用 == 比较大小我们会发现一个神奇的现象。当然,阿里规约也对此做出强制规定:
173-
【强制】 所有的相同类型的包装类对象之间值的比较,全部使用 equals 方法比较。
174-
</div>
175-
<div class="flex flex-wrap flex-row items-center mt-2 text-tertiary-text">
176-
<div class="mr-6 my-2">
177-
<i class="fas fa-calendar mr-1"></i>
178-
<span>2019-11-29</span>
179-
</div>
180-
<div class="mr-6 my-2">
181-
<i class="fas fa-th-list mr-1"></i>
182-
<a href=/series/%E9%98%BF%E9%87%8C%E8%A7%84%E7%BA%A6/ class=hover:text-eureka>阿里规约</a>
183-
</div>
184-
</div>
185-
</div>
186-
</div>
187-
</div>
188183
</div>
189184
</div>
190185
<ul class="pagination pagination-default">

‎index.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>IO01 Blog</title><link>/</link><description>Recent content on IO01 Blog</description><generator>Hugo -- gohugo.io</generator><copyright>&amp;copy; {year} &lt;a href="https://blog.io01.xyz/">IO01&lt;/a></copyright><lastBuildDate>Mon, 29 Nov 2021 00:00:00 +0000</lastBuildDate><atom:link href="/index.xml" rel="self" type="application/rss+xml"/><item><title>使用阿里云效同步 Git 仓库到 Github</title><link>/posts/%E4%BD%BF%E7%94%A8%E9%98%BF%E9%87%8C%E4%BA%91%E6%95%88%E5%90%8C%E6%AD%A5git%E4%BB%93%E5%BA%93%E5%88%B0github/</link><pubDate>Mon, 29 Nov 2021 00:00:00 +0000</pubDate><guid>/posts/%E4%BD%BF%E7%94%A8%E9%98%BF%E9%87%8C%E4%BA%91%E6%95%88%E5%90%8C%E6%AD%A5git%E4%BB%93%E5%BA%93%E5%88%B0github/</guid><description>&lt;h2 id="前言">前言&lt;/h2>
1+
<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>IO01 Blog</title><link>/</link><description>Recent content on IO01 Blog</description><generator>Hugo -- gohugo.io</generator><copyright>&amp;copy; {year} &lt;a href="https://blog.io01.xyz/">IO01&lt;/a></copyright><lastBuildDate>Thu, 06 Jan 2022 00:00:00 +0000</lastBuildDate><atom:link href="/index.xml" rel="self" type="application/rss+xml"/><item><title>子线程更新 UI 全解</title><link>/posts/%E5%AD%90%E7%BA%BF%E7%A8%8B%E6%9B%B4%E6%96%B0-ui-%E5%85%A8%E8%A7%A3/</link><pubDate>Thu, 06 Jan 2022 00:00:00 +0000</pubDate><guid>/posts/%E5%AD%90%E7%BA%BF%E7%A8%8B%E6%9B%B4%E6%96%B0-ui-%E5%85%A8%E8%A7%A3/</guid><description>子线程更新 UI 异常设计理念及简单源码解析 初学者可能会犯在子线程更新 UI 的错误,例如: thread { imageView.setBackgroundColor(Color.RED) } 一旦运行,应用会直接崩溃并抛出异常,这也是我们 Android 开发的一条铁律</description></item><item><title>使用阿里云效同步 Git 仓库到 Github</title><link>/posts/%E4%BD%BF%E7%94%A8%E9%98%BF%E9%87%8C%E4%BA%91%E6%95%88%E5%90%8C%E6%AD%A5git%E4%BB%93%E5%BA%93%E5%88%B0github/</link><pubDate>Mon, 29 Nov 2021 00:00:00 +0000</pubDate><guid>/posts/%E4%BD%BF%E7%94%A8%E9%98%BF%E9%87%8C%E4%BA%91%E6%95%88%E5%90%8C%E6%AD%A5git%E4%BB%93%E5%BA%93%E5%88%B0github/</guid><description>&lt;h2 id="前言">前言&lt;/h2>
22
&lt;p>有时 Github 网络的不稳定性实在令人头痛,push 总是失败,而且需要把主仓库放在 Github 而非 Gitee 等国内平台,虽然可以通过配置代理进行,不过也可以曲线救国,选择通过 push 到国内代码管理平台,然后通过 CI 平台自动推送到 Github。&lt;/p>
33
&lt;p>阿里云效综合了代码仓库和 CI 平台,私有代码仓库免费,免费构建时间足够支撑我们这点小事,并且执行环境可以选香港保证了能 push 到 GitHub,所以选择了阿里云效。&lt;/p>
44
&lt;p>理论上所有能通过 &lt;code>git push&lt;/code> 触发 CI(CI 的基本操作了)并且基础环境存在 &lt;code>git&lt;/code> 而且网络良好的平台都可以按照本文方法进行,甚至有更简单的比如 Gitlab 直接支持推送到 Github,至于本文为何没有选用 Gitlab,纯属个人偏好。&lt;/p></description></item><item><title>深入源码排查 FLAG_ACTIVITY_NEW_TASK 导致的 Activity 无法正常启动</title><link>/posts/%E6%B7%B1%E5%85%A5%E6%BA%90%E7%A0%81%E6%8E%92%E6%9F%A5-flag_activity_new_task-%E5%AF%BC%E8%87%B4%E7%9A%84-activity-%E6%97%A0%E6%B3%95%E6%AD%A3%E5%B8%B8%E5%90%AF%E5%8A%A8/</link><pubDate>Thu, 16 Sep 2021 00:00:00 +0000</pubDate><guid>/posts/%E6%B7%B1%E5%85%A5%E6%BA%90%E7%A0%81%E6%8E%92%E6%9F%A5-flag_activity_new_task-%E5%AF%BC%E8%87%B4%E7%9A%84-activity-%E6%97%A0%E6%B3%95%E6%AD%A3%E5%B8%B8%E5%90%AF%E5%8A%A8/</guid><description>引言 众所周知 Android 中 Activity 有四种启动模式,决定了是否创建新的 Activity 实例或复用当前实例。但是实际上 Activity 的启动十分复杂,不单单是 android:launchMode 就能决定的,多个 Intent Flag 都能改变启动的行为</description></item><item><title>遵循 Google 应用指南的 Retrofit + Coroutine 封装</title><link>/posts/%E9%81%B5%E5%BE%AA-google-%E5%BA%94%E7%94%A8%E6%8C%87%E5%8D%97%E7%9A%84-retrofit-+-coroutine-%E5%B0%81%E8%A3%85/</link><pubDate>Fri, 18 Jun 2021 00:00:00 +0000</pubDate><guid>/posts/%E9%81%B5%E5%BE%AA-google-%E5%BA%94%E7%94%A8%E6%8C%87%E5%8D%97%E7%9A%84-retrofit-+-coroutine-%E5%B0%81%E8%A3%85/</guid><description>&lt;h2 id="前言">前言&lt;/h2>

‎page/2/index.html

+24-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
<meta property="og:url" content="/">
2525
<meta property="og:description" content="Eureka is a elegant and powerful theme for Hugo.">
2626
<meta property="og:site_name" content="IO01 Blog">
27-
<meta property="og:updated_time" content="2021-11-29T00:00:00+00:00">
27+
<meta property="og:updated_time" content="2022-01-06T00:00:00+00:00">
2828
<meta property="article:section" content>
2929
<link rel=alternate type=application/rss+xml href=/index.xml title="IO01 Blog">
3030
<body class="flex flex-col min-h-screen">
@@ -68,6 +68,29 @@
6868
<div class="flex flex-col-reverse lg:flex-row justify-between">
6969
<div class=w-full>
7070
<div class=mb-4>
71+
<a href=/posts/%E4%BB%8E%E9%98%BF%E9%87%8C%E8%A7%84%E7%BA%A6%E8%B0%88%E8%B5%B7-%E5%8C%85%E8%A3%85%E7%B1%BB%E7%9A%84%E5%80%BC%E6%AF%94%E8%BE%83%E6%B3%A8%E6%84%8F%E4%BA%8B%E9%A1%B9/ class="font-bold text-xl hover:text-eureka">从阿里规约谈起-包装类的值比较注意事项</a>
72+
</div>
73+
<div class=content>
74+
前言 int、long 等基本数据类型值比较可以直接使用 == 比较,其包装类型:Integer、Long 如果直接使用 == 比较大小我们会发现一个神奇的现象。当然,阿里规约也对此做出强制规定:
75+
【强制】 所有的相同类型的包装类对象之间值的比较,全部使用 equals 方法比较。
76+
</div>
77+
<div class="flex flex-wrap flex-row items-center mt-2 text-tertiary-text">
78+
<div class="mr-6 my-2">
79+
<i class="fas fa-calendar mr-1"></i>
80+
<span>2019-11-29</span>
81+
</div>
82+
<div class="mr-6 my-2">
83+
<i class="fas fa-th-list mr-1"></i>
84+
<a href=/series/%E9%98%BF%E9%87%8C%E8%A7%84%E7%BA%A6/ class=hover:text-eureka>阿里规约</a>
85+
</div>
86+
</div>
87+
</div>
88+
</div>
89+
</div>
90+
<div class=py-6>
91+
<div class="flex flex-col-reverse lg:flex-row justify-between">
92+
<div class=w-full>
93+
<div class=mb-4>
7194
<a href=/posts/%E6%9C%89%E8%B6%A3%E7%9A%84%E7%AE%97%E6%B3%95-%E5%B8%83%E9%9A%86%E8%BF%87%E6%BB%A4%E5%99%A8/ class="font-bold text-xl hover:text-eureka">有趣的算法-布隆过滤器</a>
7295
</div>
7396
<div class=content>

0 commit comments

Comments
 (0)