消息提醒小红点的实现

C# WPF 状态栏图标特效 类似QQ/MSN的状态栏图标显示 NotifyIcon 立即下载

本人分享一下,自己写的一个消息提醒小红点控件,支持圆、矩形、椭圆、圆角矩形、正方形五种图形样式,可带文字,支持链式操作。

先看一下实现效果,随便测了几个控件(TextView、ImageView、RadioButton、LinearLayout、RelativeLayout、FrameLayout),不确定其他会不会有问题。


import android.content.Context;
import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.Paint;
import android.graphics.RectF;
import android.util.AttributeSet;
import android.util.Log;
import android.view.Gravity;
import android.view.View;
import android.view.ViewGroup;
import android.widget.FrameLayout;
import android.widget.TabWidget;

public class BadgeView extends View {
	protected static final String LOG_TAG = "BadgeView";
	// 该控件的背景图形类型
	public static final int SHAPE_CIRCLE = 1;
	public static final int SHAPE_RECTANGLE = 2;
	public static final int SHAPE_OVAL = 3;
	public static final int SHAPTE_ROUND_RECTANGLE = 4;
	public static final int SHAPE_SQUARE = 5;
	// 该框架内容的文本画笔
	private Paint mTextPaint;
	// 该控件的背景画笔
	private Paint mBgPaint;

	private int mHeight = 0;
	private int mWidth = 0;
	private int mBackgroundShape = SHAPE_CIRCLE;
	private int mTextColor = Color.WHITE;
	private int mTextSize;
	private int mBgColor = Color.RED;
	private String mText = "";
	private int mGravity = Gravity.RIGHT | Gravity.TOP;
	private RectF mRectF;
	private float mtextH;
	private boolean mIsShow = false;

	public BadgeView(Context context) {
		this(context, null);
	}

	public BadgeView(Context context, AttributeSet attrs) {
		this(context, attrs, 0);
	}

	public BadgeView(Context context, AttributeSet attrs, int defStyleAttr) {
		super(context, attrs, defStyleAttr);

		mRectF = new RectF();

		mTextSize = dip2px(context, 1);
		mTextPaint = new Paint(Paint.ANTI_ALIAS_FLAG);
		mTextPaint.setColor(mTextColor);
		mTextPaint.setStyle(Paint.Style.FILL);
		mTextPaint.setTextSize(mTextSize);
		mTextPaint.setTextAlign(Paint.Align.CENTER);
		mBgPaint = new Paint(Paint.ANTI_ALIAS_FLAG);
		mBgPaint.setColor(mBgColor);
		mBgPaint.setStyle(Paint.Style.FILL);
		FrameLayout.LayoutParams params = new FrameLayout.LayoutParams(
				FrameLayout.LayoutParams.WRAP_CONTENT,
				FrameLayout.LayoutParams.WRAP_CONTENT);
		params.gravity = mGravity;
		setLayoutParams(params);
	}

	@Override
	protected void onDraw(Canvas canvas) {
		super.onDraw(canvas);
		mRectF.set(0, 0, getMeasuredWidth(), getMeasuredHeight());
		Paint.FontMetrics fontMetrics = mTextPaint.getFontMetrics();
		mtextH = fontMetrics.descent - fontMetrics.ascent;
		switch (mBackgroundShape) {
			case SHAPE_CIRCLE:
				canvas.drawCircle(getMeasuredWidth() / 2f,
						getMeasuredHeight() / 2f, getMeasuredWidth() / 2, mBgPaint);
				canvas.drawText(mText, getMeasuredWidth() / 2f, getMeasuredHeight()
						/ 2f + (mtextH / 2f - fontMetrics.descent), mTextPaint);
				break;
			case SHAPE_OVAL:

				canvas.drawOval(mRectF, mBgPaint);
				canvas.drawText(mText, getMeasuredWidth() / 2f, getMeasuredHeight()
						/ 2f + (mtextH / 2f - fontMetrics.descent), mTextPaint);
				break;
			case SHAPE_RECTANGLE:
				canvas.drawRect(mRectF, mBgPaint);
				canvas.drawText(mText, getMeasuredWidth() / 2f, getMeasuredHeight()
						/ 2f + (mtextH / 2f - fontMetrics.descent), mTextPaint);
				break;
			case SHAPE_SQUARE:
				int sideLength = Math.min(getMeasuredHeight(), getMeasuredWidth());
				mRectF.set(0, 0, sideLength, sideLength);
				canvas.drawRect(mRectF, mBgPaint);
				canvas.drawText(mText, sideLength / 2f, sideLength / 2f
						+ (mtextH / 2f - fontMetrics.descent), mTextPaint);
				break;
			case SHAPTE_ROUND_RECTANGLE:
				canvas.drawRoundRect(mRectF, dip2px(getContext(), getMeasuredWidth()/2),
						dip2px(getContext(), getMeasuredWidth()/2), mBgPaint);
				canvas.drawText(mText, getMeasuredWidth() / 2f, getMeasuredHeight()
						/ 2f + (mtextH / 2f - fontMetrics.descent), mTextPaint);
				break;
		}

	}

