码迷,mamicode.com
首页 >  
搜索关键字:@suppresslint    ( 119个结果
自定义动态生成折线图
packagecom.example.line; importjava.util.ArrayList; importjava.util.HashMap; importjava.util.List; importjava.util.Map; importandroid.annotation.SuppressLint; importandroid.content.Context; importandroid.graphics.Canvas; importandroid.graphics.Color; import..
分类:其他好文   时间:2015-06-23 18:13:13    阅读次数:90
(转)在低版本的SDK里使用高版本函数@SuppressLint("NewApi") or @TargetApi?
@SuppressLint 和 @TargetApi达到的效果是一样的,相对于SuppressLint ,TargetApi会根据函数里使用的API,严格匹配SDK版本,给出编译错误,但是SuppressLint 则忽略了SDK版本。例如:[java]view plaincopy@TargetApi...
分类:Windows程序   时间:2015-06-23 15:25:36    阅读次数:254
Android连接网络打印机进行打印
首先这是网络打印工具类,通过Socket实现,多说一句,网络打印机端口号一般默认的是9100package com.Ieasy.Tool;import android.annotation.SuppressLint;import java.io.IOException ;import java.io...
分类:移动开发   时间:2015-06-19 10:12:53    阅读次数:212
练习5
package?com.anhui.music_player.view; import?android.annotation.SuppressLint; import?android.app.Activity; import?android.app.AlertDialog; import?android.app.AlertDialog.Builder; import?and...
分类:其他好文   时间:2015-06-17 16:53:18    阅读次数:92
通用顶部自定义控件 可在XML自定义属性
直接上代码  自定义控件的主体内容 package com.x2l.onlineedu.mid.object; import android.annotation.SuppressLint; import android.content.Context; import android.content.res.TypedArray; import android.util.AttributeSe...
分类:其他好文   时间:2015-06-17 16:51:11    阅读次数:122
android 头像修改
http://blog.csdn.net/xiaanming/article/details/18730223看了这篇博客,整理出自己需要的代码写了下面这个自定义头像这么一个demo. 效果图: 关键代码: /*** * 头像控件 * @author LanYan * */ @SuppressLint({ "ClickableViewAccessibility", "Draw...
分类:移动开发   时间:2015-06-15 14:44:03    阅读次数:285
得到联系人数据
/**      * 查询所有联系人信息      *   这里查询的是data表         *         */     @SuppressLint("NewApi")     private void findContack() {                    ContentResolver cr = this.getContentResolver(); ...
分类:其他好文   时间:2015-06-10 09:01:14    阅读次数:135
安卓中級教程(11):深入研究餓了麼的各個java檔運作關係(1)
1 package com.example.ele_me.activity; 2 3 import android.annotation.SuppressLint; 4 import android.app.Activity; 5 import android.os.Bundle; 6 impo.....
分类:移动开发   时间:2015-06-03 15:13:09    阅读次数:210
android画虚线的自定义VIew
package com.yesway.ycarplus.view;import android.annotation.SuppressLint;import android.content.Context;import android.graphics.Canvas;import android.g...
分类:移动开发   时间:2015-05-28 13:53:46    阅读次数:194
Android按钮式进度条
1 package com.example.progress.demo; 2 3 import android.annotation.SuppressLint; 4 import android.content.Context; 5 import android.content.res...
分类:移动开发   时间:2015-05-28 12:31:07    阅读次数:184
119条   上一页 1 ... 4 5 6 7 8 ... 12 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!