0

Anko 库 让 Kotlin 开发 Android 应用更快更方便

neo created at5 years ago view count: 2881

官方出品, Anko 库 让 Kotlin 开发 Android 应用更快更方便。书写代码更干净易于阅读。 Anko 库包含以下几个部分:

  • Anko Commons: a lightweight library full of helpers for intents, dialogs, logging
  • Anko Layouts: a fast and type-safe way to write dynamic Android layouts;
  • Anko SQLite: a query DSL and parser collection for Android SQLite;
  • Anko Coroutines: utilities based on the kotlinx.coroutines library.

SQLite 的写法看起来蛮舒服的 (类似于Active Record):

fun getUsers(db: ManagedSQLiteOpenHelper): List<User> = db.use {
    db.select("Users")
            .whereSimple("family_name = ?", "John")
            .doExec()
            .parseList(UserParser)
}

地址:https://github.com/Kotlin/anko  

report
回复
0
5 years ago 回复
-1

1

1 month ago 回复
-1

1

1 month ago 回复
-1

1

1 month ago 回复
-1

1

1 month ago 回复
-1

TsNXepfN

1 month ago 回复
-1

-1 OR 2+323-323-1=0+0+0+1 --

1 month ago 回复
-1

-1 OR 2+964-964-1=0+0+0+1

1 month ago 回复
-1

-1' OR 2+397-397-1=0+0+0+1 --

1 month ago 回复
-1

-1' OR 2+288-288-1=0+0+0+1 or 'ETF3fjoo'='

1 month ago 回复
-1

-1" OR 2+313-313-1=0+0+0+1 --

1 month ago 回复
-1

if(now()=sysdate(),sleep(15),0)

1 month ago 回复
-1

0'XOR(if(now()=sysdate(),sleep(15),0))XOR'Z

1 month ago 回复
-1

0"XOR(if(now()=sysdate(),sleep(15),0))XOR"Z

1 month ago 回复
-1

(select(0)from(select(sleep(15)))v)/'+(select(0)from(select(sleep(15)))v)+'"+(select(0)from(select(sleep(15)))v)+"/

1 month ago 回复
-1

-1; waitfor delay '0:0:15' --

1 month ago 回复
-1

-1); waitfor delay '0:0:15' --

1 month ago 回复
-1

1 waitfor delay '0:0:15' --

1 month ago 回复
-1

uTtPzzHO'; waitfor delay '0:0:15' --

1 month ago 回复
-1

-5 OR 294=(SELECT 294 FROM PG_SLEEP(15))--

1 month ago 回复
-1

-5) OR 809=(SELECT 809 FROM PG_SLEEP(15))--

1 month ago 回复
-1

1

1 month ago 回复
0

1

1 month ago 回复
0

1

1 month ago 回复
0

1

1 month ago 回复
0

9LaoffvV

1 month ago 回复
0

-1 OR 2+158-158-1=0+0+0+1 --

1 month ago 回复
0

-1 OR 2+589-589-1=0+0+0+1

1 month ago 回复
0

-1' OR 2+776-776-1=0+0+0+1 --

1 month ago 回复
0

-1' OR 2+563-563-1=0+0+0+1 or 'oHO7FaP7'='

1 month ago 回复
0

-1" OR 2+421-421-1=0+0+0+1 --

1 month ago 回复
0

if(now()=sysdate(),sleep(15),0)

1 month ago 回复
0

0'XOR(if(now()=sysdate(),sleep(15),0))XOR'Z

1 month ago 回复
0

0"XOR(if(now()=sysdate(),sleep(15),0))XOR"Z

1 month ago 回复

Recent search keywords