<?xml version="1.0" encoding="utf-8" ?><rss version="2.0"><channel><title><![CDATA[XTC博客]]></title><description><![CDATA[]]></description><link>https://blog.youkuaiyun.com/github_39465103</link><language>zh-cn</language><generator>https://blog.youkuaiyun.com/</generator><copyright><![CDATA[Copyright &copy; github_39465103]]></copyright><item><title><![CDATA[FloatingActionButton图标颜色更改不了]]></title><link>https://blog.youkuaiyun.com/github_39465103/article/details/120225404</link><guid>https://blog.youkuaiyun.com/github_39465103/article/details/120225404</guid><author>github_39465103</author><pubDate>Fri, 10 Sep 2021 16:44:08 +0800</pubDate><description><![CDATA[FloatingActionButton图标颜色更改不了
	使用`android:tint="@color/app_green"` 更改不了颜色,查了一下说是`Theme.MaterialComponents.DayNight.NoActionBar` 主题不能改变`FloatingActionButton`的图标颜色,经查验在style 中增加```&lt;item name="colorOnSecondary"&gt;@color/white&lt;/item&gt;```就可以了


...]]></description><category></category></item><item><title><![CDATA[MPAndroidChart BarChart 圆角]]></title><link>https://blog.youkuaiyun.com/github_39465103/article/details/118966457</link><guid>https://blog.youkuaiyun.com/github_39465103/article/details/118966457</guid><author>github_39465103</author><pubDate>Wed, 21 Jul 2021 14:58:46 +0800</pubDate><description><![CDATA[barChart.apply {
   renderer = RoundBarChartRenderer(this, animator, viewPortHandler)
}



其中RoundBarChartRenderer 为自定义的Renderer 继承BarChartRenderer

复制BarChartRenderer 代码 copy到你的Renderer中


protected void drawDataSet(Canvas c, IBarDataSet dataSet, in...]]></description><category></category></item><item><title><![CDATA[Android中applicationId 和packageName 的区别]]></title><link>https://blog.youkuaiyun.com/github_39465103/article/details/106765466</link><guid>https://blog.youkuaiyun.com/github_39465103/article/details/106765466</guid><author>github_39465103</author><pubDate>Mon, 15 Jun 2020 16:36:20 +0800</pubDate><description><![CDATA[manifest文件中packageName 作为应用的唯一标识。以及在R资源类中作为包名。

在gradle中的applicationId覆盖了packageName 可以在使用varians时配置不同的applicationId来构建不同的应用。
]]></description><category></category></item><item><title><![CDATA[kotlinx.coroutines 使用]]></title><link>https://blog.youkuaiyun.com/github_39465103/article/details/90291594</link><guid>https://blog.youkuaiyun.com/github_39465103/article/details/90291594</guid><author>github_39465103</author><pubDate>Wed, 22 May 2019 10:50:16 +0800</pubDate><description><![CDATA[协程是轻量级的线程。


fun main(args: Array&lt;String&gt;) {
 GlobalScope.launch {
   delay(1000L)
   print("Coroutines")
 }
  print("Hello, ")
  Thread.sleep(2000L)
}
//输出Hello, Coroutines


这里我们用到...]]></description><category></category></item><item><title><![CDATA[Kotlin by 关键字详解]]></title><link>https://blog.youkuaiyun.com/github_39465103/article/details/90238042</link><guid>https://blog.youkuaiyun.com/github_39465103/article/details/90238042</guid><author>github_39465103</author><pubDate>Thu, 16 May 2019 15:01:53 +0800</pubDate><description><![CDATA[委托模式已已经证明是实现继承的一个很好的替代方式

Kotlin 中 by 就是用于实现委托的。


