今天初學FragmentTabHost,遇到的問題,最後總結了下,做個記錄。
在上導航欄:
real在FragmentTabHost标簽下邊雖然導航欄在頂部了,但是點選都是空白,需要将tabcontent的widtht改為wrap_content,height改為match_parent
real在FragmentTabHost标簽上邊導航欄還是會在頂部,需要将tabcontent的widtht改為0dp,height改為match_parent
在下導航欄:
還有就是在FragmentTabhost内FrameLayout的id不能為tabs,