02 2022 档案

摘要:1. 显示一张图片 要求:显示不修改的尺寸和原尺寸(110,110) 2. 自定义画板 // 用Canvas ,Paint,Path:制作个人绘画板 public class MyPaint07 extends View { private Paint paint; private Path pat 阅读全文
posted @ 2022-02-21 00:10 remix_alone 阅读(37) 评论(0) 推荐(0) 编辑
摘要:问题描述 Canvas.drawBitmap(Bitmap bitmap,Rect srcRect ,Rect dstRect , paint) 绘制图片比原图片尺寸大 因此需要 1. 对Bitmap缩放或扩大 2. 根据系统尺寸对Bitmap缩放扩大 1. private Bitmap chang 阅读全文
posted @ 2022-02-21 00:02 remix_alone 阅读(57) 评论(0) 推荐(0) 编辑
摘要:Rect是Android里正方形类 其中代表 Rect(左边,顶部,右边,底部) 即x=0到左边的距离,y=0到顶部的距离,x=0到右边的距离,y=0到底部的距离 阅读全文
posted @ 2022-02-20 23:10 remix_alone 阅读(268) 评论(0) 推荐(0) 编辑
摘要:Selector 在drawable文件夹中,对check="true" or "false"的按钮作图片改变 <selector xmlns:android="http://schemas.android.com/apk/res/android"> <item android:state_chec 阅读全文
posted @ 2022-02-19 10:55 remix_alone 阅读(21) 评论(0) 推荐(0) 编辑
摘要:ButterKnief 通过注解和反射,传入id直接绑定组件 注解 @BindView(int id) 参数: id:组件的id值 作用: 根据id值绑定组件 方法 ButterKnief.bind(this) 获取当前context 使用: 注意,组件不能够private public class 阅读全文
posted @ 2022-02-19 07:25 remix_alone 阅读(34) 评论(0) 推荐(0) 编辑
摘要:Java注解 Annotation类型,是可以被程序读取的,用于描述数据的元数据。 如 @Overriade:重写 @bind() 注解: 而注解加反射:让反射获取注解的值进行多操作 阅读全文
posted @ 2022-02-19 07:17 remix_alone 阅读(25) 评论(0) 推荐(0) 编辑
摘要:Retrofit 简介:对OkHttp的封装 根据请求接口,获取响应 注解 方法注解 @GET:声明为GET请求方式,@GET(""):详细路径 @POST:声明为POST请求方式,@POST(“”):详细路径 @HTTP:声明为自定义请求方式 @FormUrlEncoding:对post请求,声明 阅读全文
posted @ 2022-02-14 04:21 remix_alone 阅读(153) 评论(0) 推荐(0) 编辑
摘要:位置 File-setting-plusing 。 1. Translation 先到https://ai.youdao.com/console/#/app-overview 申请文本翻译api的id和密钥 2. 下载Translation 3. file - setting - tools - t 阅读全文
posted @ 2022-02-13 09:46 remix_alone 阅读(99) 评论(0) 推荐(0) 编辑
摘要:1. bilibili 2. 视频软件 3. 大数据展示 4. 智能家居 5. 人工智能客户端 阅读全文
posted @ 2022-02-09 19:30 remix_alone 阅读(21) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示