自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

不想做菜鸟的小螃蟹

菜鸟成长记录,欢迎批评指正

  • 博客(11)
  • 收藏
  • 关注

原创 【Android】音乐播放器边播边缓存(一)AndroidVideoCache的使用方法

最近在做音乐播放器类的需求,做了一段时间,抽出一段时间来整理一下。【前言】首先,记录一下如何找到我们与需求相关的开源库。可以在GitHub上进行搜索,我的主要需求是边播边缓存。因此我在GitHub上搜索“android”“cache”等关键词,搜到了这个 AndroidVideoCache,很好用。【使用流程】我也只是一个菜鸟,只阅读了一部分该源码的源码,所以在这里,我不讨论AndroidVide...

2018-04-28 16:30:53 8599 3

原创 【Git】将本地项目提交到远程

1.在Github网站或码云新建一个仓库2.在要上传的项目命令行依次输入echo "# meeting" >> README.mdgit initgit add README.mdgit commit -m "first commit"git remote add origin https://github.com/xxxx/xxxxx.gitgit push -u origi...

2018-04-27 13:34:08 463

原创 【Git】记录git常遇到的问题及解决方法

最近使用git遇到了一些问题,其中一些是反复遇到的。在这里做下记录。【教程】关于git入门学习,廖雪峰的主页写的真的简单易懂,还配有教学视频。https://www.liaoxuefeng.com/wiki/0013739516305929606dd18361248578c67b8067c8c017b000【分支】1.查看所有分支 git branch2.切换到某一分支 git checkout ...

2018-04-27 13:29:18 781

原创 【Android】recyclerView无数据,只显示一条数据

RecyclerView相比ListView,优化了许多,但是有许多要注意的地方。1.首先可能出现的情况是,recyclerView无数据展示。可能由如下原因导致:①getItemCount()方法要返回arrayList的长度,不能返回0.②要对recyclerView设置LayoutManager③数据发生变化以后,要通知adapter进行数据更新2.其次可能发生的情况是,只展示了一条数据!r...

2018-04-26 17:18:56 2666 3

原创 【Leetcode】665. Non-decreasing Array(Easy)

1.题目Given an array with n integers, your task is to check if it could become non-decreasing by modifying at most 1 element.We define an array is non-decreasing if array[i] <= array[i + 1] holds for...

2018-04-26 16:17:43 350

原创 【微信小程序】e.target.id和e.currentTarget.dataset.id的区别

1.需求page1展示一个列表,选中列表中的一项,获取该项的一些属性值,set到缓存里。page2 onLoad时从缓存里读取这个缓存,进行使用。2.原始代码①page1的xml文件 列表<view wx:for="{{courseList}}"> <template is="course_temp" data="{{item}}"></template&gt..

2018-04-24 16:10:51 39408 12

原创 【Leetcode】661. Image Smoother(Easy)

1.题目Given a 2D integer matrix M representing the gray scale of an image, you need to design a smoother to make the gray scale of each cell becomes the average gray scale (rounding down) of all the 8 s...

2018-04-24 15:49:39 217

原创 【Leetcode】657. Judge Route Circle(Easy)

1.题目Initially, there is a Robot at position (0, 0). Given a sequence of its moves, judge if this robot makes a circle, which means it moves back to the original place.The move sequence is represented ...

2018-04-24 14:26:10 163

原创 【算法】整钱分零钱的方法

昨天招商的笔试,第一道编程题。1.题目一位顾客有 k 元钱,想去银行兑换成零钱。银行有 n 种零钱, 分别输入零钱面额。第一行输入,顾客要询问几次;接下来每两行是一个测试用例。第一个数字代表银行有几种零钱,第二个数字数字代表顾客要换的钱数;第二行代表零钱的面值是多少。例如:33 51 2 53 61 2 34 1001 2 4 5 2.思路count记录顾客要询问几次,遍历count,第一个数字 ...

2018-04-23 12:38:29 3153

原创 【Leetcode】653. Two Sum IV - Input is a BST(Easy)

1.题目Given a Binary Search Tree and a target number, return true if there exist two elements in the BST such that their sum is equal to the given target.Example 1:Input: 5 / \ 3 6 / \ \...

2018-04-23 10:16:19 171

原创 【Android】ScrollView嵌套EditText出现的UI混乱

情景:在ScrollView中嵌套EditText,当EditText获取焦点时,会导致整个ScrollView自动下沉,软键盘也会遮挡住EditText.找了好几天办法,试图禁止ScrollView的自动滚动,没有用。看下效果图,巨恶心有木有。今天找到了一篇博文 https://blog.csdn.net/saroll57/article/details/44243397 ,虽然遇到的问题不一样...

2018-04-16 19:51:05 689

空空如也

空空如也

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

TA关注的人

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