上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 48 下一页
摘要: TextView主要用于文本显示 属性 1.android:textSize="22sp" 设置文本字体 2.android:textColor="#00ffff" 设置文本颜色 3.android:lineSpacingExtra="15sp" 设置文本的间距 4.android:lineSpac 阅读全文
posted @ 2021-03-10 23:47 python我的最爱 阅读(783) 评论(0) 推荐(0) 编辑
摘要: 1.UI主要控件分为 1. TextView 用于字体显示 2.ImageView 用于图片显示 3.EditText 用于文本输入显示 4.button 用于按钮 属性说明: android:background="@mipmap/bg" 用于设置背景 android:gravity="cente 阅读全文
posted @ 2021-03-10 23:28 python我的最爱 阅读(568) 评论(0) 推荐(0) 编辑
摘要: 1.相对于父类的相对布局 android:layout_centerInParent: 中间位置 android:layout_alignParentLeft:左边位置 android:layout_alignParentRight:右边位置 android:layout_alignParentTo 阅读全文
posted @ 2021-03-10 21:19 python我的最爱 阅读(258) 评论(0) 推荐(0) 编辑
摘要: 1.线性布局的属性 1.android:orientation : vertical 垂直 horizontal:水平 2.android:layout_margin="20dp" 相对于左边控件的距离 3.android:padding="20dp" 局内控件相对于边界的距离 4.android: 阅读全文
posted @ 2021-03-10 01:48 python我的最爱 阅读(225) 评论(0) 推荐(0) 编辑
摘要: 1.快捷键的设置 setting-->keymap-->class name complation2.常用快捷键 格式化代码 ctrl+alt+l 撤销 ctrl+z 反撤销 ctrl+shift+z 提示代码: ctrl+alt+空格 代码自动修正 alt + center ctrl + q 产生 阅读全文
posted @ 2021-03-09 23:30 python我的最爱 阅读(73) 评论(0) 推荐(0) 编辑
摘要: 1.方法一 设置global Encoding, Project Encoding, Default encoding for properties file,path Encoding 添加需要encoding的文件 方法二:如果需要对单个文件做GBK编码,可以搜索File Encoding进行编 阅读全文
posted @ 2021-03-09 23:02 python我的最爱 阅读(326) 评论(0) 推荐(0) 编辑
摘要: 1. 构造Adapter 用于生成列表 1.1构建item.xml 用于生成每一个TextView列表 <?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/a 阅读全文
posted @ 2021-02-21 22:43 python我的最爱 阅读(261) 评论(0) 推荐(0) 编辑
摘要: 1.Activity跳转 设置两个地方 1.1 需要在AndroidMainfest里面进行参数设置 将activity放到里面 <activity android:name=".ResultActivity"/> 1.2 在需要跳转的activity中使用意图调用目标的activity.class 阅读全文
posted @ 2021-02-18 00:43 python我的最爱 阅读(175) 评论(0) 推荐(0) 编辑
摘要: 这里介绍了两种方法进行图像的锐化, 即卷积mask为 [0, -1, 0, -1, 5, - 1, 0, -1, 0] 1.使用imread读取输入图片 方法1: 1. 使用Src.cols * Src.channel() 循环每一列和通道数, 使用Src.rows获得行数 2.使用Mat::zer 阅读全文
posted @ 2020-08-02 21:24 python我的最爱 阅读(711) 评论(0) 推荐(0) 编辑
摘要: 1. 使用imread读取图片,imread(path, mode) path表示图片读取的路径, mode表示图片的格式, 如果是0表示灰度读取 2.cvtColor(颜色模式转换) cvtColor(image, out_image, CV_BGR2RGB) 表示进行颜色通道转换 3. imwr 阅读全文
posted @ 2020-08-02 17:09 python我的最爱 阅读(4441) 评论(0) 推荐(0) 编辑
上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 48 下一页