Comments (23)
小伙子,我按照你说的方式去操作了很多,而且你说的这个内存没有复现出来的问题
那就奇怪了,我直接下载的Demo运行,在手机上操作进入相片选择(选择图片或者不选择图片--我的 Fragment-->点我进入选择图片界面),然后按返回或则标题栏上面的返回,就会提示这个.
from androidproject.
项目不错,希望SettingBar里面像qq那样能把红点加进去就完美了
from androidproject.
你把 SettingBar 当做 FrameLayout 去用就可以了
from androidproject.
群怎么被禁言了,想问问题也问不了。。
from androidproject.
私信我即可
from androidproject.
底部BottomNavigationView 长按会弹Toast
from androidproject.
这个是 Google 写死的,没办法关闭
from androidproject.
嵌套太多层了,只想要一部分功能,却被迫引入全部的东西
from androidproject.
多谢建议哈,你可以把自己需要那一部分复制到项目中
from androidproject.
首先感谢大神辛劳!
提一个问题:InputDialog的方法(继承自BaseDialog):
public void onDismiss(BaseDialog dialog){
getSystemService(InputMethodManager.class).hideSoftInputFromWindow(this.getCurrentFocus().getWindowToken(), 0);
} 隐藏输入法不会生效(mInput.getCurrentWondowToken()一样)。
个人拙见:隐藏输入法必须在父类方法onDismiss()之前,不然dialog被销毁之后拿不到令牌,可能就会导致无法正确隐藏输入法。
from androidproject.
多谢小伙子提醒,我纠正了一下,在 BaseDialog dismiss 之前先隐藏输入法。
from androidproject.
Demo里面是不是缺了类com.hjq.demo.http.glide.GlideApp,报错了
from androidproject.
@zjc163 这个类是 Gradle 编译时生成的,你不用管,直接运行项目即可。
from androidproject.
考不考虑用上ViewBinding呀
from androidproject.
@LiuXingzhou 小伙子,暂时不考虑,原因在常见疑问上面有写了
from androidproject.
Demo中点开选择图片然后关闭,有内存泄漏?
├─ android.view.inputmethod.InputMethodManager class
│ Leaking: NO (InputMethodManager↓ is not leaking and a class is never leaking)
│ ↓ static InputMethodManager.sInstance
├─ android.view.inputmethod.InputMethodManager instance
│ Leaking: NO (InputMethodManager is a singleton)
│ Library leak match: instance field android.view.inputmethod.InputMethodManager#mLastSrvView
│ ↓ InputMethodManager.mLastSrvView
│ ~~~~~~~~~~~~
├─ com.hjq.demo.widget.StatusLayout instance
│ Leaking: YES (View.mContext references a destroyed activity)
│ Retaining 341625 bytes in 4540 objects
│ View not part of a window view hierarchy
│ View.mAttachInfo is null (view detached)
│ View.mID = R.id.hl_image_select_hint
│ View.mWindowAttachCount = 1
│ mContext instance of com.hjq.demo.ui.activity.ImageSelectActivity with mDestroyed = true
│ ↓ StatusLayout.mContext
╰→ com.hjq.demo.ui.activity.ImageSelectActivity instance
Leaking: YES (ObjectWatcher was watching this because com.hjq.demo.ui.activity.ImageSelectActivity received
Activity#onDestroy() callback and Activity#mDestroyed is true)
Retaining 44426 bytes in 826 objects
key = 13029545-1803-48a3-9d32-3c4d15464aed
watchDurationMillis = 5265
retainedDurationMillis = 263
mApplication instance of com.hjq.demo.app.AppApplication
mBase instance of androidx.appcompat.view.ContextThemeWrapper, not wrapping known Android context
from androidproject.
小伙子,我按照你说的方式去操作了多次,并没有复现出来你说的这个内存泄漏的问题
from androidproject.
小伙子,我按照你说的方式去操作了很多,而且你说的这个内存没有复现出来的问题
那就奇怪了,我直接下载的Demo运行,在手机上操作进入相片选择(选择图片或者不选择图片--我的 Fragment-->点我进入选择图片界面),然后按返回或则标题栏上面的返回,就会提示这个.
刚轮哥发的最新的apk 体验了一把 流畅丝滑 你的这个问题我好像也碰到了
from androidproject.
大佬,技术中台该更新一下库了哈,例如EasyHttp还是用的10.2
from androidproject.
@githubnimabi 小伙子,目前 AndroidProject 的策略是半年更新一次,一次更新半年的量,因为在更新的过程中代码是不稳定的,所以不会提交任何代码到 Github 上面。
from androidproject.
请问下能否适配下折叠屏手机,太难了o(╥﹏╥)o
from androidproject.
内存泄漏:先点登入见面-》再点分享界面-》再点登入界面。一共可以触发两次
from androidproject.
@cyl1996219 小伙子,提问题请通过创建新的 issue 来提,这里不再处理任何问题。
from androidproject.
Related Issues (20)
- ActivityManager类里面的mActivitySet 新插入的activity存可能可能会错位 HOT 5
- Download issue HOT 1
- Pad或手机分屏模式下 activity转场动画会闪黑屏 HOT 7
- 调用appadapter中removeItem后,后续item 的 position 不正确 HOT 2
- 在Android11机型上面,webview有时会加载不出来 HOT 1
- 您好,在Android11机型上面,webview有时候会加载不出来。 HOT 2
- 把个人中心activity的布局,写在fragment里的时候点击头像条目下方的条目,头像条目有选中的效果 HOT 3
- androidx.appcompat:appcompat升级 HOT 3
- 关于目前App比较常态化得问题 HOT 1
- 布局中有androidx.core.widget.NestedScrollView组件会阻断BaseActivity中点击空白收起键盘的逻辑 HOT 2
- BaseActivity:startActivityForResult疑惑 HOT 2
- 日期dialog 设置当前日期为2018-12-31, 但页面上显示的是2018-12-30 HOT 3
- 项目缺少 com.hjq.demo.http.glide.GlideApp 文件 HOT 1
- Q群满了老哥 进不去啊 HOT 1
- 又出现了 不清楚是什么问题。 HOT 3
- 打开 AndroidProject APP,LeakCanary 检测启动页出现内存泄露 HOT 5
- gradle升到7+以后aop切面不适配了 HOT 2
- 关于使用TabAdapter配合ViewPager时,导航栏超出屏幕范围后滑动viewpager时导航栏item不显示 HOT 3
- AppActivity实现OnHttpListener意义是什么? HOT 1
- 查看大图模块中onItemClick position 返回值问题 HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from androidproject.