1. 程式人生 > >scrollview 與 webview的巢狀使用(載入h5頁面)

scrollview 與 webview的巢狀使用(載入h5頁面)

問題:

如果webview上方有其他view  當webview高度變化時,會把上方的view頂上去 就只顯示webview

解決辦法:在scrollview的子view 比如 LinearLayout 新增 如下程式碼:

android:descendantFocusability="blocksDescendants"