<?xml version="1.0" encoding="utf-8" ?><rss version="2.0"><channel><title><![CDATA[sp_wei的博客]]></title><description><![CDATA[]]></description><link>https://blog.csdn.net/sp_wei</link><language>zh-cn</language><generator>https://blog.csdn.net/</generator><copyright><![CDATA[Copyright &copy; sp_wei]]></copyright><item><title><![CDATA[Android 杂记]]></title><link>https://blog.csdn.net/sp_wei/article/details/106378523</link><guid>https://blog.csdn.net/sp_wei/article/details/106378523</guid><author>sp_wei</author><pubDate>Wed, 27 May 2020 16:23:49 +0800</pubDate><description><![CDATA[本博客仅是个人想整理一下最近一段时间经常使用的功能类和方法，没有任何功能逻辑可言。
]]></description><category></category></item><item><title><![CDATA[关于ProgressBar代码使用的一些属性]]></title><link>https://blog.csdn.net/sp_wei/article/details/106373198</link><guid>https://blog.csdn.net/sp_wei/article/details/106373198</guid><author>sp_wei</author><pubDate>Wed, 27 May 2020 10:21:41 +0800</pubDate><description><![CDATA[感觉好久都没有登过CSDN了，最近工作任务量还可以，利用空闲时间看了一下自己的博客，发现确实好久没有更新动态了，下面这个功能也是开发时遇到的，当时卡了一下，现在准备记录一下，方便以后用时查看。话不多说先看看效果图吧：



这其实就是个GridView列表这个就不多说了，直接说里面的adapter和item布局吧

先上item的布局：


&lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    andr]]></description><category></category></item><item><title><![CDATA[Mac环境下Android Studio配置Git以及最基本使用]]></title><link>https://blog.csdn.net/sp_wei/article/details/90751888</link><guid>https://blog.csdn.net/sp_wei/article/details/90751888</guid><author>sp_wei</author><pubDate>Mon, 03 Jun 2019 15:31:57 +0800</pubDate><description><![CDATA[Git是分布式版本管理工具，现在使用十分广泛，相对于SVN，GIT的使用更加方便，在离线环境下，仍然可以进行版本控制工作。且速度十分快。在Windows下，先需要自行安装Git程序，网址git-scm.com/。安装之后就可以了。至于MacOS，因为已经自动集成了git，所以这步可以省略。Git程序在/usr/bin/git下。

1、配置git

Android Studio一般安装后已经自行...]]></description><category></category></item><item><title><![CDATA[Android得到当月天数]]></title><link>https://blog.csdn.net/sp_wei/article/details/84654440</link><guid>https://blog.csdn.net/sp_wei/article/details/84654440</guid><author>sp_wei</author><pubDate>Fri, 30 Nov 2018 15:31:33 +0800</pubDate><description><![CDATA[1.使用calendar类实现


/** 
 * 取得当月天数 
 * */  
public static int getCurrentMonthLastDay()  
{  
    Calendar a = Calendar.getInstance();  
    a.set(Calendar.DATE, 1);//把日期设置为当月第一天  
    a.roll(Calendar.DA...]]></description><category></category></item><item><title><![CDATA[定时任务AlarmManager的使用注意事项]]></title><link>https://blog.csdn.net/sp_wei/article/details/83146655</link><guid>https://blog.csdn.net/sp_wei/article/details/83146655</guid><author>sp_wei</author><pubDate>Thu, 18 Oct 2018 15:33:59 +0800</pubDate><description><![CDATA[AlarmManager介绍

见名知意闹钟管理者，当然不代表AlarmManager只是用来做闹钟应用的，作为一个系统级别的提示服务，其实它的作用和Timer有点相似 

1.在指定时长后执行某项操作
2.周期性的执行某项操作
并且AlarmManager对象可以配合Intent使用，定时的开启一个Activity,发送一个BroadCast,或者开启一个Service.那么用它实现定时任务再好...]]></description><category></category></item><item><title><![CDATA[android中将两张图片合并为一张图片]]></title><link>https://blog.csdn.net/sp_wei/article/details/83110808</link><guid>https://blog.csdn.net/sp_wei/article/details/83110808</guid><author>sp_wei</author><pubDate>Wed, 17 Oct 2018 15:37:11 +0800</pubDate><description><![CDATA[
private Bitmap mergeBitmap(Bitmap firstBitmap, Bitmap secondBitmap) {
        Bitmap bitmap = Bitmap.createBitmap(firstBitmap.getWidth(), firstBitmap.getHeight(),
                firstBitmap.getConfi...]]></description><category></category></item><item><title><![CDATA[iOS中延迟执行和取消的几种方式]]></title><link>https://blog.csdn.net/sp_wei/article/details/83110535</link><guid>https://blog.csdn.net/sp_wei/article/details/83110535</guid><author>sp_wei</author><pubDate>Wed, 17 Oct 2018 15:34:45 +0800</pubDate><description><![CDATA[公用延迟执行的方法：


