当softkeyboard启动时,阻止页脚出现:android

当softkeyboard启动时,阻止页脚出现:android,第1张

概述我想知道如何阻止软键盘显示页脚并掩盖登录按钮xmlns:android="http://schemas.android.com/apkes/android"android:layout_width="fill_parent"android:layout_height="fill_parent"android:fillViewport="true"><RelativeLayoutandroi

我想知道如何阻止软键盘显示页脚并掩盖登录按钮

xmlns:androID="http://schemas.androID.com/apk/res/androID"androID:layout_wIDth="fill_parent"androID:layout_height="fill_parent"androID:fillVIEwport="true"><relativeLayout    androID:layout_wIDth="fill_parent"    androID:layout_height="wrap_content"    androID:background="#fff">    <!--  header  Starts-->    <linearLayout androID:ID="@+ID/header"                  androID:layout_wIDth="fill_parent"                  androID:layout_height="wrap_content"                  androID:background="@layout/header_gradIEnt"                  androID:paddingtop="5dip"                  androID:paddingBottom="5dip">        <!-- logo Start-->        <!--<ImageVIEw androID:src="@drawable/logo"-->                   <!--androID:layout_wIDth="wrap_content"-->                   <!--androID:layout_height="wrap_content"-->                   <!--androID:layout_marginleft="10dip"/>-->        <!-- logo Ends -->    </linearLayout>    <!--  header Ends -->    <!-- Footer Start -->    <linearLayout androID:ID="@+ID/footer"                  androID:layout_wIDth="fill_parent"                  androID:layout_height="40dip"                  androID:background="@layout/footer_repeat"                  androID:layout_alignParentBottom="true">    </linearLayout>    <!-- Footer Ends -->    <!-- Login Form -->    <linearLayout        xmlns:androID="http://schemas.androID.com/apk/res/androID"        androID:orIEntation="vertical"        androID:layout_wIDth="match_parent"        androID:layout_height="wrap_content"        androID:padding="10dip"        androID:layout_below="@ID/header">        <!--  Username Label -->        <TextVIEw androID:layout_wIDth="fill_parent"                  androID:layout_height="wrap_content"                  androID:textcolor="#372c24"                  androID:text="Username"/>        <EditText androID:ID="@+ID/reg_username"                  androID:layout_wIDth="fill_parent"                  androID:layout_height="wrap_content"                  androID:layout_margintop="5dip"                  androID:singleline="true"                  androID:layout_marginBottom="20dip"                  androID:textcolor="#000"/>        <!-- Password Label -->        <TextVIEw androID:layout_wIDth="fill_parent"                  androID:layout_height="wrap_content"                  androID:textcolor="#372c24"                  androID:text="Password"/>        <EditText androID:ID="@+ID/reg_password"                  androID:layout_wIDth="fill_parent"                  androID:layout_height="wrap_content"                  androID:password="true"                  androID:singleline="true"                  androID:layout_margintop="5dip"                  androID:textcolor="#000"/>        <!-- Login button -->        <button androID:ID="@+ID/buttonLogin"                androID:layout_wIDth="fill_parent"                androID:layout_height="wrap_content"                androID:layout_margintop="10dip"                androID:isScrollContainer="false"                androID:text="Login"/>    </linearLayout>    <!-- Login Form Ends --></relativeLayout>

解决方法:

您可以将此属性设置为您的活动将对您有所帮助.

androID:windowsoftinputMode="adjustPan" 

如果需要有关此属性的更多详细信息,请参考以下内容:

wsoft

总结

以上是内存溢出为你收集整理的当softkeyboard启动时,阻止页脚出现:android全部内容,希望文章能够帮你解决当softkeyboard启动时,阻止页脚出现:android所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址: https://outofmemory.cn/web/1211226.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-06-04
下一篇 2022-06-04

发表评论

登录后才能评论

评论列表(0条)

保存