码迷,mamicode.com
首页 >  
搜索关键字:@suppresslint    ( 119个结果
PTZView - 自定义云台控件
效果图以及相关的两张图片资源: 实现步骤: 继承View 重写onTouchEvent,根据触摸坐标计算角度 重写onDraw,根据角度旋转并绘制图片 代码如下: 1 import android.annotation.SuppressLint; 2 import android.content.C ...
分类:其他好文   时间:2020-06-09 20:34:52    阅读次数:72
团队冲刺第二阶段03
徐姣美:增加了忘记密码,移除密码的功能,进行密保验证。 代码: @SuppressLint("CommitPrefEdits") private void updatePassword (String passwordText, String questionText, String answerT ...
分类:其他好文   时间:2020-06-07 14:51:06    阅读次数:54
Java 需要注意的写法
public class InfoLoadPresenterImpl implements InfoLoadPresenter { private InfoLoadView ilv; private Handler handler; @SuppressLint("HandlerLeak") @Ove ...
分类:编程语言   时间:2019-01-29 22:00:53    阅读次数:186
android启动时的广告
1.新建welecomeactivity.java package com.example.dell.apps; import android.annotation.SuppressLint; import android.app.Activity; import android.content.I ...
分类:移动开发   时间:2019-01-11 11:31:45    阅读次数:205
Android + https 实现 文件上传
package com.example.wbdream.zigvine; import android.annotation.SuppressLint; import android.app.Activity; import android.content.ContentValues; import... ...
分类:移动开发   时间:2018-11-21 12:23:51    阅读次数:188
AndroidStudio中Handler类的内存溢出风险
package com.test.king.xmlparser; import android.annotation.SuppressLint; import android.app.Activity; import android.content.res.Resources; import and... ...
分类:移动开发   时间:2018-08-05 19:37:31    阅读次数:171
2:Bitmap和Base64转换
import java.io.ByteArrayOutputStream; import java.io.IOException; import android.annotation.SuppressLint; import android.graphics.Bitmap; import andro... ...
分类:其他好文   时间:2017-11-11 11:19:01    阅读次数:272
【Android】编译时的问题,使用的API大于最低版本
有两个方法【1】@TargetApi(xxx)//xxx需要填入数字,对应SDK版本号传送门【2】@SuppressLint("NewApi")方法2是屏蔽一切的错误方法1是只屏蔽某一版本的错误当然,代码里面最好还是做版本的判断if(Build.VERSION.SDK_INT<=Build.VERSION_CODES.M){ //dosomething... } else{ ..
分类:移动开发   时间:2017-11-04 00:16:21    阅读次数:191
Annotation注解及元注解
在使用许多第三方框架的时候,查阅源码如ButterKnife等。发现许多注解的使用,顿时觉得注解都玩不溜怎么称霸武林。当然无论Java还是Android的SDK中都有大量注解的使用,以前总是走马观花,印象中知道注解代表的意思,但开口总是说不清道不明,唯有总结方得始终。注解是附加在代..
分类:其他好文   时间:2017-07-07 19:59:15    阅读次数:5757
Android Notification状态栏通知
没有添加额外的震动及声音效果,这里直接实现了通知的功能,看效果吧: MainActivity.java package com.example.notification; import android.os.Bundle; import android.annotation.SuppressLint ...
分类:移动开发   时间:2017-07-03 18:04:41    阅读次数:228
119条   1 2 3 4 ... 12 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!