我讀過的所有東西(已經使我的應用程序:()之後說:「你不應該在ScrollView中使用WebView!」這是可以理解的,因爲理論上你可以有2個滾動的東西,這會使得奇怪的可用性。ScrollView裏面的WebView似乎工作正常,但警告不使用 - 替代?
但是 - 到目前爲止,我已經看到了沒有不良影響話又說回來,我使用的是不需要每次滾動的WebView? - 也許這使得即使是技術上的錯誤是可接受的使用
是有沒有不利的影響,我只是不知道由於缺乏特定版本的測試?
如果我不能在ScrollView中使用WebView,我會如何g等下面的佈局(我目前的應用程序):
LinearLayout
ScrollView
LinearLayout
TextView //Title of article
TextView //Subtitle of article
RelativeLayout
ImageView //Large Image (clickable to gallery)
ImageView //"more photos icon"
WebView // a small horizontal ad
TextView // actual article text
WebView //embedded HTML code ranging from iframe to video...etc
WebView //embedded HTML code ranging from iframe to video...etc
WebView // a small horizontal ad
LinearLayout
TextView //DB-driven "similar articles" list
WebView //disqus comments
注:我知道這是「錯誤的」 - 但因此在HTML使用<center>
標籤,人們仍然有效地使用他們所有的時間。差異似乎是<center>
有一個簡單和更好的替代方案 - Android中的這種情況有什麼相似之處嗎?一個簡單的方法來獲得上述?
Admob專門針對Google - 我們不通過它們投放廣告。評論是通過Disqus,其中有HTML代碼來實現。我感謝你的時間,但我不相信這是我正在尋找的。 – Dave