Closed Papaddington closed 2 years ago
请问是否可以重新实现 LinearContentContainer
重写 layoutContainer
来解决此问题
试了下,基于 LinearLayout 实现 的那个场景,依然有相同的问题。输入框行数变化收,RecyclerView的高度也变化了。你可以先尝试监听EditText的高度变化,主动将RecyclerView滚动到最底部。
试了下,基于 LinearLayout 实现 的那个场景,依然有相同的问题。输入框行数变化收,RecyclerView的高度也变化了。你可以先尝试监听EditTextView的高度变化,主动将RecyclerView滚动到最底部。
只监听 EditTextView
的行度变化的话,我猜测再次弹出面板还是会遮挡 RecyclerView
试了下,基于 LinearLayout 实现 的那个场景,依然有相同的问题。输入框行数变化收,RecyclerView的高度也变化了。你可以先尝试监听EditTextView的高度变化,主动将RecyclerView滚动到最底部。
只监听
EditTextView
的行度变化的话,我猜测再次弹出面板还是会遮挡RecyclerView
每次键盘弹起的时候,都可以主动调用RecyclerView滚动到底部
试了下,基于 LinearLayout 实现 的那个场景,依然有相同的问题。输入框行数变化收,RecyclerView的高度也变化了。你可以先尝试监听EditTextView的高度变化,主动将RecyclerView滚动到最底部。
只监听
EditTextView
的行度变化的话,我猜测再次弹出面板还是会遮挡RecyclerView
每次键盘弹起的时候,都可以主动调用RecyclerView滚动到底部
刚刚空下来,写代码验证了一下监听 EditTextView
的行度变化滚动到底部 的方案,发现还是会遮挡。
再试试post或postDelayed的方式呢
发自我的iPhone
------------------ 原始邮件 ------------------ 发件人: Paddington @.> 发送时间: 2022年8月9日 20:13 收件人: DSAppTeam/PanelSwitchHelper @.> 抄送: z少侠会轻功 @.>, Comment @.> 主题: 回复:[DSAppTeam/PanelSwitchHelper] [缺陷] 底部输入框文字过多时会遮挡消息列表 (Issue #172)
试了下,基于 LinearLayout 实现 的那个场景,依然有相同的问题。输入框行数变化收,RecyclerView的高度也变化了。你可以先尝试监听EditTextView的高度变化,主动将RecyclerView滚动到最底部。
只监听 EditTextView 的行度变化的话,我猜测再次弹出面板还是会遮挡 RecyclerView
每次键盘弹起的时候,都可以主动调用RecyclerView滚动到底部
刚刚空下来,写代码验证了一下监听 EditTextView 的行度变化滚动到底部 的方案,发现还是会遮挡。
— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.Message ID: @.***>
我是基于 ChatActivity
修改的,行数变化则调用 scrollToBottom
方法,scrollToBottom
方法中已经加了 post
了
我这边已经复现了,非常感谢你的反馈
Androidx版本:是
PanelSwitchHelper版本:v1.4.0
手机型号: OnePlus9
手机系统版本: Android 12
问题描述:底部输入框文字过多时会遮挡消息列表。
复现步骤:
ChatActivity
测试数据改为 20 条左右。Log提供:
正常状态:
切换到键盘状态: