Android UI 框架 Lattekit
- 授权协议: MIT
- 开发语言:
- 操作系统: Android
- 软件首页: https://github.com/maannajjar/lattekit
- 软件文档: https://github.com/maannajjar/lattekit/blob/master/README.md
- 官方下载: https://github.com/maannajjar/lattekit/archive/master.zip
软件介绍
Lattekit 是采用Kotlin编写的一个Android UI 框架。
快速示例学习 :
package io.lattekit.helloworld
import android.app.Activity
import android.os.Bundle
import android.view.View
import android.widget.EditText
import io.lattekit.annotation.Bind
import io.lattekit.plugin.css.declaration.css
import io.lattekit.render
import io.lattekit.view.LatteView
class MainActivity : Activity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
render("<io.lattekit.helloworld.MyApp />")
}
}
open class MyApp : LatteView() {
@Bind("@id/myText") var myText : EditText? = null;
init {
css("""
.question { font-size: 20sp; font-weight: bold; }
.input { font-size: 14sp; margin-top:8dp; width: match_parent; }
.answer { font-size: 20sp; font-weight: bold; margin-top: 10dp; color: #00AADE; }
""")
// or: css("com.my.package/file.css")
}
override fun layout() = xml("""
<LinearLayout padding="30dp" orientation="vertical">
<TextView text="What's your name?" class="question"/>
<EditText id="@+id/myText" hint="Type your name here"
onTextChanged=${{ notifyStateChanged() }} class="input"/>
<TextView text=${"Hello ${myText?.text}"}
visibility=${if (myText?.text?.toString() == "") View.GONE else View.VISIBLE} class="answer"/>
</LinearLayout>
""")
}其他示例:
HTTPS权威指南
[英] Ivan Risti? / 杨洋、李振宇、蒋锷、周辉、陈传文 / 人民邮电出版社 / 2016-9 / 99.00元
本书是集理论、协议细节、漏洞分析、部署建议于一体的详尽Web应用安全指南。书中具体内容包括:密码学基础,TLS协议,PKI体系及其安全性,HTTP和浏览器问题,协议漏洞;最新的攻击形式,如BEAST、CRIME、BREACH、Lucky 13等;详尽的部署建议;如何使用OpenSSL生成密钥和确认信息;如何使用Apache httpd、IIS、Nginx等进行安全配置。一起来看看 《HTTPS权威指南》 这本书的介绍吧!