	/**
	 * 设置该控件的背景颜色
	 *
	 * @param color
	 *            背景颜色
	 * @return BadgeView
	 */
	public BadgeView setBadgeBackgroundColor(int color) {
		mBgColor = color;
		mBgPaint.setColor(color);
		invalidate();
		return this;
	}

	/**
	 * 设置该控件的背景图形
	 *
	 * @param shape
	 *            图形
	 * @return
	 */
	public BadgeView setBackgroundShape(int shape) {
		mBackgroundShape = shape;
		invalidate();
		return this;
	}

	/**
	 * 设置该控件的宽
	 *
	 * @param width
	 *            宽
	 * @return BadgeView
	 */
	public BadgeView setWidth(int width) {
		this.mWidth = width;
		this.setBadgeLayoutParams(width, mHeight);
		return this;

	}

	/**
	 * 设置该控件的高
	 *
	 * @param height
	 *            高
	 * @return BadgeView
	 */
	public BadgeView setHeight(int height) {
		this.mHeight = height;
		this.setBadgeLayoutParams(mWidth, height);
		return this;
	}

	/**
	 * 设置该控件的高和宽
	 *
	 * @param width
	 *            宽
	 * @param height
	 *            高
	 * @return
	 */
	public BadgeView setBadgeLayoutParams(int width, int height) {
		this.mWidth = width;
		this.mHeight = height;
		FrameLayout.LayoutParams params = (FrameLayout.LayoutParams) getLayoutParams();
		params.width = dip2px(getContext(), width);
		params.height = dip2px(getContext(), height);
		setLayoutParams(params);
		return this;
	}

	/**
	 * 设置该控件的位置
	 *
	 * @param gravity
	 *            位置
	 * @return BadgeView
	 */
	public BadgeView setBadgeGravity(int gravity) {
		mGravity = gravity;
		FrameLayout.LayoutParams params = (FrameLayout.LayoutParams) getLayoutParams();
		params.gravity = gravity;
		setLayoutParams(params);
		return this;
	}

	/**
	 * 设置该控件的高和宽、位置
	 *
	 * @param width
	 *            宽
	 * @param height
	 *            高
	 * @param gravity
	 *            位置
	 * @return BadgeView
	 */
	public BadgeView setBadgeLayoutParams(int width, int height, int gravity) {
		FrameLayout.LayoutParams params = (FrameLayout.LayoutParams) getLayoutParams();
		params.width = dip2px(getContext(), width);
		params.height = dip2px(getContext(), height);
		setLayoutParams(params);
		setBadgeGravity(gravity);
		return this;
	}

	/**
	 * 设置该控件的文本大小
	 *
	 * @param size
	 *            文本大小(sp)
	 * @return
	 */
	public BadgeView setTextSize(int size) {
		mTextSize = sp2px(getContext(), size);
		mTextPaint.setTextSize(sp2px(getContext(), size));
		invalidate();
		return this;
	}

	/**
	 * 设置该控件的文本颜色
	 *
	 * @param color
	 *            文本颜色
	 * @return BadgeView
	 */
	public BadgeView setTextColor(int color) {
		mTextColor = color;
		mTextPaint.setColor(color);
		invalidate();
		return this;
	}

	/**
	 * 设置该控件的文本是否为粗体
	 *
	 * @param flag
	 */
	public void setBadgeBoldText(boolean flag) {
		mTextPaint.setFakeBoldText(flag);
		invalidate();
	}

