Skip to content

Commit 087c8fb

Browse files
author
Tan Minghui
committed
2 parents 25d4bf8 + 52120fc commit 087c8fb

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

android/Android 性能优化工具.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77

88
### Android Memory Profiler
99

10+
![memory-profiler-callouts_2x](https://developer.android.com/studio/images/profile/memory-profiler-callouts_2x.png)
11+
1012
内存计数中的类别如下所示:
1113

1214
- **Java**:从 Java 或 Kotlin 代码分配的对象内存。

android/事件分发机制.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,6 @@
1818

1919
- Android事件分发是先传递到ViewGroup,再由ViewGroup传递到View的。
2020

21-
- 在ViewGroup中可以通过onInterceptTouchEvent方法对事件传递进行拦截,onInterceptTouchEvent方法返回true代表不允许事件继续向子View传递,返回false代表不对事件进行拦截,默认返回false。
21+
- # 在ViewGroup中可以通过onInterceptTouchEvent方法对事件传递进行拦截,onInterceptTouchEvent方法返回true代表不允许事件继续向子View传递,返回false代表不对事件进行拦截,默认返回false。
2222

2323
- 子View中如果将传递的事件消费掉,ViewGroup中将无法接收到任何事件。

0 commit comments

Comments
 (0)