- 博客(13)
- 资源 (53)
- 收藏
- 关注
原创 Android path.op 和canvas.clipPath使用一例
因为path.op是Api19新增的,所以想要在Api19以下实现同样功能需要 采用画布的clip实现 path.op(path2, Path.Op.DIFFERENCE); path.op(path3, Path.Op.UNION); path.op(path4, Path.Op.DIFFERENCE);VS
2016-10-28 14:39:28 4221
原创 Android RectF转换为Rect的方法
1、原始方法:Rect rect = new Rect((int)rectF_Src.left, (int)rectF_Src.top, (int)rectF_Src.right, (int)rectF_Src.bottom);2、四舍五入取整Rect rect =new Rect
2016-10-28 14:33:21 4004
转载 三阶贝塞尔曲线绘制一个近似的圆方案
详见:http://spencermortensen.com/articles/bezier-circle/近似值:c = 0.551915024494f坐标系参考图: 结果: package com.louisgeek.louiscustomviewstudy;import android.content.Context;import android.graphics.Canvas;imp
2016-10-28 10:41:06 1593
原创 Android 自定义View练习:雷达图(比重)绘制
code:package com.louisgeek.louiscustomviewstudy;import android.content.Context;import android.content.res.Resources;import android.content.res.TypedArray;import android.graphics.Canvas;import andro
2016-10-27 17:11:33 1699
原创 Android 自定义View 模仿豆瓣App加载中Loading(也类似支付宝AppLoading)
下面是虚拟机中豆瓣App的gif录制图示: 下面是效果: 思路见完整代码:package com.louisgeek.louiscustomviewstudy;import android.animation.Animator;import android.animation.ValueAnimator;import android.content.Context;import andro
2016-10-25 23:06:55 1719
原创 Android 自定义View练习:风扇吹花瓣加载中loading进度条绘制
package com.louisgeek.louiscustomviewstudy;import android.animation.ValueAnimator;import android.content.Context;import android.content.res.Resources;import android.content.res.TypedArray;import an
2016-10-23 22:08:50 2329 2
原创 Android 自定义View 实现较美观的loading进度条的绘制
1、首先绘制得底部的边框: 左右两个半圆环,中间上下两条平行线 //边框背景 mPaint.setColor(mProgressBankgroundColor); mPaint.setStrokeWidth(mProgressBarFrameHeight); //移动到第一个半圆圆心 canvas.t
2016-10-19 20:55:46 1923 1
原创 Android 自定义View canvas.drawBitmap使用举例
素材来自网络:http://img.blog.csdn.net/20161019100826199 codepackage com.louisgeek.louiscustomviewstudy;import android.content.Context;import android.graphics.Bitmap;import android.graphics.BitmapFactory;
2016-10-19 10:10:07 1184 1
转载 Android的硬件加速及可能导致的问题
问题在Android 4.0的某些设备上,在View刷新时会出现花屏和屏幕上的某些View错位的现象。 经过调查后发现adb logcat中出现很多OpenGLRenderer: 0x501的错位: 09-18 14:34:39.090: DEBUG/OpenGLRenderer(3104): GL error from OpenGLRenderer: 0x501 09-18 14:34:39.
2016-10-19 08:49:33 691
原创 手机网页调用手机QQ QQ在线客服
<a target="_blank" href="mqqwpa://im/chat?chat_type=wpa&uin=1234567&version=1&src_type=web&web_src=lvlingseeds.com">手机QQ客服</a>
2016-10-14 15:57:44 11749 1
原创 HashMap与TreeMap区别
HashMap通过hashcode对其内容进行快速查找,在Map 中插入、删除和定位元素,HashMap 是最好的选择。TreeMap中所有的元素都保持着某种固定的顺序,如果你需要得到一个有序的结果你就应该使用TreeMap,HashMap中元素的排列顺序是不固定的。
2016-10-09 22:14:21 468
转载 java中Class对象详解、类名.class, class.forName(), getClass()区别
Java反射学习所谓反射,可以理解为在运行时期获取对象类型信息的操作。传统的编程方法要求程序员在编译阶段决定使用的类型,但是在反射的帮助下,编程人员可以动态获取这些信息,从而编写更加具有可移植性的代码。严格地说,反射并非编程语言的特性,因为在任何一种语言都可以实现反射机制,但是如果编程语言本身支持反射,那么反射的实现就会方便很多。1,获得类型类我们知道在Java中一切都是对象,我们一般所使用的对象都
2016-10-09 21:58:06 784
macOS Unlocker for VMware v3.0.3.7z
2020-08-03
罗技Logitech无线键盘鼠标重连工具2019
2019-03-14
Android 通用标题栏 简单封装实现
2016-03-20
Android二级分类列表ListView GirdView in ViewPager
2016-03-18
可展开列表ExpandableListView嵌套GirdView demo
2016-03-17
可扩展listview demo BaseExpandableListAdapter
2016-03-16
ExpandableListView—SimpleExpandableListAdpater
2016-03-16
ViewPager、Fragment、RadioButton实现顶部切换Tab页面
2016-03-10
应用程序之间能够彼此通信AidlDemo
2016-02-26
ListViewRefreshAndListViewLoad自定义实现下拉刷新和滑动加载
2016-02-23
Android Mvp模式 Demo
2016-02-16
Android多线程断点续传下载
2016-02-14
Vysor-win32-ia32-1.8.3 独立版
2018-05-07
SqlDbx_5.11_Unicode_Zh-Cn 中文破解最新版
2018-05-07
Win10可用的Microsoft SQL Server 2008 Native Client
2016-05-16
SlidingMenu demo android studio
2016-04-05
fragment之间用eventbus进行传值调用方法
2016-04-03
Otto和EventBus使用demo
2016-04-03
接口关联方式 Fragment之间通过Activity相互传值和调用方法
2016-03-31
Collapsing ToolbarLayout、AppBarLayout和NestedScrollView组合滑动折叠或拉伸Toolbar的demo
2016-03-29
Toolbar、TabLayout、AppBarLayout和RecyclerView组合可以滑动收起或显示Toolbar的demo
2016-03-29
CoordinatorLayout 、FloatingAct、Snackbar、DrawerLayout和NavigationView结合demo
2016-03-29
Android TabLayout、ViewPager实现顶部和底部Tab导航
2016-03-23
PagerTitleStrip和PagerTabStrip使用demo
2016-03-22
ListView、SwipeRefreshLayout实现下拉刷新,上拉加载、滑动加载(自动加载)和点击加载
2016-03-22
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人