上一页 1 ··· 12 13 14 15 16 17 18 19 20 ··· 25 下一页
摘要: repositories { google() mavenCentral() } dependencies { implementation 'com.github.bumptech.glide:glide:4.13.0' annotationProcessor 'com.github.bumpte 阅读全文
posted @ 2022-02-16 20:22 软工小蜗牛 阅读(96) 评论(0) 推荐(0)
摘要: ImageView主要用于显示图像资源,Bitmap或Drawable资源,同时也常用于图片渲染调色,图片缩放剪裁等 src属性 编辑内容 可以放置图片 scaleType图片缩放类型fitXY为填满空间 <ImageView android:id="@+id/Igv_1" android:layo 阅读全文
posted @ 2022-02-16 20:22 软工小蜗牛 阅读(149) 评论(0) 推荐(0)
摘要: RadioButton是圆圈按钮 主要属性与Button类似,例如在性别选择上的运用 用要到RadioGroup 将同组RadioButton放在同一个RadioGroup里即可实现单选 <RadioGroup android:layout_width="wrap_content" android: 阅读全文
posted @ 2022-02-14 22:19 软工小蜗牛 阅读(226) 评论(0) 推荐(0)
摘要: CheckBox为复选框 <TextView android:id="@+id/tv_1" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="你会哪些移动开发:" androi 阅读全文
posted @ 2022-02-14 22:19 软工小蜗牛 阅读(260) 评论(0) 推荐(0)
摘要: <stroke android:width="2dp" android:color="#999999" /> <corners android:radius="10dp" /> 阅读全文
posted @ 2022-02-14 22:18 软工小蜗牛 阅读(91) 评论(0) 推荐(0)
摘要: 在创建button标签后添加跳转操作 首先要在java层声明Button属性 private Button 名称 之后找到空间 名称 = (Button) findviewById(R.id.Button标签id) 再设置一个点击事件 public class MainActivity extend 阅读全文
posted @ 2022-02-13 20:44 软工小蜗牛 阅读(126) 评论(0) 推荐(0)
摘要: EditText是可编辑的文本 例如输入用户名密码 特有标签 hint 提示语 在设置输入密码框时 可以用inputType=“textPassword”来设置密码的隐蔽 <EditText android:layout_width="match_parent" android:layout_hei 阅读全文
posted @ 2022-02-13 20:44 软工小蜗牛 阅读(135) 评论(0) 推荐(0)
摘要: <EditText android:layout_width="match_parent" android:layout_height="80dp" android:id="@+id/edx_1" android:textSize="16sp" android:textColor="#FFAD33" 阅读全文
posted @ 2022-02-13 20:44 软工小蜗牛 阅读(223) 评论(0) 推荐(0)
摘要: 常用属性 1.在某在元素左边 2.在某在元素右边 3.底部对齐 4.与父空间底部对齐 阅读全文
posted @ 2022-02-12 20:39 软工小蜗牛 阅读(92) 评论(0) 推荐(0)
摘要: 与线性布局相同,Textview标签中也有id 高度宽度等标签 textcolor文字颜色 textsize文字大小 ellipsize显示不下用...表示 maxlines最大行数 阅读全文
posted @ 2022-02-12 20:39 软工小蜗牛 阅读(109) 评论(0) 推荐(0)
上一页 1 ··· 12 13 14 15 16 17 18 19 20 ··· 25 下一页