	/**
	 * 设置该控件要显示的整数文本
	 *
	 * @param count
	 *            要显示的整数文本
	 * @return BadgeView
	 */
	public BadgeView setBadgeText(int count) {
		mText = String.valueOf(count);
		invalidate();
		return this;
	}

	/**
	 * 设置该控件要显示的整数文本数字,超过指定上限显示为指定的上限内容
	 *
	 * @param count
	 *            要显示的整数文本
	 * @param maxCount
	 *            数字上限
	 * @param text
	 *            超过上限要显示的字符串文本
	 * @return BadgeView
	 */
	public BadgeView setBadgeText(int count, int maxCount, String text) {
		if (count <= maxCount) {
			mText = String.valueOf(count);
		} else {
			mText = text;
		}
		invalidate();
		return this;
	}

	/**
	 * 设置该控件要显示的字符串文本
	 *
	 * @param text
	 *            要显示的字符串文本
	 * @return BadgeView
	 */
	public BadgeView setBadgeText(String text) {
		mText = text;
		invalidate();
		return this;
	}

	/**
	 * 设置绑定的控件
	 *
	 * @param view
	 *            要绑定的控件
	 * @return BadgeView
	 */
	public BadgeView setBindView(View view) {
		mIsShow = true;
		if (getParent() != null)
			((ViewGroup) getParent()).removeView(this);
		if (view == null)
			return this;
		if (view.getParent() instanceof FrameLayout) {
			((FrameLayout) view.getParent()).addView(this);
		} else if (view.getParent() instanceof ViewGroup) {
			ViewGroup parentContainer = (ViewGroup) view.getParent();
			int viewIndex = ((ViewGroup) view.getParent()).indexOfChild(view);
			((ViewGroup) view.getParent()).removeView(view);
			FrameLayout container = new FrameLayout(getContext());
			ViewGroup.LayoutParams containerParams = view.getLayoutParams();
			container.setLayoutParams(containerParams);
			container.setId(view.getId());
			view.setLayoutParams(new ViewGroup.LayoutParams(
					ViewGroup.LayoutParams.MATCH_PARENT,
					ViewGroup.LayoutParams.MATCH_PARENT));
			container.addView(view);
			container.addView(this);
			parentContainer.addView(container, viewIndex);
		} else if (view.getParent() == null) {
			Log.e(LOG_TAG, "View must have a parent");
		}
		return this;
	}

	/**
	 * 设置绑定的控件
	 *
	 * @param view 要绑定的控件
	 * @param tabIndex 要绑定的控件的子项
	 */
	public void setBindView(TabWidget view, int tabIndex) {
		View tabView = view
				.getChildTabViewAt(tabIndex);
		this.setBindView(tabView);
	}

	/**
	 * 移除绑定的控件
	 *
	 * @return BadgeView
	 */
	public boolean removebindView() {
		if (getParent() != null) {
			mIsShow = false;
			((ViewGroup) getParent()).removeView(this);
			return true;
		}
		return false;
	}

	/**
	 * @return 改控件的显示状态
	 */
	public boolean isShow() {
		return mIsShow;
	}

	/**
	 * @return 控件的字符串文本
	 */
	public String getBadgeText() {
		return mText;
	}

	private int dip2px(Context context, int dip) {
		return (int) (dip
				* getContext().getResources().getDisplayMetrics().density + 0.5f);
	}

	private int sp2px(Context context, float spValue) {
		final float fontScale = context.getResources().getDisplayMetrics().scaledDensity;
		return (int) (spValue * fontScale + 0.5f);
	}

}
可自由定制自己喜欢的控件,为了方便使用这里还采用工厂模式封装一些基本方法,如下:
import android.content.Context;
import android.view.Gravity;

public class BadgeFactory {

	public static BadgeView create(Context context) {
		return new BadgeView(context);
	}
	
	public static BadgeView createDot(Context context) {
		return new BadgeView(context).setBadgeLayoutParams(10, 10)
				.setTextSize(0)
				.setBadgeGravity(Gravity.RIGHT | Gravity.TOP)
				.setBackgroundShape(BadgeView.SHAPE_CIRCLE);
	}

	public static BadgeView createCircle(Context context) {
		return new BadgeView(context).setBadgeLayoutParams(16, 16)
				.setTextSize(12)
				.setBadgeGravity(Gravity.RIGHT | Gravity.TOP)
				.setBackgroundShape(BadgeView.SHAPE_CIRCLE);
	}

