02 2024 档案
摘要:在新版的Android中设置 https://jitpack.io 由原来的 原来在build.gradle中配置的 allprojects { repositories { google() jcenter() maven { url 'https://jitpack.io' } } } 改到了s
阅读全文
摘要:@Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); //全屏去状态栏(在setContentView之前) requestWindowFeature(Wi
阅读全文
摘要:布局文件 popup_menu.xml <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_wid
阅读全文
摘要:布局文件 activity_launch_simple.xml <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:
阅读全文
摘要:布局文件 activity_pager_tab_strip.xml <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmln
阅读全文
摘要:布局文件 <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android
阅读全文
摘要:现在有这么一个需求:就是我们日志的开与关是交给使用人员来控制的,而不是由我们开发人员固定写死的。大家都知道可以用aop来实现日志管理,但是如何动态的来实现日志管理呢?aop源码中的实现逻辑中有这么一个步骤,就是会依次扫描Advice的实现类,然后执行。我们要做的就是自定义一个advice的实现类然后
阅读全文
摘要:之前也写过一篇关于Spring Validation使用的文章,不过自我感觉还是浮于表面,本次打算彻底搞懂Spring Validation。 本文会详细介绍Spring Validation各种场景下的最佳实践及其实现原理,死磕到底!项目源码:spring-validation:https://g
阅读全文