René's URL Explorer Experiment


Title: Compose 没有效果 · Issue #457 · JessYanCoding/AndroidAutoSize · GitHub

Open Graph Title: Compose 没有效果 · Issue #457 · JessYanCoding/AndroidAutoSize

X Title: Compose 没有效果 · Issue #457 · JessYanCoding/AndroidAutoSize

Description: Environment Autosize Version: v1.2.1 Target Android Version: Android9.0 Device Model: 华为WGR-W09 Device Resolution: 2560x1600 Design Size On AndroidManifest: 1920 1080 Bug Description: App 架构为单Activity 多Fragment + Compose 架构, 原生View 有缩放效果...

Open Graph Description: Environment Autosize Version: v1.2.1 Target Android Version: Android9.0 Device Model: 华为WGR-W09 Device Resolution: 2560x1600 Design Size On AndroidManifest: 1920 1080 Bug Description: App 架构为单Activ...

X Description: Environment Autosize Version: v1.2.1 Target Android Version: Android9.0 Device Model: 华为WGR-W09 Device Resolution: 2560x1600 Design Size On AndroidManifest: 1920 1080 Bug Description: App 架构为单Activ...

Opengraph URL: https://github.com/JessYanCoding/AndroidAutoSize/issues/457

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Compose  没有效果","articleBody":"### Environment\r\n- [x] Autosize Version: v1.2.1\r\n- [x] Target Android Version: Android9.0\r\n- [x] Device Model:  华为WGR-W09\r\n- [x] Device Resolution: 2560x1600\r\n- [x] Design Size On AndroidManifest: 1920 1080\r\n\r\n\r\n### Bug Description:\r\nApp 架构为单Activity 多Fragment + Compose 架构,\r\n原生View 有缩放效果,Compose 没有,\r\n\r\n### Log:\r\n\r\n```log\r\n2023-12-11 20:26:06.382 12929-12929 FragmentMain            tech..                      I  SearchView displayMetrics = DisplayMetrics{density=1.3333334, width=2560, height=1600, scaledDensity=1.3333334, xdpi=239.058, ydpi=239.058, densityDpi=213, noncompatWidthPixels=2560, noncompatHeightPixels=1600, noncompatDensity=2.0, noncompatDensityDpi=320, noncompatXdpi=239.058, noncompatYdpi=239.058}\r\n2023-12-11 20:26:06.382 12929-12929 FragmentMain            tech..                      I  SearchView displayMetrics = DensityImpl(density=2.0, fontScale=1.0)\r\n2023-12-11 20:26:06.560 12929-12929 FragmentMain            tech..                      I  SearchView 627.dp = 836.0\r\n2023-12-11 20:26:06.560 12929-12929 FragmentMain            tech..                      I  SearchView 627.dp = 836.0\r\n```\r\nCompose 在Layout 的时候 dp转 px的时候 使用的是\r\nDensity  2 \r\n    fun Dp.toPx(): Float = value * density\r\n 方法。\r\n\r\n但是 从日志中可以看到 Compose 的DensityImpl 的density 始终是2.0 没有被修改。\r\n\r\n\r\n\r\n### Related Code:\r\n```java\r\n      @Stable\r\n    fun Dp.toPx(): Float = value * density\r\n\r\n    /**\r\n     * Convert [Dp] to [Int] by rounding\r\n     */\r\n    @Stable\r\n    fun Dp.roundToPx(): Int {\r\n        val px = toPx()\r\n        return if (px.isInfinite()) Constraints.Infinity else px.roundToInt()\r\n    }\r\n```\r\n\r\n\r\n### Others:\r\n","author":{"url":"https://github.com/louie-wh","@type":"Person","name":"louie-wh"},"datePublished":"2023-12-11T12:30:59Z","url":"https://github.com/JessYanCoding/AndroidAutoSize/issues/457"}

