解决edittext输入多行可以滑动的问题
2024-10-14 11:21:19
解决edittext输入多行可以滑动的问题
Java代码:
- public class ScrollEditLayout extends ScrollView {
- public ScrollEditLayout(Context context) {
- super(context);
- }
- public ScrollEditLayout(Context context, AttributeSet attrs) {
- super(context, attrs);
- }
- public ScrollEditLayout(Context context, AttributeSet attrs, int defStyle) {
- super(context, attrs, defStyle);
- }
- @Override
- public boolean onInterceptTouchEvent(MotionEvent ev) {
- return false;
- }
- }
使用自定义的scrollview包裹editext即可
最新文章
- HTML 基础篇
- Maven的pom报maven-surefire-plugin:pom:2.12.4
- AIX 环境下动态路由
- excel中的TEXT函数
- Linux Bash Shell 快速入门
- buffer busy waits
- [AngualrJS + Webpack] Production Source Maps
- eclipse中更改默认编码格式
- CSS-DOM介绍
- 双绞线的制作,T568A线序,T568B线序
- Python 学习入门(23)—— 进程
- [javascript] postmessage
- sed运用
- Python编写的Linux邮件发送工具
- NOIP2008 立体图
- 阿里八八Beta冲刺博客集合贴
- 六、编写第一个应用【外部nodejs调用】
- 前端 HTML form表单标签 textarea标签 多行文本
- 排名前10的vue前端UI框架框架值得你掌握
- SpringdataJpa的官方API学习