- (void)delayMethod {
    NSLog(@&quot;delayMethodEnd&quot;);
}

方法一、performSelector 方法

1、延迟执行


/**
 *  延迟执行
 *
 *  @param aSelector  方法名称
 *  @param anArgument  要传递的参数，如果无参数，就设为nil
 *  @param de...]]></description><category></category></item><item><title><![CDATA[Android 签名]]></title><link>https://blog.csdn.net/sp_wei/article/details/83110309</link><guid>https://blog.csdn.net/sp_wei/article/details/83110309</guid><author>sp_wei</author><pubDate>Wed, 17 Oct 2018 15:26:28 +0800</pubDate><description><![CDATA[1.设置签名类


public class MyHandWritePanel extends PopupWindow {
    BaseActivity mContext;
    HandWrite handView;
    int availableHeight;
    private Bitmap bitmap;
    private int displayHeight,displ...]]></description><category></category></item><item><title><![CDATA[Android实现将View转化为图片并保存到本地]]></title><link>https://blog.csdn.net/sp_wei/article/details/83109699</link><guid>https://blog.csdn.net/sp_wei/article/details/83109699</guid><author>sp_wei</author><pubDate>Wed, 17 Oct 2018 15:14:46 +0800</pubDate><description><![CDATA[一、概述

app中有需求需要将View转化为图片并保存到本地，这里分两种情况： 
1.View本身已经显示在界面上 
2.View还没有添加到界面上或者没有显示（绘制）过

二、实现方法

对于上述的第一种情况我使用下面代码即可：


private void viewSaveToImage(View view) {
        view.setDrawingCacheEnabled(tru...]]></description><category></category></item><item><title><![CDATA[Android发送邮件到指定邮箱（可带附件）]]></title><link>https://blog.csdn.net/sp_wei/article/details/83109393</link><guid>https://blog.csdn.net/sp_wei/article/details/83109393</guid><author>sp_wei</author><pubDate>Wed, 17 Oct 2018 14:48:45 +0800</pubDate><description><![CDATA[第一种方法，调用系统的邮件软件来发送
众所周知在Android中调用其他程序进行相关处理，都是使用的Intent。当然，Email也不例外。
在 在Android中，调用Email有三种类型的Intent：
Intent.ACTION_SENDTO 无附件的发送

Intent.ACTION_SEND 带附件的发送

Intent.ACTION_SEND_MULTIPLE 带有多附件的发

 1....]]></description><category></category></item><item><title><![CDATA[iOS-AVCapture,自定义实现照相功能]]></title><link>https://blog.csdn.net/sp_wei/article/details/80360411</link><guid>https://blog.csdn.net/sp_wei/article/details/80360411</guid><author>sp_wei</author><pubDate>Fri, 18 May 2018 10:23:28 +0800</pubDate><description><![CDATA[需求：要求在APP界面内实现拍照功能，分析通常我们都会调用UIImagePickerController来调用系统提供的相机来拍照，这个控件非常好用。但是有时UIImagePickerController控件无法满足我们的需求，例如我们需要更加复杂的OverlayerView、需要在APP内实现，这时候我们就要自己构造一个摄像机控件了。 0.AVCapture  &amp;lt;AVFoundation/...]]></description><category></category></item><item><title><![CDATA[iOS里实现multipart/form-data格式上传文件]]></title><link>https://blog.csdn.net/sp_wei/article/details/80359842</link><guid>https://blog.csdn.net/sp_wei/article/details/80359842</guid><author>sp_wei</author><pubDate>Fri, 18 May 2018 10:01:43 +0800</pubDate><description><![CDATA[#pragma makr -- 上传图片到服务器  
-(void)sendImageWithImage:(UIImage *)img{  
    NSData *imageData;  
    NSString *imageFormat;  
    if (UIImagePNGRepresentation(img) != nil) {  
        imageFormat = @&quot;Content-Type: image/png \r\n&quot;;  
        imageD]]></description><category></category></item><item><title><![CDATA[html5 验证码倒计时重置]]></title><link>https://blog.csdn.net/sp_wei/article/details/79971131</link><guid>https://blog.csdn.net/sp_wei/article/details/79971131</guid><author>sp_wei</author><pubDate>Tue, 17 Apr 2018 10:43:34 +0800</pubDate><description><![CDATA[最近根据需求要求用户获取验证码时（在点击获取验证码时，先会对输入的用户名和密码做验证）如果密码错误时要求不计时可重新获取验证码，在这就需要重置倒计时了。好了还是直接贴代码吧var wait=60;//时间
var t;//计时器
var timeout = false;
function time(){
    if (wait == 0) {
        $('#btnVerify').re...]]></description><category></category></item><item><title><![CDATA[Ionic controller里的代码只能运行一次]]></title><link>https://blog.csdn.net/sp_wei/article/details/79932460</link><guid>https://blog.csdn.net/sp_wei/article/details/79932460</guid><author>sp_wei</author><pubDate>Fri, 13 Apr 2018 17:46:47 +0800</pubDate><description><![CDATA[解决办法$scope.$on('$ionicView.enter', function(e) {

    //你要执行的代码放里面，这样保证每次都会执行

});或者，在ui-router里面禁止cache,加上cache:false...
.state('tab.somepage', {
    url: '/somepage',
    cache:false, //加一句
    temp...]]></description><category></category></item><item><title><![CDATA[ionic中ionicView的生命周期]]></title><link>https://blog.csdn.net/sp_wei/article/details/79932151</link><guid>https://blog.csdn.net/sp_wei/article/details/79932151</guid><author>sp_wei</author><pubDate>Fri, 13 Apr 2018 17:44:38 +0800</pubDate><description><![CDATA[$scope.$on('$ionicView.loaded', function() {
  console.log(&quot;$ionicView.loaded&quot;);
});
$scope.$on('$ionicView.beforeEnter', function() {
  console.log(&quot;$ionicView.beforeEnter&quot;);
});
$scope.$on(&quot;$ionicVi...]]></description><category></category></item><item><title><![CDATA[Android图片bitmap的六种压缩方式]]></title><link>https://blog.csdn.net/sp_wei/article/details/79656068</link><guid>https://blog.csdn.net/sp_wei/article/details/79656068</guid><author>sp_wei</author><pubDate>Thu, 22 Mar 2018 16:41:56 +0800</pubDate><description><![CDATA[注释：此文章转载出处http://blog.csdn.net/harryweasley/article/details/51955467android中图片是以bitmap形式存在的，那么bitmap所占内存，直接影响到了应用所占内存大小，首先要知道bitmap所占内存大小计算方式：图片长度 x 图片宽度 x 一个像素点占用的字节数以下是图片的压缩格式：其中，A代表透明度；R代表红色；G代表绿色；...]]></description><category></category></item><item><title><![CDATA[iOS开发－DES加密解密算法]]></title><link>https://blog.csdn.net/sp_wei/article/details/79655601</link><guid>https://blog.csdn.net/sp_wei/article/details/79655601</guid><author>sp_wei</author><pubDate>Thu, 22 Mar 2018 16:33:31 +0800</pubDate><description><![CDATA[前几天后台给了一个Java代码的加解密方式，让我这边直接用。我对应着Java上解密方法找到一些适合iOS的DES加解密算法，特总结一下1、使用DES加密：//加密
+(NSString *) encryptUseDES2:(NSString *)plainText key:(NSString *)key{ 
  NSString *ciphertext = nil; const char *tex...]]></description><category></category></item><item><title><![CDATA[Android图表控件MPAndroidChart之曲线图的实现]]></title><link>https://blog.csdn.net/sp_wei/article/details/79655083</link><guid>https://blog.csdn.net/sp_wei/article/details/79655083</guid><author>sp_wei</author><pubDate>Thu, 22 Mar 2018 16:10:58 +0800</pubDate><description><![CDATA[注：本博客主要是参考http://blog.csdn.net/ww897532167/article/details/77334345这篇文章在贴代码之前先让我们熟悉一下图表类相同的地方X轴：XAxisY轴：YAxis图例：Legend描述：Description限制线：LimitLine选中图表中的值，可显示的视图：MarkerView（这个是自己定义的，你可以根据自己需求更改） 具体在图表中的...]]></description><category></category></item><item><title><![CDATA[android app -- 关于listview的不复用，解决item状态改变的问题]]></title><link>https://blog.csdn.net/sp_wei/article/details/79654722</link><guid>https://blog.csdn.net/sp_wei/article/details/79654722</guid><author>sp_wei</author><pubDate>Thu, 22 Mar 2018 15:37:49 +0800</pubDate><description><![CDATA[我们在平常的开发中使用listView基本上都是复用使用，但是也有一些特殊情况时不能在使用复用例如listView中的每一项都能操作（比如有个editText输入内容，上下滑动之后，看输入框里面的内容是不是要被改变，或者在下面复用的时候出现了这个输入框里面的内容。比如，一个单选框，这一项选中之后，上下滑动之后，看这个选中状态是不是乱跑了，之前的选中状态是不是消失了。还有每个item都有一个加载动画...]]></description><category></category></item><item><title><![CDATA[iOS中打包.a静态库]]></title><link>https://blog.csdn.net/sp_wei/article/details/78895393</link><guid>https://blog.csdn.net/sp_wei/article/details/78895393</guid><author>sp_wei</author><pubDate>Mon, 25 Dec 2017 18:06:57 +0800</pubDate><description><![CDATA[1.新建.a静态库工程
需要选择Static Library静态库工程模板新建工程，如下图：

新建静态库工程

实现需要打包的类，如下图：


实现需要打包的类
2.设置需要暴露的头文件
添加Headers, 步骤为：TARGET->Build Phases ->点+号->New Headers Phase，如下图：


然后找到Heaers(0 items)一栏, 点]]></description><category></category></item></channel></rss>