react-profiling0
react-import-mapreact,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-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:08b1ad6f-99f0-7be0-1c94-628002416435
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idCFBC:3F0AA7:590B28:7DC182:6AFDBCFA
html-safe-noncea1b35a539eb76d0b610171b5cc0043fc94ba4461a0f0cd1fe1fb199c8027dfa0
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDRkJDOjNGMEFBNzo1OTBCMjg6N0RDMTgyOjZBRkRCQ0ZBIiwidmlzaXRvcl9pZCI6IjkyMTYyODIxOTQ0MDAzNjE3MjIiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac42c4c0893a08746f71621d7dfcb03d38820704588b538a5d384d862a7343c562
hovercard-subject-tagissue:2035575740
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/JessYanCoding/AndroidAutoSize/457/issue_layout
twitter:imagehttps://opengraph.githubassets.com/4e8a2aa755c5ae91520b0077727ba28817a16e6c04fd4923615ebdf49ec7566e/JessYanCoding/AndroidAutoSize/issues/457
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/4e8a2aa755c5ae91520b0077727ba28817a16e6c04fd4923615ebdf49ec7566e/JessYanCoding/AndroidAutoSize/issues/457
og:image:altEnvironment Autosize Version: v1.2.1 Target Android Version: Android9.0 Device Model: 华为WGR-W09 Device Resolution: 2560x1600 Design Size On AndroidManifest: 1920 1080 Bug Description: App 架构为单Activ...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamelouie-wh
hostnamegithub.com
expected-hostnamegithub.com
None8309f07eb60a4237a657068c83d0bb57be4c7e02937f5e9933126f4bd596aac4
turbo-cache-controlno-preview
go-importgithub.com/JessYanCoding/AndroidAutoSize git https://github.com/JessYanCoding/AndroidAutoSize.git
octolytics-dimension-user_id15711968
octolytics-dimension-user_loginJessYanCoding
octolytics-dimension-repository_id145098146
octolytics-dimension-repository_nwoJessYanCoding/AndroidAutoSize
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id145098146
octolytics-dimension-repository_network_root_nwoJessYanCoding/AndroidAutoSize
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release2f7154d847f1ddc5baa83b109a3e1d924605e2a3
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/JessYanCoding/AndroidAutoSize/issues/457#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FJessYanCoding%2FAndroidAutoSize%2Fissues%2F457
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FJessYanCoding%2FAndroidAutoSize%2Fissues%2F457
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=JessYanCoding%2FAndroidAutoSize
Reloadhttps://github.com/JessYanCoding/AndroidAutoSize/issues/457
Reloadhttps://github.com/JessYanCoding/AndroidAutoSize/issues/457
Reloadhttps://github.com/JessYanCoding/AndroidAutoSize/issues/457
JessYanCodinghttps://github.com/JessYanCoding
AndroidAutoSizehttps://github.com/JessYanCoding/AndroidAutoSize
Codehttps://github.com/JessYanCoding/AndroidAutoSize
Issues126 (126)https://github.com/JessYanCoding/AndroidAutoSize/issues
Pull requestshttps://github.com/JessYanCoding/AndroidAutoSize/pulls
Actionshttps://github.com/JessYanCoding/AndroidAutoSize/actions
Projectshttps://github.com/JessYanCoding/AndroidAutoSize/projects
Security and qualityhttps://github.com/JessYanCoding/AndroidAutoSize/security
Insightshttps://github.com/JessYanCoding/AndroidAutoSize/pulse
https://github.com/JessYanCoding/AndroidAutoSize
New issuehttps://github.com/login?return_to=https://github.com/JessYanCoding/AndroidAutoSize/issues/457
New issuehttps://github.com/login?return_to=https://github.com/JessYanCoding/AndroidAutoSize/issues/457
Compose 没有效果https://github.com/JessYanCoding/AndroidAutoSize/issues/457#top
https://github.com/louie-wh
louie-whhttps://github.com/louie-wh
on Dec 11, 2023https://github.com/JessYanCoding/AndroidAutoSize/issues/457#issue-2035575740
Sign up for freehttps://github.com/signup?return_to=https://github.com/JessYanCoding/AndroidAutoSize/issues/457
Sign in to commenthttps://github.com/login?return_to=https://github.com/JessYanCoding/AndroidAutoSize/issues/457
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.