设置windowSoftInputMode看看是否有效

解决方案 »

  1.   

    设置windowSoftInputMode了,也不起作用。
      

  2.   

    我是用的线性布局,
    xml代码:
    <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
        xmlns:tools="http://schemas.android.com/tools"
        android:layout_width="fill_parent"
        android:layout_height="fill_parent"
        tools:context=".LoginActivity" >
            
        <LinearLayout
            android:layout_width="fill_parent"
            android:layout_height="fill_parent"
            android:orientation="horizontal" >
       <WebView  
           android:id="@+id/webview"  
           android:layout_width="0dp"  
           android:layout_height="fill_parent"  
           android:layout_weight="1" />
        </LinearLayout></LinearLayout>
      

  3.   

    全屏是用这句话设置的:android:theme="@android:style/Theme.Light.NoTitleBar.Fullscreen"
      

  4.   

    android:theme="@android:style/Theme.Light.NoTitleBar" 
      

  5.   

    android:theme="@android:style/Theme.Light.NoTitleBar"  这句话只是去掉标题栏,没有去掉状态栏。
      

  6.   

    看看官网的解释吧public static final int FLAG_FULLSCREENAdded in API level 1
    Window flag: hide all screen decorations (such as the status bar) while this window is displayed. This allows the window to use the entire display space for itself -- the status bar will be hidden when an app window with this flag set is on the top layer. A fullscreen window will ignore a value of SOFT_INPUT_ADJUST_RESIZE for the window's softInputMode field; the window will stay fullscreen and will not resize.
      

  7.   

    可以给我一个官网的地址吗?
    是说全屏的时候忽略softinputmode的属性,窗口保持全屏不调整。
    就没有其它办法解决了吗?
      

  8.   

    http://developer.android.com/reference/android/view/WindowManager.LayoutParams.html#FLAG_FULLSCREEN
      

  9.   

    直接用@android:style/Theme.NoTitleBar,测试通过
      

  10.   

    也可以看看这里
    http://www.cnblogs.com/androidez/archive/2013/04/09/3011399.html
    不过我用了没效果