fun main(args: Array&lt;String&gt;) {
    val b =BaseImpl("base")
    Derived(b).print()

}
interface  Base{
    fun print()
}
class BaseImpl(val x :...]]></description><category></category></item><item><title><![CDATA[依赖注入框架Koin详解]]></title><link>https://blog.youkuaiyun.com/github_39465103/article/details/90035839</link><guid>https://blog.youkuaiyun.com/github_39465103/article/details/90035839</guid><author>github_39465103</author><pubDate>Tue, 14 May 2019 14:02:33 +0800</pubDate><description><![CDATA[Koin框架，适用于使用Kotlin开发 ，是一款轻量级的依赖注入框架，无代理，无代码生成，无反射。

相对于dagger 而言更加适合Kotlin语言。

官方网站

GitHub

Application DSL


	koinApplication { }   
	
用于创建KoinApplocation的实例配置


	startKoin { }
	

 startKoin {
 ...]]></description><category></category></item><item><title><![CDATA[《ECMAScript 6 入门》笔记(5) 数值的扩展]]></title><link>https://blog.youkuaiyun.com/github_39465103/article/details/89634662</link><guid>https://blog.youkuaiyun.com/github_39465103/article/details/89634662</guid><author>github_39465103</author><pubDate>Sun, 28 Apr 2019 14:23:49 +0800</pubDate><description><![CDATA[ES6提供了新的二进制和八进制的写法 二进制使用0b开头（0B）八进制使用0o(0O)


Number('0b111')//7
Number('0o10')//8

想要将其他进制的字符串转换为1十进制数值的话使用Number()方法


Number.isFinite(15)//true
Number.isFinite(0.8); // true
Number.isFinite(NaN); ...]]></description><category></category></item><item><title><![CDATA[Android  Navigation 初识]]></title><link>https://blog.youkuaiyun.com/github_39465103/article/details/89492790</link><guid>https://blog.youkuaiyun.com/github_39465103/article/details/89492790</guid><author>github_39465103</author><pubDate>Thu, 25 Apr 2019 09:40:12 +0800</pubDate><description><![CDATA[2018年Google I/O大会中推出的一个新的架构组件。

在此之前我使用过类似这种单Fragment构建App的框架，Zhuinden/simple-stack，但是官方出手，最为致命，

本着不得不学的态度，我有必要去学习和使用它。

Google git 项目地址

官方文档

首先我们需要导入lib


 implementation "androidx.navigation:nav...]]></description><category></category></item><item><title><![CDATA[《ECMAScript 6 入门》笔记(4) 字符串的新增方法]]></title><link>https://blog.youkuaiyun.com/github_39465103/article/details/89486586</link><guid>https://blog.youkuaiyun.com/github_39465103/article/details/89486586</guid><author>github_39465103</author><pubDate>Wed, 24 Apr 2019 10:38:36 +0800</pubDate><description><![CDATA[ES6中字符串新增的方法

String.fromCodePoint()

可以识别大于0xFFFF的字符，可以传入多个参数，会被合并为一个字符串

String.raw()

用于转义字符串，即\后会再加一个\如果原字符串已经被转义了，使用该方法还会再转义一次，该方法往往用于模板字符串的处理


String.raw({ raw: 'test' }, 0, 1, 2);

该方法也可以作为正常函...]]></description><category></category></item><item><title><![CDATA[《ECMAScript 6 入门》笔记(3) 字符串的扩展]]></title><link>https://blog.youkuaiyun.com/github_39465103/article/details/89473310</link><guid>https://blog.youkuaiyun.com/github_39465103/article/details/89473310</guid><author>github_39465103</author><pubDate>Tue, 23 Apr 2019 17:09:06 +0800</pubDate><description><![CDATA[字符的 Unicode 表示法


"\u0061"
// "a"

ES6加强了对Unicode的支持，允许采用\uxxxx形式表示一个字符，其中xxxx表示字符的Unicode码点


