安卓
qioxiang
这个作者很懒,什么都没留下…
展开
-
Android取消一进入页面自动弹出软键盘
将以下代码添加到根布局 android:focusable="true" android:focusableInTouchMode="true"原创 2019-11-09 13:54:18 · 702 阅读 · 0 评论 -
安卓—Popupwindow 点击消失
我们Popupwindow点击后无法消失,我们可以加入 window.setOutsideTouchable(true); 这一行代码就可以让他点击其他地方消失。 我们想点一下显示,在点一下消失 window.setFocusable(true); window.setBackgroundDrawable(new BitmapDrawable()); 加入这两行就可以了 参考:http://blo...原创 2018-11-06 19:39:29 · 488 阅读 · 0 评论 -
本地广播
发送广播 Intent intent = new Intent("aaa"); intent.putExtra("a","广播"); LocalBroadcastManager manager = LocalBroadcastManager.getInstance(this); manager.sendBroadcast(intent); 接收广播 LocalBroadcastManager m...原创 2019-05-24 10:20:12 · 133 阅读 · 0 评论 -
RxGalleryFinal使用,相册、拍照、裁剪、选择视频功能
GitHub地址:https://github.com/FinalTeam/RxGalleryFinal. 添加依赖 implementation 'cn.finalteam.rxgalleryfinal:library:1.0.9' implementation 'com.android.support:recyclerview-v7:28.0.0' compile 'com.github.bu...原创 2019-09-26 18:38:15 · 2019 阅读 · 1 评论 -
用RxPermissions来申请动态权限
GitHub地址:https://github.com/FinalTeam/RxGalleryFinal. 添加依赖 allprojects { repositories { ... maven { url 'https://jitpack.io' } } } dependencies { implementation 'com.githu...原创 2019-09-27 14:19:28 · 199 阅读 · 0 评论