上一页 1 ··· 6 7 8 9 10 11 12 13 14 15 下一页
摘要: https://www.jianshu.com/p/59b266c644f3 阅读全文
posted @ 2020-02-19 19:44 溜了溜 阅读(79) 评论(0) 推荐(0) 编辑
摘要: 直接上代码 jsp <%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%> <!DOCTYPE html> <html> <head> <meta charset="utf-8"> 阅读全文
posted @ 2020-02-17 22:46 溜了溜 阅读(540) 评论(0) 推荐(0) 编辑
摘要: 区别就在这里,Activity中添加菜单要这样: public boolean onCreateOptionsMenu(Menu menu) { getMenuInflater().inflate(R.menu.main_menu,menu); return super.onCreateOption 阅读全文
posted @ 2020-02-13 19:42 溜了溜 阅读(467) 评论(0) 推荐(0) 编辑
摘要: 首先是activity中的布局 <?xml version="1.0" encoding="utf-8"?> <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/ap 阅读全文
posted @ 2020-02-13 19:33 溜了溜 阅读(7392) 评论(0) 推荐(0) 编辑
摘要: 方法如下: LayoutInflater flater= LayoutInflater.from(getContext()); //R.layout.title处填写目标布局 final View view=flater.inflate(R.layout.title,null); //以获取一个Ed 阅读全文
posted @ 2020-02-12 19:43 溜了溜 阅读(743) 评论(0) 推荐(0) 编辑
摘要: 效果如下: 账目显示用的是Listview,要实现的功能为使其根据所在Item是“收入”还是“支出”来把数字设置成绿色或红色 方法是自定义适配器,并重写其中getView()函数,实现如下: //自定义适配器 public class madaper extends SimpleAdapter{ p 阅读全文
posted @ 2020-02-12 19:36 溜了溜 阅读(1353) 评论(0) 推荐(0) 编辑
摘要: 今天对账本app进行了一些功能添加以及界面的优化,fragment使用得很不熟练,留到明天针对性练练再总结,今天先总结些小东西。 阅读全文
posted @ 2020-02-12 19:04 溜了溜 阅读(64) 评论(0) 推荐(0) 编辑
摘要: 今天主要对fragment进行初步的运用,以及对账本app进行了界面的优化和功能完善,但技术使用还很不熟练,相关的知识的总结会在以后进行总结。 界面目前的效果: 阅读全文
posted @ 2020-02-11 21:33 溜了溜 阅读(82) 评论(0) 推荐(0) 编辑
摘要: https://blog.csdn.net/cen_yuan/article/details/52204281 阅读全文
posted @ 2020-02-10 18:54 溜了溜 阅读(506) 评论(0) 推荐(0) 编辑
摘要: 布局文件 <?xml version="1.0" encoding="utf-8"?> <TableLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.androi 阅读全文
posted @ 2020-02-09 19:35 溜了溜 阅读(650) 评论(0) 推荐(0) 编辑
上一页 1 ··· 6 7 8 9 10 11 12 13 14 15 下一页