会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
荣超
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
9
10
11
12
13
14
15
16
17
···
31
下一页
2020年12月2日
android 授权简单使用
摘要: 首先要在AndroidManifest.xml 加入权限 这里以存储权限和相机权限 来演示 <?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/andro
阅读全文
posted @ 2020-12-02 09:45 荣超
阅读(738)
评论(0)
推荐(0)
2020年11月23日
android 音频焦点兼容低版本问题
摘要: private var audioFocusRequest: AudioFocusRequest? = nullprivate var audioFocusChangeListener: AudioManager.OnAudioFocusChangeListener? = null //1.不能这么
阅读全文
posted @ 2020-11-23 17:45 荣超
阅读(273)
评论(0)
推荐(0)
android background属性问题
摘要: 尽量不要使用android 自定义的颜色 android:background="@color/material_on_surface_emphasis_medium" android:background="@color/design_default_color_secondary_variant
阅读全文
posted @ 2020-11-23 17:36 荣超
阅读(1818)
评论(0)
推荐(0)
2020年10月21日
AlertDialog 设置不同按钮的样式
摘要: 这里设置了字体颜色 dialog.setOnShowListener { dialog.getButton(AlertDialog.BUTTON_POSITIVE).setTextColor(ContextCompat.getColor(this,R.color.el_danger)) dialog
阅读全文
posted @ 2020-10-21 17:21 荣超
阅读(650)
评论(0)
推荐(0)
springboot controller统一异常处理
摘要: @ControllerAdvice @RestControllerAdvice //纯接口系统可以使用我的系统只有api接口 使用了RestControllerAdvice @RestControllerAdvice public class BaseExceptionHandler { priva
阅读全文
posted @ 2020-10-21 17:03 荣超
阅读(490)
评论(0)
推荐(0)
springboot 配置自定义拦截器
摘要: 自定义AuthcInterceptor拦截器类 @Component @Order(value = 1) public class AuthcInterceptor implements HandlerInterceptor { @Override public boolean preHandle(
阅读全文
posted @ 2020-10-21 16:54 荣超
阅读(609)
评论(0)
推荐(1)
2020年9月18日
android okhttp + retrofit使用
摘要: 首先需要引入依赖 implementation 'com.squareup.okhttp3:okhttp:4.8.0' implementation 'com.squareup.okio:okio:2.7.0' implementation 'com.squareup.retrofit2:retro
阅读全文
posted @ 2020-09-18 17:58 荣超
阅读(1558)
评论(0)
推荐(0)
2020年9月17日
android room 使用
摘要: 引入依赖 def room_version = "2.2.5"implementation "androidx.room:room-runtime:$room_version"implementation "androidx.room:room-ktx:$room_version"kapt "and
阅读全文
posted @ 2020-09-17 14:54 荣超
阅读(940)
评论(0)
推荐(0)
2020年9月14日
android 跳转系统设置Settings各个界面的ACTION
摘要: action 界面 ACTION_SETTINGS 系统设置界面 ACTION_APN_SETTINGS APN设置界面 ACTION_LOCATION_SOURCE_SETTINGS 定位设置界面 ACTION_AIRPLANE_MODE_SETTINGS 更多连接方式设置界面 ACTION_DA
阅读全文
posted @ 2020-09-14 14:35 荣超
阅读(4162)
评论(0)
推荐(0)
2020年9月9日
android 自定义圆角边框背景
摘要: <?xml version="1.0" encoding="utf-8"?> <shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="rectangle"> <!-- 背景颜色 --> <sol
阅读全文
posted @ 2020-09-09 16:55 荣超
阅读(798)
评论(0)
推荐(0)
上一页
1
···
9
10
11
12
13
14
15
16
17
···
31
下一页
公告