
这不是诀窍:
androID:windowsoftinputMode="adjustResize"
这两个:
androID:windowsoftinputMode="adjustPan"
也许是因为我有全屏布局?
我需要找到一种不同的方法来调整我的ListVIEw一旦键盘存在,任何想法?提前致谢!
这是我的布局
<linearLayout androID:layout_wIDth="match_parent" androID:layout_height="70dp" androID:background="@drawable/ss99_yellow_area_navigation_bar" androID:baselineAligned="false" androID:orIEntation="horizontal" > <ImageVIEw androID:ID="@+ID/back" androID:layout_wIDth="45dp" androID:layout_height="match_parent" androID:layout_marginBottom="10dp" androID:layout_marginleft="5dp" androID:layout_margintop="5dp" androID:adjustVIEwBounds="true" androID:clickable="true" androID:src="@drawable/ss99_button_back" /> <ImageVIEw androID:ID="@+ID/logo" androID:layout_wIDth="wrap_content" androID:layout_height="75dp" androID:layout_weight="1" androID:adjustVIEwBounds="true" androID:src="@drawable/ss99_logo_small" /></linearLayout><relativeLayout androID:layout_wIDth="match_parent" androID:layout_height="45dp" androID:layout_margintop="-2dp" androID:background="@drawable/ss9_yellow_bar_chat_new" > <TextVIEw androID:ID="@+ID/userOpponent" androID:layout_wIDth="wrap_content" androID:layout_height="wrap_content" androID:layout_alignParentleft="true" androID:layout_centerVertical="true" androID:layout_marginleft="5dp" androID:text="Medium Text" androID:textAppearance="?androID:attr/textAppearanceMedium" /> <TextVIEw androID:ID="@+ID/userUser" androID:layout_wIDth="wrap_content" androID:layout_height="wrap_content" androID:layout_alignBaseline="@+ID/userOpponent" androID:layout_alignBottom="@+ID/userOpponent" androID:layout_alignParentRight="true" androID:layout_marginRight="5dp" androID:text="Medium Text" androID:textAppearance="?androID:attr/textAppearanceMedium" /></relativeLayout> <ListVIEw androID:ID="@+ID/chatList" androID:layout_wIDth="fill_parent" androID:layout_height="wrap_content" androID:cachecolorHint="#00000000" androID:divIDer="#00000000" androID:ListSelector="#00000000" androID:layout_weight="1" androID:stackFromBottom="true" androID:transcriptMode="alwaysScroll"> </ListVIEw> <relativeLayout androID:layout_wIDth="match_parent" androID:layout_height="60dp" androID:background="@drawable/ss9_yellow_area_for_bottom_and_chat_string" > <ImageVIEw androID:ID="@+ID/fIEld1" androID:layout_wIDth="220dp" androID:layout_height="wrap_content" androID:layout_alignParentleft="true" androID:layout_alignParenttop="true" androID:layout_gravity="center" androID:layout_marginleft="20dp" androID:layout_margintop="10dp" androID:adjustVIEwBounds="true" androID:scaleType="centerInsIDe" androID:src="@drawable/ss1_fIEld_big" /> <EditText androID:ID="@+ID/chatEdit" androID:layout_wIDth="200dp" androID:layout_height="wrap_content" androID:layout_alignBottom="@+ID/fIEld1" androID:layout_alignleft="@+ID/fIEld1" androID:layout_aligntop="@+ID/fIEld1" androID:layout_marginBottom="3dp" androID:layout_marginleft="10dp" androID:layout_margintop="1dp" androID:background="@null" androID:inputType="textautoCorrect|textautoComplete" androID:textAppearance="?androID:attr/textAppearanceMedium" > </EditText> <ImageVIEw androID:ID="@+ID/chatOk" androID:layout_wIDth="60dp" androID:layout_height="60dp" androID:layout_alignParentRight="true" androID:layout_alignParenttop="true" androID:layout_marginBottom="5dp" androID:adjustVIEwBounds="false" androID:baselineAlignBottom="false" androID:clickable="true" androID:cropTopadding="false" androID:scaleType="fitEnd" androID:src="@drawable/ss4_button_go_small" /> </relativeLayout></linearLayout>解决方法 尝试将此添加到Manifest.xml中的活动
<activity androID:windowsoftinputMode="stateVisible|adjustnothing"> </activity>总结
以上是内存溢出为你收集整理的Android:软键盘推送整个布局,需要调整listview的大小全部内容,希望文章能够帮你解决Android:软键盘推送整个布局,需要调整listview的大小所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
微信扫一扫
支付宝扫一扫
评论列表(0条)