如何获取WebView的内容宽度[翻译]
原文网址: http://android.pimmos.com/2011/03/24/how-to-retrieve-the-contentwidth-of-a-webview/ The extensive Android SDK allows you to do many great things with particular views like the WebView for displaying webpages on Android powered devices. Android SDK 的扩展,通过使用特定的view,允许你做许多事情。比如,WebView,用来在Android手机上展示网页。 As of lately while I was experimenting with the Android SDK I was using a WebView in one of my activities. 最近,我在体验Android SDK的时候,在一个Activity中用到了WebView。 From that particular WebView I needed to know the ContentHeight but also the ContentWidth. 从WebView,我不但想要知道ContentHeight,还想知道ContentWidth。