Using hierarchyviewer on the Gmail conversation view shows an interesting and unusual layout hierarchy:
Incidentally, the only approach I can think of is javascript-based - use javascript in the WebView to gather the header coordinates, and then use WebView.addJavascriptInterface()
to pass those coordinates on to Java and the HybridConversationScrollContainer
. I haven't tried doing this myself though so I'm not sure if it could actually work.
There is a short post on the android Developer blog talking about the addJavascriptInterface()
method:
http://android-developers.blogspot.com/2008/09/using-webviews.html
It would be wonderful if MessageHeaderScrollView
could be released as an open-source library - I'd use it! - but seeing as the Gmail app is closed, it doesn't seem immediately likely.