上一页 1 ··· 9 10 11 12 13 14 15 16 17 ··· 27 下一页
摘要: 学习margin和padding的区别,参考菜鸟教程的资料: 首先margin代表的是偏移,比如marginleft = "5dp"表示组件离容器左边缘偏移5dp; 而padding代表的则是填充,而填充的对象针对的是组件中的元素,比如TextView中的文字 比如为TextView设置paddin 阅读全文
posted @ 2021-02-17 18:10 平安喜乐v 阅读(69) 评论(0) 推荐(0) 编辑
摘要: 学习RelativeLayout布局。 <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android: 阅读全文
posted @ 2021-02-16 08:31 平安喜乐v 阅读(61) 评论(0) 推荐(0) 编辑
摘要: 学习sqlite数据库的应用,完成了向数据库中存数据。 阅读全文
posted @ 2021-02-15 08:26 平安喜乐v 阅读(18) 评论(0) 推荐(0) 编辑
摘要: 完善家庭记账本的页面,为按钮添加了新颜色。使界面看起来更加的商业化。 阅读全文
posted @ 2021-02-14 08:27 平安喜乐v 阅读(13) 评论(0) 推荐(0) 编辑
摘要: 完成家庭记账本作业,实现了前端布局,后台的功能还没有实现。 明日任务:开始完善后台功能,包括存入数据库以及从数据库中调取数据。 阅读全文
posted @ 2021-02-13 08:21 平安喜乐v 阅读(17) 评论(0) 推荐(0) 编辑
摘要: wrap_content布局 wrap_content表示让当前的控件大小能够刚好包含里面的内容,也就是由控件内容决定当前控件的大小 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tool 阅读全文
posted @ 2021-02-12 08:19 平安喜乐v 阅读(31) 评论(0) 推荐(0) 编辑
摘要: 学习了match_parent(fill_parent) 对其方式 match_parent表示让当前控件的大小和父布局的大小一样,也就是由父布局来决定当前控件的大小 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/an 阅读全文
posted @ 2021-02-11 08:17 平安喜乐v 阅读(20) 评论(0) 推荐(0) 编辑
摘要: <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:id="@+id/LinearLayout1 阅读全文
posted @ 2021-02-10 08:15 平安喜乐v 阅读(17) 评论(0) 推荐(0) 编辑
摘要: 初步了解线性布局,Linearlayout 实现代码: <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" an 阅读全文
posted @ 2021-02-09 11:33 平安喜乐v 阅读(23) 评论(0) 推荐(0) 编辑
摘要: 定义布局,你可以在代码中实例化View对象并且开始构建树,但最容易和最高效的方式来定义布局则是使用一个XML文件,用XML来构成布局更加符合人的阅读习惯,而XML类似与HTML 使用XML元素的名称代表一个View。所以< TextView >元素会在你的界面中创建一个TextView控件,而一个< 阅读全文
posted @ 2021-02-08 11:31 平安喜乐v 阅读(23) 评论(0) 推荐(0) 编辑
上一页 1 ··· 9 10 11 12 13 14 15 16 17 ··· 27 下一页