最近开发中遇到,全屏模式下输入框在底部不会跟随软键盘弹起。于是网上搜索了解决的方案。大致找到了两种方案。 第一种 定义好此类 public class SoftKeyBoardListener { private View rootView;//activity的根视图 int rootViewVi ...
分类:
移动开发 时间:
2019-06-10 09:19:30
阅读次数:
117
启动时间 冷启动:adb shell am start -W -n package/activity停止app命令:adb shell am force-stop package获取启动包名:adb logcat|grep START com.android.browser/.BrowserActi ...
分类:
移动开发 时间:
2019-06-09 23:47:58
阅读次数:
152
2.1.1 Fragment和Activity都需要实现的接口——IBaseView/** * Description:Basic interface of all {@link Activity} * or * {@link Fragment} * or * {@link android.app. ...
分类:
移动开发 时间:
2019-06-09 10:07:45
阅读次数:
140
1,activity的xml布局(布局中有个Button按钮,点击按钮弹出一个popupwindow ) <?xml version="1.0" encoding="utf-8"?><LinearLayout xmlns:android="http://schemas.android.com/apk ...
分类:
移动开发 时间:
2019-06-09 10:06:22
阅读次数:
260
主布局 项目布局gridview_item 主activity ...
分类:
其他好文 时间:
2019-06-07 20:46:22
阅读次数:
91
1界面:Layout 2.控件 3.整个窗口:Activity 4. ctrl + H : 查看类的继承关系 5. shift + F1:打开类的文档 6. Button button = (Button) findViewById(R.id.button): (1)(Button): ctrl + ...
分类:
移动开发 时间:
2019-06-07 20:43:29
阅读次数:
113
一、adb启动activity: $ adb shell$ am start -n {包(package)名}/{包名}.{活动(activity)名称} 如:启动浏览器 # am start -n com.android.browser/com.android.browser.BrowserAct ...
分类:
数据库 时间:
2019-06-07 12:53:43
阅读次数:
99
1、aapt dump badging apk名称 2、adb logcat | grep START 或者 adb shell "logcat | grep START" 然后在模拟器中点击要获取package的app,查找cmp,cmp中前面是package name后面是activity na ...
分类:
移动开发 时间:
2019-06-06 22:53:16
阅读次数:
212
前言部分这次泄漏是自己代码写的太随意引起的,讲道理,代码写的太为所欲为了,导致有些问题根本就很难发现。 泄漏产生的原因,由于activity未被回收导致。这里给我们提出的一个警示,在使用上下文的时候,我们要特别注意,尤其是一些实例的上下文,如:activity、fragment等。 这次的错误原因就 ...
分类:
移动开发 时间:
2019-06-03 23:46:06
阅读次数:
130