Title: "确定View大小(onSizeChanged)" 这一节存在误导 · Issue #111 · GcsSloop/AndroidNote · GitHub
Open Graph Title: "确定View大小(onSizeChanged)" 这一节存在误导 · Issue #111 · GcsSloop/AndroidNote
X Title: "确定View大小(onSizeChanged)" 这一节存在误导 · Issue #111 · GcsSloop/AndroidNote
Description: onSizeChanged只是在大小被改变时调用,不是用来确定大小的,确定大小就是在onMeasure里面完成的。onMeasure是测量视图的大小的,这个没错,但是它测量大小也就是在确定它的大小,重写时就是根据情况确定(或者叫“测量”)你绘制的内容应该多大。 官方文档: This is called during layout when the size of this view has changed. If you were just added to the v...
Open Graph Description: onSizeChanged只是在大小被改变时调用,不是用来确定大小的,确定大小就是在onMeasure里面完成的。onMeasure是测量视图的大小的,这个没错,但是它测量大小也就是在确定它的大小,重写时就是根据情况确定(或者叫“测量”)你绘制的内容应该多大。 官方文档: This is called during layout when the size of this view has ...
X Description: onSizeChanged只是在大小被改变时调用,不是用来确定大小的,确定大小就是在onMeasure里面完成的。onMeasure是测量视图的大小的,这个没错,但是它测量大小也就是在确定它的大小,重写时就是根据情况确定(或者叫“测量”)你绘制的内容应该多大。 官方文档: This is called during layout when the size of this view has ...
Opengraph URL: https://github.com/GcsSloop/AndroidNote/issues/111
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"\"确定View大小(onSizeChanged)\" 这一节存在误导","articleBody":"`onSizeChanged`只是在大小被改变时调用,不是用来确定大小的,确定大小就是在`onMeasure`里面完成的。`onMeasure`是测量视图的大小的,这个没错,但是它测量大小也就是在确定它的大小,重写时就是根据情况确定(或者叫“测量”)你绘制的内容应该多大。\r\n\r\n[官方文档](https://developer.android.com/reference/android/view/View#onSizeChanged(int,%20int,%20int,%20int)):\r\n> This is called during layout when the size of this view has changed. If you were just added to the view hierarchy, you're called with the old values of 0.\r\n> \r\n> 在布局期间,当视图的大小被改变的时候这个会被调用。如果视图是刚刚添加到视图层级中,旧的值会是0。","author":{"url":"https://github.com/vejei","@type":"Person","name":"vejei"},"datePublished":"2021-02-10T08:07:21Z","url":"https://github.com/GcsSloop/AndroidNote/issues/111"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:b4dcfd6a-e86c-0508-a45d-330c8f9d0e1d |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | BF3A:35E726:36C7ED:4EB47D:6AFC5152 |
| html-safe-nonce | f24f39f1c9a04f5cc7a23003e1e025a44698b7659512b6aedf7f0c93edaa3e2a |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCRjNBOjM1RTcyNjozNkM3RUQ6NEVCNDdEOjZBRkM1MTUyIiwidmlzaXRvcl9pZCI6IjUzMzY2MjQyNzcyNzk3NTY2MjYiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | a25d5c40a4f25e0696b9c13b5c96a408ecf7656ddee76834526d831dadc6979e |
| hovercard-subject-tag | issue:805278888 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/GcsSloop/AndroidNote/111/issue_layout |
| twitter:image | https://opengraph.githubassets.com/225510f30089c9ec4cd95136f97d5c46904ba79d1f49c06e71c6057fb1efbde4/GcsSloop/AndroidNote/issues/111 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/225510f30089c9ec4cd95136f97d5c46904ba79d1f49c06e71c6057fb1efbde4/GcsSloop/AndroidNote/issues/111 |
| og:image:alt | onSizeChanged只是在大小被改变时调用,不是用来确定大小的,确定大小就是在onMeasure里面完成的。onMeasure是测量视图的大小的,这个没错,但是它测量大小也就是在确定它的大小,重写时就是根据情况确定(或者叫“测量”)你绘制的内容应该多大。 官方文档: This is called during layout when the size of this view has ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | vejei |
| hostname | github.com |
| expected-hostname | github.com |
| None | b63557e0027d8014589e873df28328da74a4356701bb1a9eab49dbf012ba8fa6 |
| turbo-cache-control | no-preview |
| go-import | github.com/GcsSloop/AndroidNote git https://github.com/GcsSloop/AndroidNote.git |
| octolytics-dimension-user_id | 9796998 |
| octolytics-dimension-user_login | GcsSloop |
| octolytics-dimension-repository_id | 49030451 |
| octolytics-dimension-repository_nwo | GcsSloop/AndroidNote |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 49030451 |
| octolytics-dimension-repository_network_root_nwo | GcsSloop/AndroidNote |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 0243355b0352c83733a042e0dfb3d75149b51261 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width