AriesHoo / FastLib

一个Android项目级快速开发框架,节约大部分写常用功能时间以实现更多项目业务功能及体验上的优化。使用说明见wiki
https://github.com/AriesHoo/FastLib/wiki
Apache License 2.0
492 stars 95 forks source link

测试beta6_21版本 #18

Closed chenchali closed 5 years ago

chenchali commented 5 years ago

软键盘会将底部菜单顶上去,添加android:windowSoftInputMode="adjustPan" 无效,继承FastTitleActiviy会出现这个问题,继承默认AppCompatActivity不会有问题,是不是哪里设置了相关的代码

AriesHoo commented 5 years ago

KeyboardHelper设置了相应属性的。你注意区分开开就好

chenchali commented 5 years ago

那我该如何继承呢,因为这个AppImpl是全局设置的

chenchali commented 5 years ago

关掉这个KeyboardHelper会对依赖有影响吗?

AriesHoo commented 5 years ago

我的意思是你不需要设置底部输入框控制的时候就 根据那个Activity对象 是你的目标Activity设置 .setControlBottomEditTextEnable() 传递false即可

chenchali commented 5 years ago

明白了 谢谢

chenchali commented 5 years ago

设置了无效 --!

AriesHoo commented 5 years ago

你咋设置的?

chenchali commented 5 years ago

NavigationViewHelper.with(this).setControlBottomEditTextEnable(false);

AriesHoo commented 5 years ago

你这样是不行的。因为全局AppImpl已经初始化了一个NavigationViewHelper你不能再单独设置一个,你要在全局的那个NavigationViewHelper 设置过滤掉你不想控制的Activity

chenchali commented 5 years ago

可以了 非常感谢