自定义博客皮肤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)
  • 收藏
  • 关注

原创 鸿蒙系统日历、倒计时、闹钟的使用

倒计时类:基于倒计时的提醒功能。日历类:基于日历的提醒功能。闹钟类:基于时钟的提醒功能。

2024-03-06 16:59:17 415 1

原创 RecyclerView的用法

RecyclerView的用法1. 适配器:public class Adapter extends RecyclerView.Adapter <Adapter.MyViewHolder> implements View.OnClickListener , View.OnLongClickListener { private List<String> list...

2019-11-08 11:12:39 86

原创 android 8.0以上版本的通知写法。

notificationManager = (NotificationManager) getSystemService(Context.NOTIFICATION_SERVICE); //创建NotificationChannel if(Build.VERSION.SDK_INT >= Build.VERSION_CODES.O){ Notific...

2019-11-05 13:50:57 325

原创 android sqllite数据库的基本使用

private static final String DB_NAME = "fxlq.db"; public static final int DB_VERSION = 2; public static DBHelper db; db = new DBHelper(getApplicationContext(), DB_NAME, DB_VERSION);public c...

2019-11-05 13:47:27 184

原创 android判断是否打开权限,如果没有打开手动打开。

//需要打开的权限集合private static String[] permissionlist={ Manifest.permission.READ_EXTERNAL_STORAGE, Manifest.permission.WRITE_EXTERNAL_STORAGE, Manifest.permission.RECORD_AUDIO};...

2019-11-05 13:29:45 726

原创 android自定义log日志的输出

package com.seatrend.enforcement.logpritln;import android.os.Environment;import android.util.Log;import java.io.File;import java.io.FileOutputStream;import java.io.IOException;import java.tex...

2019-11-05 13:25:36 360

原创 android获取手机屏幕的宽和高

public static int getScreenWidth(Context context){ WindowManager wm = (WindowManager) context.getSystemService(Context.WINDOW_SERVICE); DisplayMetrics dm = new DisplayMetrics();...

2019-11-05 13:23:55 177

空空如也

空空如也

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

TA关注的人

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