聊天内容总是被输入框挡住
网上找了半天,基本是,加入
ndroid:windowSoftInputMode="stateHidden|adjustPan"
<span style="white-space:pre"> </span><activity
android:name="com.lh.activity.InfoXiaohei"
android:alwaysRetainTaskState="true"
android:configChanges="locale|keyboardHidden|orientation"
android:launchMode="singleInstance"
android:screenOrientation="portrait"
android:windowSoftInputMode="stateHidden|adjustPan" >
</activity>
还是不管用
后来发现,加了一句
android:transcriptMode="alwaysScroll"
<span style="white-space:pre"> </span><ListView
android:id="@+id/listview_personal_chatting"
android:layout_width="fill_parent"
android:layout_height="match_parent"
android:cacheColorHint="#0000"
android:divider="@null"
android:dividerHeight="5dp"
android:scrollbarStyle="outsideOverlay"
android:stackFromBottom="true"
android:transcriptMode="alwaysScroll"
/>
本文详细介绍了如何通过修改XML布局文件中的属性来解决聊天应用中输入框被屏幕内容遮挡的问题。具体步骤包括设置特定的软键盘模式和滚动模式,确保输入框始终可见。此外,还分享了实例代码,帮助开发者快速定位并解决问题。
1089

被折叠的 条评论
为什么被折叠?



