<?xml version="1.0" encoding="utf-8" ?><rss version="2.0"><channel><title><![CDATA[yemh111的专栏]]></title><description><![CDATA[]]></description><link>https://blog.youkuaiyun.com/yemh111</link><language>zh-cn</language><generator>https://blog.youkuaiyun.com/</generator><copyright><![CDATA[Copyright &copy; yemh111]]></copyright><item><title><![CDATA[Dart基础笔记二]]></title><link>https://blog.youkuaiyun.com/yemh111/article/details/130661146</link><guid>https://blog.youkuaiyun.com/yemh111/article/details/130661146</guid><author>yemh111</author><pubDate>Sat, 13 May 2023 19:10:32 +0800</pubDate><description><![CDATA[/ 修改原list中的元素 第一个参数为修改的起始位置 第二个参数为修改的结束位置 第三个参数是替换的元素值。Map person = {"name": "韩梅", "age": "18", "work": "学生"};List list = ["姓名", "年龄", "工作"];= 10 //表示a = a?//表示a = a + 10。//表示a = a ~/ 3。//表示a = a * 2。//表示a = a - 4。//表示a = a % 3。// 转换成以"-"分割的字符串。]]></description><category></category></item><item><title><![CDATA[Dart基础笔记一]]></title><link>https://blog.youkuaiyun.com/yemh111/article/details/130652146</link><guid>https://blog.youkuaiyun.com/yemh111/article/details/130652146</guid><author>yemh111</author><pubDate>Fri, 12 May 2023 23:53:06 +0800</pubDate><description><![CDATA[注意：原list中的元素如果为同一元素类型，则原list会自动推断为与元素一样的类型，如元素均为int类型，则集合的类型会自动推断为int类型，次数动态添加String类型元素会报错。var person = {"name": "韩梅", "age": 18, "work": "学生"};var list = ["张三", "李四"];var str1 = """这是三个双引号定义的多行字符串。var str2 = "这是双引号定义的字符串";person["name"] = "韩梅";]]></description><category></category></item><item><title><![CDATA[Kotlin学习]]></title><link>https://blog.youkuaiyun.com/yemh111/article/details/120543620</link><guid>https://blog.youkuaiyun.com/yemh111/article/details/120543620</guid><author>yemh111</author><pubDate>Wed, 29 Sep 2021 10:31:31 +0800</pubDate><description><![CDATA[1.const val和val的区别

const 必须修饰val
	const 只允许在top_level或object中声明
	const val 相当于 public static final,可以直接使用
	val 相当于private static final
]]></description><category></category></item><item><title><![CDATA[Android 实用小技巧]]></title><link>https://blog.youkuaiyun.com/yemh111/article/details/89839365</link><guid>https://blog.youkuaiyun.com/yemh111/article/details/89839365</guid><author>yemh111</author><pubDate>Sun, 05 May 2019 09:50:30 +0800</pubDate><description><![CDATA[1. 使用drawable绘制带边线的白色圆


&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;shape xmlns:android="http://schemas.android.com/apk/res/android"
    android:shape="oval"&gt;

    &lt;solid android:color="#F...]]></description><category></category></item><item><title><![CDATA[HashSet使用笔记]]></title><link>https://blog.youkuaiyun.com/yemh111/article/details/89173318</link><guid>https://blog.youkuaiyun.com/yemh111/article/details/89173318</guid><author>yemh111</author><pubDate>Wed, 10 Apr 2019 09:23:25 +0800</pubDate><description><![CDATA[Set集合相较list集合具有无序,存储元素不可重复的特点.

这里简单记录下Set集合中HashSet在使用时需要主要的几点事项

1.HashSet集合底层使用的是哈希表数据结构,因此在查找的时候速度会非常快

2.集合中只可以存储对象,而不可以存储基本数据类型


private static void func4() {
        HashSet set = new HashSet(...]]></description><category></category></item><item><title><![CDATA[Android 中造成内存泄漏的几种情况]]></title><link>https://blog.youkuaiyun.com/yemh111/article/details/88802360</link><guid>https://blog.youkuaiyun.com/yemh111/article/details/88802360</guid><author>yemh111</author><pubDate>Mon, 25 Mar 2019 18:14:20 +0800</pubDate><description><![CDATA[内存泄漏就是我们对某一内存空间的使用，使用完成后没有释放。

1. 资源释放问题

 长期保持某些资源,如 Context、Cursor、IO 流的引用,资源得不到释放 造成内存泄露。

2. 对象内存过大问题

 保存了多个耗用内存过大的对象,如 Bitmap、XML 文件等,造成内存超出限制。

3. static关键字的使用问题

 static 是 Java 中的一个关键...]]></description><category></category></item><item><title><![CDATA[Android中单例的五种写法]]></title><link>https://blog.youkuaiyun.com/yemh111/article/details/88636955</link><guid>https://blog.youkuaiyun.com/yemh111/article/details/88636955</guid><author>yemh111</author><pubDate>Mon, 18 Mar 2019 13:34:28 +0800</pubDate><description><![CDATA[饿汉模式
优点:线程安全,虚拟机保证只会转载一次,在装载类的时候是不会出现并发的
缺点:启动的时候就创建,浪费资源



public class Singleton {
    private static Singleton mInstance = new Singleton();