	public static BadgeView createRectangle(Context context) {
		return new BadgeView(context).setBadgeLayoutParams(2, 20)
				.setTextSize(12)
				.setBadgeGravity(Gravity.RIGHT | Gravity.TOP)
				.setBackgroundShape(BadgeView.SHAPE_RECTANGLE);
	}

	public static BadgeView createOval(Context context) {
		return new BadgeView(context).setBadgeLayoutParams(25, 20)
				.setTextSize(12)
				.setBadgeGravity(Gravity.RIGHT | Gravity.TOP)
				.setBackgroundShape(BadgeView.SHAPE_OVAL);
	}

	public static BadgeView createSquare(Context context) {
		return new BadgeView(context).setBadgeLayoutParams(20, 20)
				.setTextSize(12)
				.setBadgeGravity(Gravity.RIGHT | Gravity.TOP)
				.setBackgroundShape(BadgeView.SHAPE_SQUARE);
	}

	public static BadgeView createRoundRect(Context context) {
		return new BadgeView(context).setBadgeLayoutParams(25, 20)
				.setTextSize(12)
				.setBadgeGravity(Gravity.RIGHT | Gravity.TOP)
				.setBackgroundShape(BadgeView.SHAPTE_ROUND_RECTANGLE);
	}
	
}

源码传送门

WPF C#仿ios 安卓 红点消息提示 编译环境vs2015,只是实现了在普通的Button控件上显示类似安卓和Ios上的右上角红点提示。具体的介绍请参照本人博客当中的相关文章。 立即下载

相关推荐

基于Dify构建银行智能客服:从意图识别到多RAG架构的实战解析

本文深入解析了如何利用Dify平台构建银行智能客服系统。从传统客服痛点出发,详细阐述了基于意图识别精准分类用户需求,并通过多RAG架构解决知识混淆问题,实现高效、准确的业务响应。文章重点介绍了结合工具调用实现业务流程自动化,并强调了数据本地化部署、内容安全过滤等银行级安全合规实践,为金融行业AI应用提供了实战指南。

yog99的博客 933

TabLayout添加小红点*****设置ViewPager+fragment后自定义tab

1 效果图 2主布局文件 <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" andr...

qq_40638618的博客 973

本地AI语音生成与配音工作台Pandrator:从TTS到RVC的完整实践指南

