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>
""")
}其他示例:
八年级数学(华东师大版)-解题升级-解题快速反应一本通(新课标)
孙丽敏等编 / 吉林教育出版社 / 2004-6 / 10.0
本书将与知识点、重点、难点和考点有关的典型题做全析全解,是具有解题题典性质的助学读物。但本书又优于解题题典,不仅展示解题过程,更详细地提供了解题思考过程和切入点的选择方法,教方法导引思路的功能更强。 学生要提高解题能力,必须具备两个条件:一是打好基础,二是能够运动所学知识分析问题和解决问题。本书用例题解析解说知识点、重点、难点和考点,同时提供解题思考过程,在打基础中激活能力,在解题实......一起来看看 《八年级数学(华东师大版)-解题升级-解题快速反应一本通(新课标)》 这本书的介绍吧!