    public static Singleton getInstance() {
        re...]]></description><category></category></item><item><title><![CDATA[Math取整的三个方法]]></title><link>https://blog.youkuaiyun.com/yemh111/article/details/52998085</link><guid>https://blog.youkuaiyun.com/yemh111/article/details/52998085</guid><author>yemh111</author><pubDate>Tue, 01 Nov 2016 18:15:39 +0800</pubDate><description><![CDATA[Math 类中提供了三个与取整相关的方法:ceil,floor,round
这三个方法的作用与其英文解释相对应,如下:
ceil 表示向上取整 : 所以 Math.ceil(2.2) = 3   Math.ceil(-2.2) = -2
floor 表示向下取整 : 所以 Math.floor(2.2) = 2   Math.floor(-2.2) = -3
round 方法表示四舍五入,]]></description><category></category></item><item><title><![CDATA[如何在代码中设置listView的常见样式]]></title><link>https://blog.youkuaiyun.com/yemh111/article/details/8110720</link><guid>https://blog.youkuaiyun.com/yemh111/article/details/8110720</guid><author>yemh111</author><pubDate>Thu, 25 Oct 2012 13:47:48 +0800</pubDate><description><![CDATA[mListView = new RefreshListView(WZTActivity.this);
  mListView.setCacheColorHint(0xfff5f5f5);
  mListView.setDividerHeight(1);
  mListView.setFadingEdgeLength(0);
  mListView.setDivider(getResourc]]></description><category></category></item><item><title><![CDATA[如何在点击android中的EditText的时候不弹出软键盘]]></title><link>https://blog.youkuaiyun.com/yemh111/article/details/7579133</link><guid>https://blog.youkuaiyun.com/yemh111/article/details/7579133</guid><author>yemh111</author><pubDate>Fri, 18 May 2012 10:15:48 +0800</pubDate><description><![CDATA[EditText birthday = (EditText) findViewById(R.id.birthday_text_regis);
 birthday.setOnTouchListener(new BirthClickListener());
 // 生日编辑框
 class BirthClickListener implements OnTouchListener{
  @Ov]]></description><category></category></item><item><title><![CDATA[如何对字符串首部和尾部的空格进行过滤]]></title><link>https://blog.youkuaiyun.com/yemh111/article/details/7519354</link><guid>https://blog.youkuaiyun.com/yemh111/article/details/7519354</guid><author>yemh111</author><pubDate>Sat, 28 Apr 2012 11:29:54 +0800</pubDate><description><![CDATA[if (jsonObj.has("DtlContentTruncate")) {
     historical.setContent(jsonObj.getString("DtlContentTruncate").trim());
    }
 
其中的.trim()的作用就是过滤掉字符串首尾的空格;
 
String.Trim()方法会去除字符串两端，不仅仅是空格字符，它总共能去除]]></description><category></category></item><item><title><![CDATA[通讯录操作]]></title><link>https://blog.youkuaiyun.com/yemh111/article/details/7237375</link><guid>https://blog.youkuaiyun.com/yemh111/article/details/7237375</guid><author>yemh111</author><pubDate>Mon, 06 Feb 2012 17:10:22 +0800</pubDate><description><![CDATA[实际应用，“通讯录” 数据读取、添加联系人信息
      ** 查看通讯录数据库：
           首先启动模拟器、再打开 “File Explorer” 视图，
           依次展开：data -- data -- com.android.providers.contacts（注意和 com.android.contacts 区分） -- databases，如图：]]></description><category></category></item><item><title><![CDATA[Textview如何将Html语言中的空格进行转换并实现首行缩进]]></title><link>https://blog.youkuaiyun.com/yemh111/article/details/7196419</link><guid>https://blog.youkuaiyun.com/yemh111/article/details/7196419</guid><author>yemh111</author><pubDate>Thu, 12 Jan 2012 15:37:53 +0800</pubDate><description><![CDATA[此图是没有做任何处理显示的, 

此图是经过处理之后并显示的
代码如下:
TextView recentNewsContent = (TextView) findViewById(R.id.recentNewsContent);
Intent intent = this.getIntent();
  Bundle bundle = intent.getExtras();
//以下两种]]></description><category></category></item><item><title><![CDATA[获取通讯录所有字段]]></title><link>https://blog.youkuaiyun.com/yemh111/article/details/7171349</link><guid>https://blog.youkuaiyun.com/yemh111/article/details/7171349</guid><author>yemh111</author><pubDate>Mon, 02 Jan 2012 14:48:01 +0800</pubDate><description><![CDATA[package cn.ihope.mozyhome.util;
import java.util.ArrayList;
import java.util.List;
import org.json.JSONException;
import org.json.JSONObject;
import android.content.Context;
import android.datab]]></description><category></category></item><item><title><![CDATA[调用系统发邮件的实现]]></title><link>https://blog.youkuaiyun.com/yemh111/article/details/7165255</link><guid>https://blog.youkuaiyun.com/yemh111/article/details/7165255</guid><author>yemh111</author><pubDate>Fri, 30 Dec 2011 15:39:19 +0800</pubDate><description><![CDATA[XML代码


android:orientation="vertical" android:background="#ffffff"
android:layout_width="match_parent" android:layout_height="match_parent">


android:id="@+id/feedback" android:layout_height=]]></description><category></category></item></channel></rss>