EncounterTo
码龄7年
关注
提问 私信
  • 博客:52,442
    52,442
    总访问量
  • 9
    原创
  • 2,093,305
    排名
  • 6
    粉丝
  • 0
    铁粉
IP属地以运营商信息为准,境内显示到省(区、市),境外显示到国家(地区)
IP 属地:浙江省
  • 加入CSDN时间: 2017-09-25
博客简介:

EncounterTo的博客

查看详细资料
个人成就
  • 获得10次点赞
  • 内容获得7次评论
  • 获得31次收藏
创作历程
  • 1篇
    2021年
  • 9篇
    2018年
成就勋章
TA的专栏
  • 广播
  • popwindow
    1篇
  • alertdialog
    1篇
  • 手机适配
  • TimePicker
    1篇
  • 蓝牙
    1篇
  • java类型转换
    1篇
  • 动态权限
    1篇
  • Observe
    1篇
  • 获取控件位置
  • 基础
    1篇
  • Matrix
兴趣领域 设置
  • 移动开发
    kotlin
  • 学习和成长
    面试
创作活动更多

仓颉编程语言体验有奖征文

仓颉编程语言官网已上线,提供版本下载、在线运行、文档体验等功能。为鼓励更多开发者探索仓颉编程语言,现诚邀各位开发者通过官网在线体验/下载使用,参与仓颉体验有奖征文活动。

368人参与 去创作
  • 最近
  • 文章
  • 代码仓
  • 资源
  • 问答
  • 帖子
  • 视频
  • 课程
  • 关注/订阅/互动
  • 收藏
搜TA的内容
搜索 取消

Android 混淆配置

# Add project specific ProGuard rules here.# You can control the set of applied configuration files using the# proguardFiles setting in build.gradle.## For more details, see# http://developer.android.com/guide/developing/tools/proguard.html# If y.
原创
发布博客 2021.01.19 ·
332 阅读 ·
0 点赞 ·
0 评论 ·
1 收藏

Activity生命周期

转载   https://blog.csdn.net/liuhe688/article/details/6733407我们来看一下这一张经典的生命周期流程图:相信不少朋友也已经看过这个流程图了,也基本了解了Activity生命周期的几个过程,我们就来说一说这几个过程。1.启动Activity:系统会先调用onCreate方法,然后调用onStart方法,最后调用onResume,A...
转载
发布博客 2018.08.28 ·
28893 阅读 ·
5 点赞 ·
2 评论 ·
18 收藏

观察者Observe(刷新数据)

自定义一个观察者:public class MyObservable extends Observable { private static MyObservable instance = null; public static MyObservable getInstance() { if (null == instance) { ...
原创
发布博客 2018.04.11 ·
1301 阅读 ·
0 点赞 ·
0 评论 ·
1 收藏

动态获取权限的快速用法

把需要的权限抽取出来放到全局(可以放在BaseActivity): protected static final String PERMISSIONS[] = { Manifest.permission.CAMERA, Manifest.permission.RECORD_AUDIO,// Manifest.permi
原创
发布博客 2018.04.11 ·
902 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

有符号、无符号的short、int、long与byte之间的转换

short、int、long转byte 有符号的类型转换: //short类型转换byte[] public byte[] shortToByteArray(short s, boolean littleEndian) { //littleEndian:true 高位在前 false 低位在前 byte[] bytes = new byte[2];...
原创
发布博客 2018.04.11 ·
11390 阅读 ·
2 点赞 ·
3 评论 ·
12 收藏

蓝牙与设备的连接与自动适配

蓝牙与设备进行自动适配: 与设备连接时一般通过广播BroadcastReceiver来实现,但是为了实现蓝夜与设备的自动适配,我们需要自定义一个广播, public class PairingRequest extends BroadcastReceiver { String strPsw = "1234"; //适配码 final String ACTION_...
原创
发布博客 2018.04.11 ·
1441 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

TimePicker的一些使用方法

首先是布局的创建:  <TimePicker android:id="@+id/timepicker" android:layout_width="0dp" android:layout_height="wrap_content" android:layout_weight="1" android:background="#ffffff"..
原创
发布博客 2018.03.30 ·
3727 阅读 ·
0 点赞 ·
0 评论 ·
1 收藏

用户排序搜索功能

发布资源 2018.03.08 ·
zip

textView的一些使用技巧

在textview与其他的textview分配完了一行的空间的情况下,如果textview的文本不止一行,那么会出现下面的情况textview文本超出一行时,超出的部分省略号:android:singleLine="true"...
原创
发布博客 2018.03.08 ·
269 阅读 ·
1 点赞 ·
0 评论 ·
0 收藏

Android AlertDialog 里弹Popwindow数据显示不全问题

当我们需要在AlertDialog 里弹Popwindow的时候,不设置一些属性的话,弹出的popwindow只能显示AlertDialog 的高度,比如这时候如果加个属性:popupWindow.setClippingEnabled(false);就可以全屏显示popwindow了
原创
发布博客 2018.02.26 ·
2977 阅读 ·
0 点赞 ·
1 评论 ·
1 收藏

Android 7.0 BroadcastReceiver接收pendingIntent 传递过来序列化数据

原地址:http://blog.csdn.net/m190607070/article/details/78492887问题比较少见,只有你在跨进程传递数据的时候会碰到,如pendingIntent中在7.0中通过pendingIntent的bundle传递的数据时,你会发现serializable和parcelable的数据拿不到如果你只传了string,那是没问题的,但是如果你传了string...
原创
发布博客 2018.02.10 ·
1174 阅读 ·
2 点赞 ·
1 评论 ·
4 收藏