自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(7)
  • 资源 (5)
  • 收藏
  • 关注

原创 Bad notification for startForeground

处理步骤:权限问题 : <uses-permission android:name="android.permission.FOREGROUND_SERVICE" />Android 8.0以上需要Notification需要设置个Channel下面2处都需要注意设置channelId2.1: 接收通知 Notification.Builder builder; if (Build.VERSION.SDK_INT >= B

2021-11-26 16:14:34 8565

原创 dialog 刘海屏、水滴屏、全面屏 全屏显示

// 关键代码Window window = dialog.getWindow(); if (window != null) { window.setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN); window.getDecorView().setPadding(0, 0, 0, 0);

2020-06-01 17:31:16 2249 2

原创 greendao 集成记录

参考链接地址: https://www.jianshu.com/p/b017ca5fe0abhttps://www.cnblogs.com/ssqhan/p/8082690.html配置Gradle buildscript { repositories { jcenter() mavenCentral() // 添加远程仓库地址...

2020-04-20 15:42:09 275

原创 com.google.android.material.tabs.TabLayout 选择tab 加粗字体加大

引用: https://blog.csdn.net/qq_34906385/article/details/93524163 <com.google.android.material.tabs.TabLayoutandroid:id="@+id/tablayout"android:layout_width=“match_parent”android:layout_height="...

2020-04-10 19:01:52 6417

转载 Android RecyclerView实现头部悬浮吸顶效果

参考修改链接: https://www.jianshu.com/p/dcfde6e997e2github下载地址: https://github.com/donkingliang/GroupedRecyclerViewAdapter修改地址:主要是去androidx.recyclerview:recyclerview 引用v7自带的recyclerview...

2019-10-31 15:30:23 1645

原创 java 发送邮件带附件

/**发送email/public class EmailUtil {/*toEmail 接收邮箱subject 主题content 内容userName 发送邮箱账号password 发送邮箱密码 (163是授权码)fileList 附件fromEmail 发送邮箱*/public static void sendAttachmentM...

2019-08-15 10:56:07 577

原创 double 去科学计数法显示

/*** double 转 String 去科学计数法** @param d double值* @param a 需要保留小数点后位数* @return*/public final static String doubleToString(double d, int a) {BigDecimal d1 = new BigDecimal(Double.toString(d));B...

2019-05-15 11:48:30 3593

NestedScrollView + TabLayout 实现高仿淘宝商品详情页

NestedScrollView + TabLayout 实现高仿淘宝商品详情页 仿h5锚点效果

2018-10-25

视频播放器 demo

MediaPlayer + TextureView 实现支持 全屏切换 的Android 视频播放器

2018-10-09

tablayout+recyclerview 实现仿淘宝、京东商品详情滑动切换tab效果

仿淘宝、京东商品详情上滑切换tab实现,实现基于: tablayout + recyclerview

2020-10-28

GroupedRecyclerViewAdapter.zip

Android RecyclerView实现头部悬浮吸顶效果, 引用:https://www.jianshu.com/p/dcfde6e997e2

2019-10-31

recylerview 添加头部 尾部

android RecyclerView 支持添加header头部、footer尾部

2018-08-10

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除