语音合成(TTS)技术通过深度学习模型将文本转换为自然语音,其核心原理涉及声学建模与波形生成。这项技术不仅提升了人机交互体验,更在内容创作领域展现出巨大价值,广泛应用于有声书制作、视频配音、虚拟助手等场景。本文聚焦于一个集成了XTTS-v2、RVC等先进模型的本地化AI语音工作台——Pandrator,它通过模块化架构将语音合成、声音克隆、音频转录与翻译等流程无缝整合,为用户提供了一个图形化、可定制的完整解决方案。文章深入解析了其基于TTS与RVC(Retrieval-based Voice Convers

weixin_42676876的博客 347

html图片滚动红点_前端实现未读消息提醒小红点

原理:通过将消息是否查看的数据存写入localStorage中,点击查看后,更新localStorage的数据;文件结构:index.html -- 列表detail -- 详情remind -- js组件调用方法:index.html说明:1.列表中红点相对定位在列表文本右上角,d为数据源,amGloble.Remind(d, 'text', '...

weixin_33250594的博客 872

海光(hygon)CPU ESXI vSphere 紫屏问题修复记录

海光服务器ESXI 紫屏问题修复

edison202302的博客 3574

ros1 ubuntu22.04 安装教程

ROS1 ubuntu22.04 安装教程

autolabor的博客 9201

WPF简易局部地图 实现标记 绘制轨迹

WPF简易局部地图 实现标记 绘制轨迹 控件可以实现: 在知道显示的地图区域时: 设定地图的左上角和右下角经纬度; 设置使用的地图图片路径; 添加地图图钉或者轨迹点; 绘制点或轨迹。 地图控件所需的数据结构: using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows; using Syst

菜鸟程序员 1799

Halcon: 获取仿射矩形-rectangle2的四个顶点、四条边的中点

Halcon 工业应用实用教程中的一个例子: * CenterY : 仿射矩形中心y * CenterX: 仿射矩形中心x * Phi: 仿射矩形角度 * Len1: 仿射矩形宽的一半 * Len2: 仿射矩形高的一半 * CornerY: 仿射矩形端点y * CornerX: 仿射矩形端点x * LineCenterY: 仿射矩形边中点y * LineCenterx: 仿射矩形边中点x * 矩...

ruotianxia的博客 8578

App端消息提醒的小红点制作,后台的逻辑处理(100%帮你实现),本文以JAVA演示

最近忙着做App,涉及到消息提醒的小红点功能,本文章不限编程语言,讲解大致的开发思路。 首先,请大家跟着我思路一起走,不要看得太快,保证您肯定满意,您也一定能实现您的需求。 我们无非从两个地方实现,一:前端,二:后端。先说说前端,我思前想后,给前端做缓存,确实实现了,但是我忽略了一点,就是服务器会挂掉,如果服务挂掉了,就不存在缓存了,那么一切都要重来。接着,我们再说说后端,既然缓存无法满足我们...

九零后的技术员 1万+

Qt QCustomPlot 图形库详解及使用

QCustomPlot 是一个开源的 Qt C++ 库,专门用于创建数据图表。易于集成到 Qt 项目中。支持多种图表类型,如折线图、散点图、条形图等。提供丰富的交互功能,如缩放、平移、选择和拖动。高度可定制,支持图形的各种样式设置。// 添加第一条曲线i < 101;++i) {// 设置曲线颜色// 添加第二条曲线i < 101;++i) {// 设置曲线颜色// 设置散点样式// 添加图例。

MusicScore的博客 769

基于Spring Boot 3 + Vue 3 + Vite的现代化社区订餐系统设计与实现

本文将详细阐述系统的整体架构、数据库设计、核心功能模块(用户管理、餐厅管理、菜品浏览、购物车、订单管理)的实现细节,并提供关键代码示例。<el-input v-model="loginForm.password" type="password" placeholder="密码" prefix-icon="Lock" show-password />.requestMatchers("/api/auth/**", "/api/dishes/public/**").permitAll() // 公开接口。

2201_76125393的博客 471

手机红点消息提醒java开发_Android实现消息提醒小红点效果

本人分享一下,自己写的一个消息提醒小红点控件,支持圆、矩形、椭圆、圆角矩形、正方形五种图形样式,可带文字,支持链式操作。先看一下实现效果,随便测了几个控件(TextView、ImageView、RadioButton、LinearLayout、RelativeLayout、FrameLayout),不确定其他会不会有问题。import android.content.Context;import ...

weixin_39791386的博客 313

如何通过 GitHub Actions 使用 SSH 自动化部署到阿里云 ECS 实例

通过 GitHub Actions 和 SSH 自动化部署,可以显著提高你的开发效率和部署的可靠性。本文介绍了如何生成 SSH 密钥、将公钥添加到阿里云 ECS 实例、将私钥添加到 GitHub Secrets,以及编写 GitHub Actions 工作流来实现自动化部署。希望这篇文章对你有所帮助!

吃面不喝汤的博客 1517

前端实现未读消息提醒小红点

原理: 通过将消息是否查看的数据存写入localStorage中,点击查看后,更新localStorage的数据; 文件结构: index.html -- 列表 detail -- 详情remind -- js组件 调用方法: index.html说明: 1.列表中红点相对定位在列表文本右上角,d为数据源,a...

5471

最新的sdio 4.0 spec 协议标准 带书签 高清完整PDF版

Part-E1-SDIO-Specification-Ver4.00-Final-120220.pdf:最新的sdio 4.0 spec 协议标准 带书签 高清完整PDF版,包括SDIO 接口的外设,SDIO 接口官方协议等。

lwip-2.0.3

lwip是瑞典计算机科学院(SICS)的Adam Dunkels 开发的一个小型开源的TCP/IP协议栈。实现的重点是在保持TCP协议主要功能的基础上减少对RAM 的占用。

websocket 之 简单实现消息小红点,消息推送,或者说是未读提醒,新订单提醒(一)

说明:这里是单机的websocket,没有部署到服务器,本人开了360浏览器和chrome来分别模拟两个买家客户端和商家客户端。 模拟对象暂时是只有一个接受方(consumer),许多个发送方(producer) 1、先给maven上个依赖 <dependency> <groupId>javax.websocket</groupId> ...

qq_17507161的博客 5270

C# WinForm 基于DirectShow.dll编写的程序,可边预览边保存视频,音频和图片

基于微软的DirectShow.dll的二次开发1.自动识别连接的摄像头跟麦克风且可以对其进行选择(默认选中第一个)2.可录制wmv和avi两种格式的视频并且都带有音频,avi可以录制的分辨率和帧数进行选择,wmv默认进行了淸晰度优化如不喜欢可去除代码中有相关提示3.可在预览点开之后进行拍照,也可边录制视频边拍照4.添加了视频和音频的压缩功能(酌情使用)这次二次开发发现C#对DirectShow的相关信息太少,这次做完也不敢藏私共享出来,还望大家指正

php未读消息显示小红点,前端实现未读消息提醒小红点

原理:通过将消息是否查看的数据存写入localStorage中,点击查看后,更新localStorage的数据;文件结构: index.html -- 列表detail -- 详情remind -- js组件调用方法:index.html说明:1.列表中红点相对定位在列表文本右上角,d为数据源,amGloble.Remind(d, 'text', ...

weixin_42480540的博客 990

华为的C语言编程规范.pdf

华为技术有限公司内部技术规范。本规范制定了编写C语言程序的基本原则、规则和建议。从代码的清晰、简洁、可测试、安全、程序效率、可移植各个方面对C语言编程作出了具体指导。

php红点提醒,前端实现未读消息提醒小红点

原理:通过将消息是否查看的数据存写入localStorage中,点击查看后,更新localStorage的数据;文件结构:index.html -- 列表detail -- 详情remind -- js组件调用方法:index.html说明:1.列表中红点相对定位在列表文本右上角,d为数据源,amGloble.Remind(d, ‘text‘, ‘...

weixin_33019705的博客 464

原生NavigationView菜单中添加消息提醒(小红点)

其实谷歌上有很多关于怎么实现这个效果的文章,但是百度上实在太难找了,写个中文的方便需要的小伙伴吧 实现图中Slideshow那个效果比较简单,附上链接 https://medium.com/@harivigneshjayapalan/android-adding-badge-or-count-to-the-navigation-drawer-84c93af1f4d9#.fd0xio2ns 实现小红点的效果 思路:TextView设置小圆点背景 直接贴代码 1.写好小红点的布局文件,嵌套在线性布局中是因为在菜

平淡无奇的乔老爷的博客 2897

手机红点消息提醒java开发_消息通知-内容更新提示小红点如何实现?

封面当内容更新时,需要在入口加上小红点提示,这种需求屡见不鲜,实现起来也不复杂。实现的场景有很多,web 端、app 端、小程序端等等,实现思路大同小异,本文从有无登录态两种情形,讲述解决问题的完整思路。有登录态比较常规的做法是有用户登录态的情况,将用户的已读时间录入至后台的用户数据信息中,当内容更新时,把内容更新时间和用户已读时间做对比,如果用户已读时间早于内容更新时候,在入口处给用户提示小红点...

weixin_34638141的博客 1242

实现 消息提醒图标_爽!一招消除iphone图标提示小红点

我们手机的APP有消息提示右上角就会出现红色数字,很多都是无关紧要的提示,我们都懒得打开,但是不打开小数字又去不掉,我们就很无奈,时间久了很多APP都会有提示。特别是这个设置的小红点,简直就是令人抓狂,在设置里面根本就找不到消除它的选项!超可恶!但小咖今天这个小妙招能帮到你~1. 删除已经下载的系统升级包设置-通用- iPhone 存储空间-找到iOS系统升级包点击删除即可,如果没有找到这个安装包...

weixin_35907189的博客 2499

html图片滚动红点_前端实现未读消息提醒小红点(示例代码)

原理:通过将消息是否查看的数据存写入localStorage中,点击查看后,更新localStorage的数据;文件结构:index.html -- 列表detail -- 详情remind -- js组件调用方法:index.html说明:1.列表中红点相对定位在列表文本右上角,d为数据源,amGloble.Remind(d, ‘text‘, ‘...

weixin_42300478的博客 828
上一篇: SharedPreferences的简单应用
下一篇: EditText之imeOptions与inputType属性的使用
Homilier
博客等级 码龄9年 6094粉丝 162原创
评论 5
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

个

红包个数最小为10个

元

红包金额最低5元

当前余额3.43元 前往充值 >
需支付:10.00元
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

Homilier

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付元
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值