摘要: Menu菜单: 在menu目录下新建main_menu.xml: <?xml version="1.0" encoding="utf-8"?> <menu xmlns:android="http://schemas.android.com/apk/res/android"> <item androi 阅读全文
posted @ 2019-09-16 20:08 干翻苍穹 阅读(365) 评论(0) 推荐(0) 编辑
摘要: 之前我也写过ViewPager的用法(现在忘干净了),复习一遍: 布局activity_main.xml: <?xml version="1.0" encoding="utf-8"?> <android.support.constraint.ConstraintLayout xmlns:androi 阅读全文
posted @ 2019-09-15 22:11 干翻苍穹 阅读(288) 评论(0) 推荐(0) 编辑
摘要: 新建工程:Spring Initializr SpringBoot就会帮我们建好SpringbootApplication启动类 内容: package com.fitsoft.springboot; import org.springframework.boot.SpringApplication 阅读全文
posted @ 2019-09-15 11:34 干翻苍穹 阅读(228) 评论(0) 推荐(0) 编辑
摘要: 首先添加依赖: junit junit 4.11 test org.springframework spring webmvc 4.3.1.RELEASE javax javaee api 7.0 provided 配置web.xml: spring org.springframework.web. 阅读全文
posted @ 2019-09-14 19:29 干翻苍穹 阅读(180) 评论(0) 推荐(0) 编辑
摘要: 之前使用的SimpleExpandableListAdapter有较大局限性,样式单一,修改难度大,这里不建议使用,而是利用BaseExpandableListAdapter,其实SimpleExpandableListAdapter也是继承自BaseExpandableListAdapter,这里 阅读全文
posted @ 2019-09-10 22:11 干翻苍穹 阅读(471) 评论(0) 推荐(0) 编辑
只有注册用户登录后才能阅读该文。 阅读全文
posted @ 2019-09-10 20:07 干翻苍穹 阅读(11) 评论(0) 推荐(0) 编辑
摘要: 使用基于ListView的扩展组件ExpandableListView制作类似QQ好友的列表 这里会用到SimpleExpandableListAdapter这个适配器 首先看一下这个适配器的构造方法 /** * Constructor * * @param context The context 阅读全文
posted @ 2019-09-09 21:39 干翻苍穹 阅读(209) 评论(0) 推荐(0) 编辑
摘要: 在org.springframework.web.servlet.DispatcherServlet之前加入 而在tomcat下为: 不同的应用服务器对应的静态资源文件处理的servlet名称不尽相同: 原文地址:https://blog.csdn.net/tustyao/article/detai 阅读全文
posted @ 2019-09-07 20:41 干翻苍穹 阅读(583) 评论(0) 推荐(0) 编辑
摘要: 笔记: 新建Maven工程,导入需要的jar包: 修改web.xml : 配置springmvc.xml: 上面的消息转换器是用来解析json用的 需要用到的几个实体类: Author: package com.fitsoft.entity; /** * @author Joker * @since 阅读全文
posted @ 2019-09-05 23:27 干翻苍穹 阅读(295) 评论(0) 推荐(0) 编辑
摘要: 仿照上一个ListView,写了GridView,基本内容差不多,抛代码: activity_main.xml : 其中,numColumns是设置多少列,verticalSpacing指上下两行的间距 grid_item.xml : 这里为LinearLayout的gravity设置居中显示(图片 阅读全文
posted @ 2019-09-05 11:19 干翻苍穹 阅读(216) 评论(0) 推荐(0) 编辑