Open-Awesome
CategoriesAlternativesStacksSelf-HostedExplore
Open-Awesome

© 2026 Open-Awesome. Curated for the developer elite.

TermsPrivacyAboutGitHubRSS
  1. Home
  2. Android
  3. Anko

Anko

Apache-2.0Kotlinv0.10.8

A Kotlin library for faster and cleaner Android development with DSLs for layouts, SQLite, coroutines, and common helpers.

GitHubGitHub
15.8k stars1.3k forks0 contributors

What is Anko?

Anko is a Kotlin library that simplifies Android application development by providing a suite of tools to write cleaner, more concise code. It addresses the verbosity and rough edges of the Android SDK for Java, offering DSLs for layouts, SQLite queries, coroutines, and common utilities. The library aims to make development faster and more enjoyable by leveraging Kotlin's expressive syntax.

Target Audience

Android developers using Kotlin who want to reduce boilerplate code, improve readability, and adopt modern Kotlin features like DSLs and coroutines in their apps.

Value Proposition

Developers choose Anko for its integrated approach to simplifying Android development with type-safe DSLs, especially for layouts and SQLite, and its seamless integration with Kotlin coroutines for asynchronous tasks, all while maintaining clean and readable code.

Overview

Pleasant Android application development

Use Cases

Best For

  • Writing Android layouts without XML using a type-safe Kotlin DSL
  • Simplifying SQLite database operations with a fluent query API
  • Integrating coroutines into Android UI event listeners
  • Reducing boilerplate code for intents, dialogs, and logging
  • Building dynamic UIs with support for ConstraintLayout via DSL
  • Leveraging Kotlin's language features for more expressive Android code

Not Ideal For

  • Projects requiring long-term maintenance and active support, as Anko is deprecated
  • Teams preferring XML-based layouts for better Android Studio tooling and team familiarity
  • Developers building with modern UI frameworks like Jetpack Compose, which supersedes Anko Layouts
  • Apps targeting the latest Android APIs, where Anko may lack compatibility and updates

Pros & Cons

Pros

Type-Safe Layout DSL

Anko Layouts allow writing dynamic Android layouts without XML, with examples showing concise Kotlin code for UI components and coroutine support in listeners.

SQLite Query Simplification

Anko SQLite provides a fluent DSL for database operations, as seen in the README example that simplifies querying and parsing results compared to raw cursors.

Coroutine-Powered Listeners

Integrates coroutines into UI event listeners, enabling async code directly in click handlers and offering weak reference wrappers to prevent memory leaks.

Boilerplate Reduction

Anko Commons includes utilities for intents, dialogs, and logging, reducing verbose patterns common in the Android SDK for Java.

Cons

Deprecated and Unmaintained

JetBrains has officially marked Anko as obsolete, meaning no new features, bug fixes, or support, making it risky for production use.

Complex Dependency Management

The README lists numerous artifacts for different parts and support libraries, leading to cumbersome setup and potential version conflicts.

Limited Tooling Support

The DSL preview plugin for Android Studio is likely outdated, reducing development experience compared to modern alternatives like XML or Compose.

Frequently Asked Questions

Quick Stats

Stars15,797
Forks1,270
Contributors0
Open Issues237
Last commit6 years ago
CreatedSince 2014

Tags

#dsl#coroutines#jetbrains#android#android-development#type-safe#sqlite#kotlin

Built With

S
SQLite
A
Android SDK
K
Kotlin
G
Gradle

Included in

Android12.0k
Auto-fetched 1 day ago

Related Projects

KotterknifeKotterknife

View "injection" library for Android.

Stars2,211
Forks192
Last commit6 years ago
Community-curated · Updated weekly · 100% open source

Found a gem we're missing?

Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.

Submit a projectStar on GitHub