上一页 1 ··· 8 9 10 11 12 13 14 15 16 ··· 27 下一页
摘要: 编写矩形边框的Drawable: <?xml version="1.0" encoding="utf-8"?> <shape xmlns:android="http://schemas.android.com/apk/res/android" > <!-- 设置一个黑色边框 --> <stroke 阅读全文
posted @ 2021-02-27 10:34 平安喜乐v 阅读(18) 评论(0) 推荐(0) 编辑
摘要: 学习了带边框的TextView : <solid android:color = "xxx"> 这个是设置背景颜色的 <stroke android:width = "xdp" android:color="xxx"> 这个是设置边框的粗细,以及边框颜色的 <padding androidLbott 阅读全文
posted @ 2021-02-26 10:33 平安喜乐v 阅读(19) 评论(0) 推荐(0) 编辑
摘要: margin可以设置负数,代码如下:<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:la 阅读全文
posted @ 2021-02-25 10:24 平安喜乐v 阅读(29) 评论(0) 推荐(0) 编辑
摘要: Button和padding的区别 代码如下:<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" andro 阅读全文
posted @ 2021-02-24 10:22 平安喜乐v 阅读(72) 评论(0) 推荐(0) 编辑
摘要: 实现梅花布局 <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:id="@+id/Rela 阅读全文
posted @ 2021-02-23 10:18 平安喜乐v 阅读(71) 评论(0) 推荐(0) 编辑
摘要: 带阴影的TextView 涉及到的几个属性: android:shadowColor:设置阴影颜色,需要与shadowRadius一起使用哦! android:shadowRadius:设置阴影的模糊程度,设为0.1就变成字体颜色了,建议使用3.0 android:shadowDx:设置阴影在水平方 阅读全文
posted @ 2021-02-22 18:32 平安喜乐v 阅读(24) 评论(0) 推荐(0) 编辑
摘要: 进一步了解了TextView的相关属性: id:为TextView设置一个组件id,根据id,我们可以在Java代码中通过findViewById()的方法获取到该对象,然后进行相关属性的设置,又或者使用RelativeLayout时,参考组件用的也是id! layout_width:组件的宽度,一 阅读全文
posted @ 2021-02-21 18:16 平安喜乐v 阅读(19) 评论(0) 推荐(0) 编辑
摘要: 正式学习textview的相关知识,参考菜鸟教程的内容。代码如下: <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/t 阅读全文
posted @ 2021-02-20 18:15 平安喜乐v 阅读(25) 评论(0) 推荐(0) 编辑
摘要: 今天在做建民老师的家庭记账本作业,今日实现了从sqlite数据库中调取数据,基本功能可以实现,添加账单,查看账单,以及计算总开销。并且重新修改了布局。 阅读全文
posted @ 2021-02-19 18:12 平安喜乐v 阅读(17) 评论(0) 推荐(0) 编辑
摘要: 学习margin和padding的区别,参考菜鸟教程的资料: 首先margin代表的是偏移,比如marginleft = "5dp"表示组件离容器左边缘偏移5dp; 而padding代表的则是填充,而填充的对象针对的是组件中的元素,比如TextView中的文字 比如为TextView设置paddin 阅读全文
posted @ 2021-02-18 18:11 平安喜乐v 阅读(71) 评论(0) 推荐(0) 编辑
上一页 1 ··· 8 9 10 11 12 13 14 15 16 ··· 27 下一页