Kotlin
卡特琳
yorkmass☭
个人邮箱 yaoyi@tobsion.com
展开
-
安卓Kotlin开发系列之简单按钮的实现
步骤一、拖控件首先你在主页面,把TextView添加到主页面,添加后,会有一个红色感叹号,分别拖按钮的四条边中间的四个点到页面边,将其处于如下状态。然后再把button拖进去,重复上面的步骤即可。拖入button如下图所示 如果出现黄色警告,可以点击黄色警告后,点击下面出现的问题,按fix,为按钮添加Resource_name名字后确认即可消除。...原创 2018-10-15 20:23:07 · 2912 阅读 · 0 评论 -
Kotlin基础语法入门
定义值Boolean类型val demo1:Boolean=trueval demo2:Boolean=falseval只读、var可变 Number类型有:Double 、Float 、Long 、Int、 Short 、Byteval maxlong:Long=Long.MAX_VALUE构造字符串val string:String="hello"val for...原创 2018-10-16 15:13:07 · 212 阅读 · 0 评论 -
Kotlin连接SQLite数据库并实现简单的数据存储计算
SQLite:无需部署的轻量级数据库当有程序需要保存轻量数据,而又烦躁序列化到本地的不便,轻量级数据库—SQLLite是一个很好的选择它在Androdi studio里面直接就能用下面我们介绍Kotlin连接SQLite数据库并实现简单的数据存储计算我们首先拖动editext、button、textview组件,如下图所示再把下面的代码复制一下package com....原创 2018-10-23 21:17:40 · 3236 阅读 · 0 评论