-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
602 lines (303 loc) · 14.2 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"/>
<meta http-equiv="Cache-Control" content="no-transform" />
<meta http-equiv="Cache-Control" content="no-siteapp" />
<link rel="alternate" href="/atom.xml" title="Xuan's Space">
<link rel="shortcut icon" type="image/x-icon" href="/favicon.ico?v=" />
<link rel="canonical" href="http://yangjingxuan.space/"/>
<meta name="description">
<meta property="og:type" content="website">
<meta property="og:title" content="Xuan's Space">
<meta property="og:url" content="http://yangjingxuan.space/index.html">
<meta property="og:site_name" content="Xuan's Space">
<meta property="og:description">
<meta name="twitter:card" content="summary">
<meta name="twitter:title" content="Xuan's Space">
<meta name="twitter:description">
<link rel="stylesheet" type="text/css" href="/css/style.css?v=" />
<link rel="stylesheet" type="text/css" href="/lib/fancybox/jquery.fancybox.css" />
<script>
var CONFIG = {
search: true,
searchPath: "/search.xml",
fancybox: true,
toc: true,
}
</script>
<script type="text/javascript">
var _hmt = _hmt || [];
(function() {
var hm = document.createElement("script");
hm.src = "https://hm.baidu.com/hm.js?3c46e20597819e1ffd65713a4c68c477";
var s = document.getElementsByTagName("script")[0];
s.parentNode.insertBefore(hm, s);
})();
</script>
<title> Xuan's Space </title>
</head>
<body><div id="mobile-navbar" class="mobile-navbar">
<div class="mobile-header-logo">
<a href="/." class="logo">Xuan's Space</a>
</div>
<div class="mobile-navbar-icon">
<span></span>
<span></span>
<span></span>
</div>
</div>
<nav id="mobile-menu" class="mobile-menu slideout-menu">
<ul class="mobile-menu-list">
<a href="/">
<li class="mobile-menu-item">
Home
</li>
</a>
<a href="/archives/">
<li class="mobile-menu-item">
Archives
</li>
</a>
<a href="/about/">
<li class="mobile-menu-item">
About
</li>
</a>
</ul>
</nav>
<div class="container" id="mobile-panel">
<header id="header" class="header"><div class="logo-wrapper">
<a href="/." class="logo">Xuan's Space</a>
</div>
<nav class="site-navbar">
<ul id="menu" class="menu">
<li class="menu-item">
<a class="menu-item-link" href="/">
Home
</a>
</li>
<li class="menu-item">
<a class="menu-item-link" href="/archives/">
Archives
</a>
</li>
<li class="menu-item">
<a class="menu-item-link" href="/about/">
About
</a>
</li>
<li class="menu-search">
<form>
<i class="iconfont icon-search" id="open-search"></i>
<input type="text" class="search-input" id="search-input" />
<i class="iconfont icon-close" id="close-search"></i>
</form>
</li>
</ul>
</nav>
</header>
<main id="main" class="main">
<div class="content-wrapper">
<div id="content" class="content">
<section id="posts" class="posts">
<article class="post">
<header class="post-header">
<h1 class="post-title">
<a class="post-link" href="/2018/01/29/Android 中常见内存泄露的几种情况/">Android 中常见内存泄露的几种情况</a>
</h1>
<div class="post-meta">
<span class="post-time">
Jan 29, 2018
</span>
</div>
</header>
<div class="post-content">
<h3 id="Android-中常见内存泄露的几种情况"><a href="#Android-中常见内存泄露的几种情况" class="headerlink" title="Android 中常见内存泄露的几种情况"></a>Android 中常见内存泄露的几种情况</h3><p>我们在开发Android应用时,有时候会遇到程序因占用内存过高而造成的oom(out of memory),而本质的原因就是开发过程中内存使用的不合理以及应用中存在的内存泄露。
<div class="read-more">
<a href="/2018/01/29/Android 中常见内存泄露的几种情况/" class="read-more-link">Read more..</a>
</div>
</div>
</article>
<article class="post">
<header class="post-header">
<h1 class="post-title">
<a class="post-link" href="/2017/03/07/Android Studio 优化构建架构速度解决方案/">Android Studio 优化构建速度解决方案</a>
</h1>
<div class="post-meta">
<span class="post-time">
Mar 7, 2017
</span>
</div>
</header>
<div class="post-content">
<p>随着项目工程的扩大,程序编译时间也越来越长,同时也影响到了我们整个开发的速度。为了提高开发效率下面将列出一些优化方案:</p>
<blockquote>
<p>开发的时候尽可能的使用最新设备进行开发,运行在Android7.0(API level 24)</p>
<p>最新的Android 平台可以让你程序编译运行速度更快,如Android Runtime(ART)还有更好对multiple DEX 支持</p>
</blockquote>
<div class="read-more">
<a href="/2017/03/07/Android Studio 优化构建架构速度解决方案/" class="read-more-link">Read more..</a>
</div>
</div>
</article>
<article class="post">
<header class="post-header">
<h1 class="post-title">
<a class="post-link" href="/2016/09/08/ImageView Scale Type 使用指南/">ImageView Scale Type 使用指南</a>
</h1>
<div class="post-meta">
<span class="post-time">
Sep 8, 2016
</span>
</div>
</header>
<div class="post-content">
<p>如果你是刚接触ImageView 的新同学,并且你对ScaleType 这个属性难以理解其字面效果的话,那么你可以花几分钟时间看完这篇文章,然后在你现在App中使用到的ImageView中,为他们设置上ScaleType这个属性看看效果</p>
<p>由于近期对ImageView图片缩放等展示样式使用较多,所以现将ImageView ScaleType这个属性设置样式效果展现出来</p>
<h4 id="Scalce-Type"><a href="#Scalce-Type" class="headerlink" title="Scalce Type"></a>Scalce Type</h4><p>官方对每一个Scalce Type 的设置都做了统一说明 <a href="https://developer.android.com/reference/android/widget/ImageView.ScaleType.html">官方说明</a></p>
<p>你也可以在下面的截图中看到具体的展现效果</p>
<div class="read-more">
<a href="/2016/09/08/ImageView Scale Type 使用指南/" class="read-more-link">Read more..</a>
</div>
</div>
</article>
<article class="post">
<header class="post-header">
<h1 class="post-title">
<a class="post-link" href="/2016/08/20/BLE 4.0蓝牙连接/">ble4.0蓝牙连接</a>
</h1>
<div class="post-meta">
<span class="post-time">
Aug 20, 2016
</span>
</div>
</header>
<div class="post-content">
<p>从Android4.3(API 18) 开始,google开始引入低功耗蓝牙即蓝牙4.0模块,并提供了发现蓝牙,查询蓝牙Services和读写蓝牙特征值等api。 相比之前的传统蓝牙,低功耗蓝牙能显著的降低蓝牙设备功耗。</p>
<h5 id="关键名词解析"><a href="#关键名词解析" class="headerlink" title="关键名词解析"></a>关键名词解析</h5><p>GATT : GATT是一个通过的规范,ble上层的协议都是基于GATT,通过BLE连接发送与接收称为“属性”的数据块。目前所有的ble应用都是基于GATT。(这个通用的规范是指蓝牙设备如何在特定的应用程序中工作的规格说明)</p>
<div class="read-more">
<a href="/2016/08/20/BLE 4.0蓝牙连接/" class="read-more-link">Read more..</a>
</div>
</div>
</article>
<article class="post">
<header class="post-header">
<h1 class="post-title">
<a class="post-link" href="/2016/05/17/WebChromeClient常用API与功能使用详解/">WebChromeClient常用API与功能使用详解</a>
</h1>
<div class="post-meta">
<span class="post-time">
May 17, 2016
</span>
</div>
</header>
<div class="post-content">
<p>在WebView的开发过程中当你需要使用到一些高级功能可以通过设置WebChromeClient从而来辅助WebView处理 JavaScript 的对话框、网站图标、网站title、加载进度等。</p>
<h5 id="WebChromeClient常用的API方法"><a href="#WebChromeClient常用的API方法" class="headerlink" title="WebChromeClient常用的API方法"></a>WebChromeClient常用的API方法</h5><h6 id="1-通知应用程序当前网页加载的进度"><a href="#1-通知应用程序当前网页加载的进度" class="headerlink" title="1.通知应用程序当前网页加载的进度"></a>1.通知应用程序当前网页加载的进度</h6>
<div class="read-more">
<a href="/2016/05/17/WebChromeClient常用API与功能使用详解/" class="read-more-link">Read more..</a>
</div>
</div>
</article>
<article class="post">
<header class="post-header">
<h1 class="post-title">
<a class="post-link" href="/2016/04/29/Android WebView 项目使用总结/">Android WebView 项目使用总结</a>
</h1>
<div class="post-meta">
<span class="post-time">
Apr 29, 2016
</span>
</div>
</header>
<div class="post-content">
<p>由于前段时间的项目对WebView的使用较多,因此总结一下项目中WebView的使用使用过程,以及一些值得注意的地方。</p>
<p>WebView 在大部分的WebApp中使用相当广泛,处理好WebView也是一个WebApp的关键</p>
<p>目前的WebView是基于webkit 内核浏览器并且封装在android 的sdk 当中,并且WebView包括以下几个功能</p>
<ul>
<li>1.加载网站url和加载本地html页面</li>
<li>2.可以与JavaScript代码进行交互</li>
<li>3.webview控件可以高度进行定制</li>
</ul>
<div class="read-more">
<a href="/2016/04/29/Android WebView 项目使用总结/" class="read-more-link">Read more..</a>
</div>
</div>
</article>
</section>
<nav class="pagination">
<a class="next" href="/page/2/">
<span class="next-text">Next</span>
<i class="iconfont icon-right"></i>
</a>
</nav>
</div>
</div>
</main>
<footer id="footer" class="footer">
<div class="social-links">
<a href="mailto:yangjingxuanmail@gmail.com" class="iconfont icon-email" title="email"></a>
<a href="https://github.com/yangjingxuan" class="iconfont icon-github" title="github"></a>
<a href="https://plus.google.com/u/0/109983645122839047888/posts" class="iconfont icon-googleplus" title="googleplus"></a>
<a href="http://weibo.com/1922533815/profile?rightmod=1&wvr=6&mod=personinfo" class="iconfont icon-weibo" title="weibo"></a>
<a href="http://www.jianshu.com/users/791ffd3d7bb7/latest_articles" class="iconfont icon-jianshu" title="jianshu"></a>
<a href="/atom.xml" class="iconfont icon-rss" title="rss"></a>
</div>
<div class="copyright">
<span class="power-by">
Powered by <a class="hexo-link" href="https://hexo.io/">Hexo</a>
</span>
<span class="theme-info">
Theme -
<a class="theme-link" href="https://github.com/ahonn/hexo-theme-even">Even</a>
</span>
<span class="copyright-year">
©
2015 -
2018
<span class="heart">
<i class="iconfont icon-heart"></i>
</span>
<span class="author">JingXuan Yang</span>
</span>
</div>
</footer>
<div class="back-to-top" id="back-to-top">
<i class="iconfont icon-up"></i>
</div>
</div>
<script type="text/javascript" src="/lib/jquery/jquery-3.1.1.min.js"></script>
<script type="text/javascript" src="/lib/slideout/slideout.js"></script>
<script type="text/javascript" src="/lib/fancybox/jquery.fancybox.pack.js"></script>
<script type="text/javascript" src="/js/src/even.js?v="></script>
<script type="text/javascript" src="/js/src/bootstrap.js?v="></script>
<script type="text/html" id="search-result">
<article class="post">
<header class="post-header">
<h1 class="post-title">
<a href="$url$" class="post-link">
$title$
</a>
</h1>
</header>
<div class="post-content">
$content$
<div class="read-more">
<a href="$url$" class="read-more-link">
Read more..
</a>
</div>
</div>
</article>
</script>
<script type="text/html" id="no-search-result">
<div class="no-result">
<h2>No result found!</h2>
</div>
</script>
<script type="text/javascript" src="/js/src/search.js?v="></script>
</body>
</html>