Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我一直在寻找一种简单的方法来通过链接跳转到屏幕的某个部分,类似于 HTML 中的 a href /#linkname。但我想以编程方式而不是 webview 来执行此操作。
将布局包装在 a 中ScrollView并使用scrollTo
ScrollView
scrollTo