自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(20)
  • 收藏
  • 关注

翻译 YUV旋转之后转bitmap

public Bitmap getPreviewBitmap() { long time1 = System.currentTimeMillis(); byte[] newBytes; if (Integer.parseInt(mCameraId) == Camera.CameraInfo.CAMERA_FACING_BACK) { newBytes = ...

2019-03-22 14:05:49 931

原创 GLES20.glReadPixels获取RGB_888

if(mTakeShot){ mTakeShot = false; int snapWidth = mMeasuredHeight; int snapHeight = mMeasuredWidth; long time1 = System.currentTimeMillis(); int size = sn...

2019-03-15 14:50:00 2412

转载 矢量图转svg

一、<vector xmlns:android="http://schemas.android.com/apk/res/android" android:width="48dp" android:height="48dp" android:viewportWidth="48.0" android:viewportHeight="48.0">&a

2018-04-02 15:36:46 1289

转载 android关于弹出式通知的旧方案

/* * Copyright (C) 2011 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the “License”); * you may not use this file except in compliance with the License. ...

2018-04-02 15:12:49 962

原创 文字转语音代码记录

一、百度语音合成部分 package com.example.raisesail.zftts;import android.app.Service; import android.content.Context; import android.content.Intent; import android.content.IntentFilter; import android.med...

2018-04-02 15:06:18 2816

转载 关于GAStudio哥玄酷的华为时钟界面代码学习

package gastudio.clock.ui;import android.animation.Animator; import android.animation.AnimatorListenerAdapter; import android.animation.ValueAnimator; import android.content.Context; import andr...

2018-04-02 14:58:38 436

原创 RecycleView Demo

一、adapter package com.example.zyl.myrecyclerview;import android.content.Context; import android.support.v7.widget.RecyclerView; import android.view.LayoutInflater; import android.view.View; imp...

2018-04-02 14:56:35 251

转载 关于GAStudio哥玄酷的下载动画中代码一些个人的学习

package com.gastudio.gadownloading.ui;import android.animation.Animator; import android.animation.AnimatorListenerAdapter; import android.animation.AnimatorSet; import android.animation.ValueAnim...

2018-04-02 14:53:38 307

原创 ContentProvider Demo

一、注册 <provider android:name="com.android.settings.breathlamp.ZF_BreathLampProvider" android:authorities="com.android.settings.breathlamp.Provider" android:exported="tru...

2018-04-02 14:51:15 203

原创 ZF_BreathLampProvider(ContentProvider)

package com.android.settings.breathlamp;import android.content.ContentProvider; import android.content.ContentValues; import android.content.UriMatcher; import android.database.Cursor; import an...

2018-04-02 14:47:10 164

原创 ZF_BreathLampDBHelper 数据库辅助类(CotentProvider)

package com.android.settings.breathlamp;import android.content.Context; import android.database.sqlite.SQLiteDatabase; import android.database.sqlite.SQLiteDatabase.CursorFactory; import android....

2018-04-02 14:46:29 189

原创 ZF_BreathLampDao数据库操作类(ContentProvider)

package com.android.settings.breathlamp;import java.util.ArrayList; import java.util.Collections; import java.util.List;import com.android.settings.breathlamp.ZF_BreathLampDBHelper;import andr...

2018-04-02 14:44:54 155

原创 AIDL Demo

一、AIDL文件: // IZFTtsAidlInterface.aidl package com.example.raisesail.zftts;interface IZFTtsAidlInterface {void ZFSpeak(String str);}二、实现类: public class MyBinder extends IZFTtsAidlInterface....

2018-03-26 14:24:46 156

原创 从桌面点击图标启动app流程简要分析5.0

Launcher.java:点击某一图标 1.public void onClick(View v) { if (LauncherLog.DEBUG) { LauncherLog.d(TAG, “Click on view ” + v); } ... else if (tag instanceof AppInfo &...

2018-03-26 09:30:34 893

原创 SystemUI点击事件

点击状态栏弹出一部分a.)Activity——>dispatchTouchEvent(){ if (getWindow().superDispatchTouchEvent(ev)) {——>mWindow=PolicyManager.makeNewWindow()——>PhoneWindow. return true; ...

2018-03-26 09:29:39 837

原创 系统引用第三方AIDL,以systemui为例

zftts beginLOCAL_SRC_FILES += \ src/com/example/raisesail/zftts/IZFTtsAidlInterface.aidl \LOCAL_AIDL_INCLUDES += \ com/example/raisesail/zftts/IZFTtsAidlInterface.aid...

2018-03-26 09:29:27 541

原创 状态栏启动

a)Application类: Application和Activity,Service一样是Android框架的一个系统组件,当Android程序启动时系统会创建一个Application对象,用来存储系统的一些信息。 Android系统自动会为每个程序运行时创建一个Application类的对象且只创建一个,所以Application可以说是单例(singleton)模式的一个类。 通常...

2018-03-26 09:29:08 192

原创 android mk文件编译第三方jar、so以及AIDL

LOCAL_PATH := (callmy−dir)include(callmy−dir)include(call my-dir) include (CLEAR_VARS)LOCAL_PACKAGE_NAME := ZFTtsLOCAL_CERTIFICATE := platform如果使用的系统的包,需要引入他们使用的资源文件,否则会提示编译资源找不到的错误LOCAL_R...

2018-03-05 15:56:12 1348

原创 状态栏其他应用发送消息显示流程总结

以DeskClock为例: public static void showAlarmNotification(Context context, AlarmInstance instance) { … Notification.Builder notification = new Notification.Builder(context)//构建Notifica...

2018-03-05 15:42:10 423

原创 Android 5.0 状态栏(SystemUI)系统图标加载流程简单分析

1.PhoneStatusBar.java中复写了BaseStatusBar.java的createAndAddWindows()方法:public void createAndAddWindows() { addStatusBarWindow();}addStatusBarWindow()中:(a)makeStatusBarView()方法即之前提到的加载状态栏布局(b)其

2017-03-20 11:06:41 890

空空如也

空空如也

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

TA关注的人

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