Getting Android SDK WebView and TabWidget for a nice game

I take the HelloTabWidget Android and try two things:

  • Moving tabs at the bottom of top (even if desired from Android UI POV)
  • Creating each tab shows a specific webview in the space above.

I got this for layout (high level):

<TabHost>
  <LinearLayout>
    <FrameLayout>
      <WebView/>
      <WebView/>
      <WebView/>
      <WebView/>
      <WebView/>
    </FrameLayout>
    <TabWidget/>
  </LinearLayout>
</TabHost>

Everything has a width / height set to fill_parent, with the exception of TabWidget , which has it layout_heightset to wrap_content(and layout_gravityset to bottom).

, WebView , /, fill_parent. , , , TabWidget.

- , ?

0
1

AFAIK, .

TabHost WebView , , .

+1

Source: https://habr.com/ru/post/1784707/


All Articles