安卓开发常见问题
请开始你的表演
这个作者很懒,什么都没留下…
展开
-
项目升级AndroidX后报The given artifact contains a string literal with a package reference ‘android.support
项目升级AndroidX时编译时报错:The given artifact contains a string literal with a package reference 'android.support.v4.content' that cannot be safely rewritten. Libraries using reflection such as annotation processors need to be updated manually to add support for a原创 2020-09-25 09:47:52 · 2328 阅读 · 0 评论 -
android 防止软键盘弹出影响界面布局的解决方法
在安卓开发过程中经常会用到软键盘,有时键盘弹出会把界面布局"顶"上去,解决方法:在AndroidManifest.xml 文件里,键盘弹出对应的注册下写 android:screenOrientation="portrait" android:windowSoftInputMode="adjustPan",就可以了,如下图所示:...原创 2019-02-27 14:31:22 · 2610 阅读 · 0 评论