![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Android
文章平均质量分 72
No_what_cant
这个作者很懒,什么都没留下…
展开
-
Canvas与自定义控件
大部分2D使用的api都在android.graphics和android.graphics.drawable包中 提供了图形处理相关的:Canvas、ColorFilter、Point(点)、RetcF(矩形)等提供了动画相关的:AnimationDrawable、BitmapDrawable等以图形处理来说,我们最常用到的就是在一个View上画一些图片、形状原创 2014-05-22 15:59:52 · 1368 阅读 · 0 评论 -
安卓之wifi搜索周围wifi
操作wifi是安装常用的操作安卓原创 2014-08-17 19:02:59 · 971 阅读 · 0 评论 -
ListFragment错误之java.lang.IllegalStateException: Content view not yet created解决办法
在onCreateView生命周期中调用 this.getListView() 会报错原创 2014-08-28 17:01:25 · 5258 阅读 · 0 评论 -
安卓调用webService技巧
以前没有接触webService安卓调用还是原创 2014-08-17 13:07:21 · 1023 阅读 · 0 评论 -
android 清空屏幕以及ProterDuffXfermode.Mode.clear
ProterDuff.Mode.clear网上基本翻译为 所绘制不会提交到画布上其实ProterDuff.Mode.clear个人理解是清屏幕的意思来个例子 image=(ImageView) this.findViewById(R.id.img); WindowManager manager= (WindowManager原创 2014-12-17 11:32:57 · 1401 阅读 · 0 评论 -
初识JNI之-Android Ndk环境搭建
什么是JNI:java本地接口,java Native Interface,它是一个协议,该协议可以与外部的本地C++/C代码进行沟通及调用外部的本地代码,外部的C++/C代码也可以调用Java代码什么是NDK: NDK是google提供开发一系列的工具集合,帮助开发者快速开发C++/C的动态库,并能自动打包成Apk首先去android开发者官网下载 android-ndk原创 2014-12-26 11:01:40 · 620 阅读 · 0 评论 -
初识JNI之-编写第一个HelloJNI
新建android项目1.首先声明native方法 这里我们在MainActivity中声明Navtive方法public class MainActivity extends ActionBarActivity { public native String HelloWorld();//1 static{ System.loadLibrary("Hello")原创 2014-12-26 12:14:06 · 621 阅读 · 0 评论 -
仿Ios滑动开关按钮
效果图实现思路外层是一个圆角矩形,内层则是一个小圆形,如果细细观看,会发现外层还是有一层灰色的边框的,至少滑动的动画,我们可以考虑Scroller或者其他的动画效果。 具体代码这里我们使用了自定义属性,所以要在values目录下建立一个attrs.xml文件,<attr name="onBackground" format="reference"></attr> 开启时背景的颜色<attr n原创 2015-02-15 10:52:31 · 2288 阅读 · 0 评论