自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(10)
  • 资源 (1)
  • 收藏
  • 关注

原创 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 11:09:26 299

转载 Activity生命周期

转载   https://blog.csdn.net/liuhe688/article/details/6733407我们来看一下这一张经典的生命周期流程图:相信不少朋友也已经看过这个流程图了,也基本了解了Activity生命周期的几个过程,我们就来说一说这几个过程。1.启动Activity:系统会先调用onCreate方法,然后调用onStart方法,最后调用onResume,A...

2018-08-28 11:01:48 28810 2

原创 观察者Observe(刷新数据)

自定义一个观察者:public class MyObservable extends Observable { private static MyObservable instance = null; public static MyObservable getInstance() { if (null == instance) { ...

2018-04-11 15:35:39 1251

原创 动态获取权限的快速用法

把需要的权限抽取出来放到全局(可以放在BaseActivity): protected static final String PERMISSIONS[] = { Manifest.permission.CAMERA, Manifest.permission.RECORD_AUDIO,// Manifest.permi

2018-04-11 15:00:37 866

原创 有符号、无符号的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 14:42:57 11094 3

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

蓝牙与设备进行自动适配: 与设备连接时一般通过广播BroadcastReceiver来实现,但是为了实现蓝夜与设备的自动适配,我们需要自定义一个广播, public class PairingRequest extends BroadcastReceiver { String strPsw = "1234"; //适配码 final String ACTION_...

2018-04-11 13:57:07 1358

原创 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 11:10:53 3662

原创 textView的一些使用技巧

在textview与其他的textview分配完了一行的空间的情况下,如果textview的文本不止一行,那么会出现下面的情况textview文本超出一行时,超出的部分省略号:android:singleLine="true"...

2018-03-08 15:11:52 233

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

当我们需要在AlertDialog 里弹Popwindow的时候,不设置一些属性的话,弹出的popwindow只能显示AlertDialog 的高度,比如这时候如果加个属性:popupWindow.setClippingEnabled(false);就可以全屏显示popwindow了

2018-02-26 22:36:59 2881 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 16:10:09 1112 1

用户排序搜索功能

可将用户按拼音首字母排序并搜索。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。

2018-03-08

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除