"\uD842\uDFB7"
// "]]></description><category></category></item><item><title><![CDATA[《ECMAScript 6 入门》笔记 变量的解构赋值]]></title><link>https://blog.youkuaiyun.com/github_39465103/article/details/89466835</link><guid>https://blog.youkuaiyun.com/github_39465103/article/details/89466835</guid><author>github_39465103</author><pubDate>Tue, 23 Apr 2019 15:11:02 +0800</pubDate><description><![CDATA[ES6 允许按照一定模式，从数组和对象中提取值，对变量进行赋值，这被称为解构（Destructuring）。

eg.


let [a, b, c] = [1, 2, 3];

a//1
b//2
c//3

let [a] = [1,2,3];

a//1

let [a,b] =[1];
a//1
b//undefined

let {a} = {a:1,b:2,c:3}

a//1
...]]></description><category></category></item><item><title><![CDATA[《ECMAScript 6 入门》笔记 let 和 const 命令]]></title><link>https://blog.youkuaiyun.com/github_39465103/article/details/89450635</link><guid>https://blog.youkuaiyun.com/github_39465103/article/details/89450635</guid><author>github_39465103</author><pubDate>Mon, 22 Apr 2019 17:02:17 +0800</pubDate><description><![CDATA[let

let 声明的变量只在他声明的代码块中有效,用法类似于var

当代码块中存在与全局变量相同变量名的变量，在改代码块中声明let 变量之前使用改变量名的全局变量会报错，

这在语法上称之为“暂时性死区”（temporal dead zone，简称 TDZ）

TDZ也意味着 typeof 不再是一个百分之百安全的操作。

let 不允许在同一作用域下声明两个相同变量名的变量

cons...]]></description><category></category></item><item><title><![CDATA[《ECMAScript 6 入门》笔记（1）简介]]></title><link>https://blog.youkuaiyun.com/github_39465103/article/details/89448449</link><guid>https://blog.youkuaiyun.com/github_39465103/article/details/89448449</guid><author>github_39465103</author><pubDate>Mon, 22 Apr 2019 11:28:10 +0800</pubDate><description><![CDATA[介绍了ECMAScript与JavaScript的关系：

前者是后者的规格，后者是前者的一种实现

ES6和ES5的关系：

ES6 既是一个历史名词，也是一个泛指，含义是 5.1 版以后的 JavaScript 的下一代标准，涵盖了 ES2015、ES2016、ES2017 等等，而 ES2015 则是正式名称，特指该年发布的正式版本的语言标准。本书中提到 ES6 的地方，一般是指 ES201...]]></description><category></category></item><item><title><![CDATA[Dart学习笔记（2) 函数]]></title><link>https://blog.youkuaiyun.com/github_39465103/article/details/89402675</link><guid>https://blog.youkuaiyun.com/github_39465103/article/details/89402675</guid><author>github_39465103</author><pubDate>Fri, 19 Apr 2019 17:03:54 +0800</pubDate><description><![CDATA[在Dart里函数也是一个对象，函数的定义格式为：

返回值 方法名（参数）{

方法体

}

当返回值没有的时候 默认返回null

所以 也可以不声明返回值

eg.


fun(){
  return 1;
}


当这个函数只是一个简单的返回，也可以使用=&gt;

eg.


fun() =&gt; 1;


...]]></description><category></category></item><item><title><![CDATA[Dart学习笔记（1）数据类型]]></title><link>https://blog.youkuaiyun.com/github_39465103/article/details/89380872</link><guid>https://blog.youkuaiyun.com/github_39465103/article/details/89380872</guid><author>github_39465103</author><pubDate>Thu, 18 Apr 2019 17:03:03 +0800</pubDate><description><![CDATA[18年google推出了flutter框架,该框架所使用的编程语言是Dart.

推荐使用WebStorm.

DartSDK

Dart 所有的类都集成自Object 并且默认值是null

数据类型：

Numbers
	String
	Booleans
	List （和java不一样的是没有array和List的区别）
	Maps
声明变量

var
	final
	const


f...]]></description><category></category></item></channel></rss>