上一页 1 ··· 9 10 11 12 13 14 15 16 17 ··· 31 下一页
摘要: 首先要在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)
摘要: private var audioFocusRequest: AudioFocusRequest? = nullprivate var audioFocusChangeListener: AudioManager.OnAudioFocusChangeListener? = null //1.不能这么 阅读全文
posted @ 2020-11-23 17:45 荣超 阅读(273) 评论(0) 推荐(0)
摘要: 尽量不要使用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)
摘要: 这里设置了字体颜色 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)
摘要: @ControllerAdvice @RestControllerAdvice //纯接口系统可以使用我的系统只有api接口 使用了RestControllerAdvice @RestControllerAdvice public class BaseExceptionHandler { priva 阅读全文
posted @ 2020-10-21 17:03 荣超 阅读(490) 评论(0) 推荐(0)
摘要: 自定义AuthcInterceptor拦截器类 @Component @Order(value = 1) public class AuthcInterceptor implements HandlerInterceptor { @Override public boolean preHandle( 阅读全文
posted @ 2020-10-21 16:54 荣超 阅读(609) 评论(0) 推荐(1)
摘要: 首先需要引入依赖 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)
摘要: 引入依赖 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)
摘要: 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)
摘要: <?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 下一页