TabWidget在Android的底部并不稳定?为什么? [英] TabWidget not stable at the bottom in Android? Why?

查看:195
本文介绍了TabWidget在Android的底部并不稳定?为什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我把我的tabWidget底部。当我想编辑的EditText键盘将抬起。但该选项卡插件来键盘上方。为了支持多个屏幕我设置了android:layout_weight =1.0。在那之后,我得到了这个问题,我加了我的布局code以下。任何想法,使TabWidget在稳定的底部?

I set my tabWidget at the bottom. When i want to edit the edittext the keyboard will raise up. But the tab widget come above the keyboard. To support for the multiple screen i set the android:layout_weight="1.0". After that, I got this problem i added my layout code below. any idea to make the TabWidget at the bottom stably?

code:

<?xml version="1.0" encoding="utf-8"?>
<TabHost xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@android:id/tabhost" android:layout_width="fill_parent"
android:layout_height="fill_parent">
<LinearLayout android:orientation="vertical"
    android:layout_width="fill_parent" android:layout_height="fill_parent">
    <FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
        android:id="@android:id/tabcontent" android:layout_width="fill_parent"
        android:layout_height="wrap_content" android:layout_weight="1.0">

    </FrameLayout>
    <TabWidget android:id="@android:id/tabs"
        android:layout_gravity="bottom" android:background="@drawable/gradient_black"
        android:listSelector="@color/transparent" android:layout_width="fill_parent"
        android:layout_height="63dip" />
</LinearLayout>

推荐答案

您可能需要调整的 windowSoftInputMode 在你的清单。它控制屏幕的移动软键盘显示时。也许你想AdjustPan而不是默认的adjustResize?这对不同输入模式的详细信息。

You may want to adjust the windowSoftInputMode in your manifest. This controls how the screen shifts when the soft keyboard is shown. Perhaps you want to AdjustPan instead of the default adjustResize? This page has more info on the various input modes.

这篇关于TabWidget在Android的底部并不稳定?为什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