2021年8月16日

摘要: package zhangphil.materialdesign; import android.app.Activity; import android.os.Bundle; import android.support.v.widget.PopupMenu; import android.vie 阅读全文
posted @ 2021-08-16 15:14 带镐伤的土豆 阅读(86) 评论(0) 推荐(0) 编辑

2021年8月5日

摘要: package com.hzy.modulebase.utils;import android.annotation.SuppressLint;import android.app.Activity;import android.app.AlertDialog;import android.app. 阅读全文
posted @ 2021-08-05 09:47 带镐伤的土豆 阅读(10) 评论(0) 推荐(0) 编辑

2021年7月9日

摘要: 转载地址https://blog.csdn.net/baidu_35559769/article/details/82497289 前言本文介绍的只是微信开发中的一个功能,分享。看到网上很多关于微信分享的博客、帖子,说实话,没几篇写的全的,很多都是复制粘贴,介绍的也不全,缺少代码的分析,关键性的代码 阅读全文
posted @ 2021-07-09 10:38 带镐伤的土豆 阅读(265) 评论(0) 推荐(0) 编辑

2021年6月10日

摘要: 阅读全文
posted @ 2021-06-10 14:06 带镐伤的土豆 阅读(9) 评论(0) 推荐(0) 编辑
摘要: Activity与Fragment之间的传值问题 Activity传值给Fragment 添加Fragment的Activity: https://blog.csdn.net/xingchenhy/article/details/81356400 方法2 /** * 想给fragment传id * 阅读全文
posted @ 2021-06-10 10:05 带镐伤的土豆 阅读(76) 评论(0) 推荐(0) 编辑

2020年7月4日

摘要: public class H5ToAndroidInterface { private static final String URL = "url"; private Activity mActivity; public H5ToAndroidInterface(Activity activity 阅读全文
posted @ 2020-07-04 09:56 带镐伤的土豆 阅读(270) 评论(0) 推荐(0) 编辑

2020年7月3日

摘要: public void showList(List<DictValueListBean> response) { if (!ListUtil.isEmpty(response)) { List<String> nameList = new ArrayList<>(); for (int i = 0; 阅读全文
posted @ 2020-07-03 16:35 带镐伤的土豆 阅读(286) 评论(0) 推荐(0) 编辑
摘要: //list转换数组 mItems = nameList.toArray(new String[nameList.size()]);//string转换list,去除逗号 List<String> s = Arrays.asList(bean.getPicture().split(","));//添 阅读全文
posted @ 2020-07-03 16:23 带镐伤的土豆 阅读(128) 评论(0) 推荐(0) 编辑
摘要: public class AutoCheckEditText extends androidx.appcompat.widget.AppCompatEditText implements TextWatcher { //手机校验类型 public static final int TYPE_OF_M 阅读全文
posted @ 2020-07-03 16:05 带镐伤的土豆 阅读(113) 评论(0) 推荐(0) 编辑

2020年5月28日

摘要: SharedPreferences preferences = getSharedPreferences("IpAndPort", Activity.MODE_PRIVATE);SharedPreferences.Editor editor = preferences.edit();editor.p 阅读全文
posted @ 2020-05-28 14:28 带镐伤的土豆 阅读(100) 评论(0) 推荐(0) 编辑

导航