-1

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

neo created at5 years ago view count: 3233

官方出品, 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
回复
-1
5 years ago 回复
-1

1

6 months ago 回复
-1

1

6 months ago 回复
-1

1

6 months ago 回复
-1

1

6 months ago 回复
-1

TsNXepfN

6 months ago 回复
-1

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

6 months ago 回复
-1

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

6 months ago 回复
-1

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

6 months ago 回复
-1

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

6 months ago 回复
-1

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

6 months ago 回复
-1

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

6 months ago 回复
-1

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

6 months ago 回复
-1

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

6 months ago 回复
-1

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

6 months ago 回复
-1

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

6 months ago 回复
-1

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

6 months ago 回复
-1

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

6 months ago 回复
-1

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

6 months ago 回复
-1

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

6 months ago 回复
-1

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

6 months ago 回复
-1

1

6 months ago 回复
0

1

6 months ago 回复
-1

1

6 months ago 回复
-1

1

6 months ago 回复
-1

9LaoffvV

6 months ago 回复
-1

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

6 months ago 回复
-1

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

6 months ago 回复
-1

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

6 months ago 回复
-1

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

6 months ago 回复
-1

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

6 months ago 回复
-1

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

6 months ago 回复
-1

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

6 months ago 回复
-1

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

6 months ago 回复
0

1

4 months ago 回复
0

1

4 months ago 回复
0

1

4 months ago 回复
0

dHsyY090

4 months ago 回复
0

-1 OR 2+476-476-1=0+0+0+1 --

4 months ago 回复
0

-1 OR 2+560-560-1=0+0+0+1

4 months ago 回复
0

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

4 months ago 回复
0

-1' OR 2+391-391-1=0+0+0+1 or 'nUJurDYB'='

4 months ago 回复
0

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

4 months ago 回复
0

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

4 months ago 回复
0

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

4 months ago 回复
0

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

4 months ago 回复
0

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

4 months ago 回复
0

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

4 months ago 回复
0

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

4 months ago 回复
0

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

4 months ago 回复
0

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

4 months ago 回复
0

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

4 months ago 回复
0

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

4 months ago 回复
0

-1)) OR 77=(SELECT 77 FROM PG_SLEEP(15))--

4 months ago 回复
0

mwEzfxPO' OR 859=(SELECT 859 FROM PG_SLEEP(15))--

4 months ago 回复
0

EU4BtuUU') OR 13=(SELECT 13 FROM PG_SLEEP(15))--

4 months ago 回复
0

eYV0k4Ey')) OR 276=(SELECT 276 FROM PG_SLEEP(15))--

4 months ago 回复
0

1*DBMS_PIPE.RECEIVE_MESSAGE(CHR(99)||CHR(99)||CHR(99),15)

4 months ago 回复
0

1'||DBMS_PIPE.RECEIVE_MESSAGE(CHR(98)||CHR(98)||CHR(98),15)||'

4 months ago 回复
0

1'"

4 months ago 回复
0

1????%2527%2522

4 months ago 回复
0

@@e7sbn

4 months ago 回复
0

1

4 months ago 回复
0

1

4 months ago 回复
0

1

4 months ago 回复
0

1

4 months ago 回复
0

1

4 months ago 回复
0

1

4 months ago 回复
0

1

4 months ago 回复
0

1

4 months ago 回复
0

1

4 months ago 回复
0

1

4 months ago 回复
0

1

4 months ago 回复

Recent search keywords