LattekitAndroid UI 框架
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> """) }
其他示例:
评论
JingYesWEB UI 框架
静夜思-基于HTML5、CSS3的WEBUI框架。JingYes:是一个基于HTML5、CSS3的前端框架,中文名静夜思。在使用之前您需要了解以下几点:浏览器必须支持HTML5、CSS3、JavaSc
JingYesWEB UI 框架
0
PantherUIWeb UI 框架
PantherUI包含一组JavaScript模块和模板用于构建桌面和移动Web应用。Desktop/Tablet:BlackBerryZ10/Z30(Landscape):BlackBerryQ5/
PantherUIWeb UI 框架
0
zebra.jsWeb UI 框架
zebra是一个JavaScript库,遵循简单的OOP设计理念,提供基于富UI设计的HTML5画布,包括Java到Javascript的转换工具。
zebra.jsWeb UI 框架
0
ZinoUIjQuery UI 框架
ZinoUI是一个基于jQuery,兼容WAI-ARIA的用户接口框架,包含超过23个不同的组件。跨平台的UI框架可帮你构建Web和企业应用。完整的示例程序请看:http://zinoui.com/d
ZinoUIjQuery UI 框架
0