https://kotlinlang.org logo
Join the conversationJoin Slack
Channels
100daysofcode
100daysofkotlin
100daysofkotlin-2021
advent-of-code
aem
ai
alexa
algeria
algolialibraries
amsterdam
android
android-architecture
android-databinding
android-studio
androidgithubprojects
androidthings
androidx
androidx-xprocessing
anime
anko
announcements
apollo-kotlin
appintro
arabic
argentina
arkenv
arksemdevteam
armenia
arrow
arrow-contributors
arrow-meta
ass
atlanta
atm17
atrium
austin
australia
austria
awesome-kotlin
ballast
bangladesh
barcelona
bayarea
bazel
beepiz-libraries
belgium
berlin
big-data
books
boston
brazil
brikk
budapest
build
build-tools
bulgaria
bydgoszcz
cambodia
canada
carrat
carrat-dev
carrat-feed
chicago
chile
china
chucker
cincinnati-user-group
cli
clikt
cloudfoundry
cn
cobalt
code-coverage
codeforces
codemash-precompiler
codereview
codingame
codingconventions
coimbatore
collaborations
colombia
colorado
communities
competitive-programming
competitivecoding
compiler
compose
compose-android
compose-desktop
compose-hiring
compose-ios
compose-mp
compose-ui-showcase
compose-wear
compose-web
connect-audit-events
corda
cork
coroutines
couchbase
coursera
croatia
cryptography
cscenter-course-2016
cucumber-bdd
cyprus
czech
dagger
data2viz
databinding
datascience
dckotlin
debugging
decompose
decouple
denmark
deprecated
detekt
detekt-hint
dev-core
dfw
docs-revamped
dokka
domain-driven-design
doodle
dsl
dublin
dutch
eap
eclipse
ecuador
edinburgh
education
effective-kotlin
effectivekotlin
emacs
embedded-kotlin
estatik
event21-community-content
events
exposed
failgood
fb-internal-demo
feed
firebase
flow
fluid-libraries
forkhandles
forum
fosdem
fp-in-kotlin
framework-elide
freenode
french
fritz2
fuchsia
functional
funktionale
gamedev
ge-kotlin
general-advice
georgia
geospatial
german-lang
getting-started
github-workflows-kt
glance
godot-kotlin
google-io
gradle
graphic
graphkool
graphql
graphql-kotlin
graviton-browser
greece
grpc
gsoc
gui
hackathons
hacktoberfest
hamburg
hamkrest
helios
helsinki
hexagon
hibernate
hikari-cp
hire-me
hiring
hongkong
hoplite
http4k
hungary
hyderabad
image-processing
india
indonesia
inkremental
intellij
intellij-plugins
intellij-tricks
internships
introduce-yourself
io
ios
iran
israel
istanbulcoders
italian
jackson-kotlin
jadx
japanese
jasync-sql
java-to-kotlin-refactoring
javadevelopers
javafx
javalin
javascript
jdbi
jhipster-kotlin
jobsworldwide
jpa
jshdq
juul-libraries
jvm-ir-backend-feedback
jxadapter
k2-early-adopters
kaal
kafka
kakao
kalasim
kapt
karachi
karg
karlsruhe
kash_shell
kaskade
kbuild
kdbc
kgen-doc-tools
kgraphql
kinta
klaxon
klock
kloudformation
kmdc
kmm-español
kmongo
knbt
knote
koalaql
koans
kobalt
kobweb
kodein
kodex
kohesive
koin
koin-dev
komapper
kondor-json
kong
kontent
kontributors
korau
korean
korge
korim
korio
korlibs
korte
kotest
kotest-contributors
kotless
kotlick
kotlin-asia
kotlin-beam
kotlin-by-example
kotlin-csv
kotlin-data-storage
kotlin-foundation
kotlin-fuel
kotlin-in-action
kotlin-inject
kotlin-latam
kotlin-logging
kotlin-multiplatform-contest
kotlin-mumbai
kotlin-native
kotlin-pakistan
kotlin-plugin
kotlin-pune
kotlin-roadmap
kotlin-samples
kotlin-sap
kotlin-serbia
kotlin-spark
kotlin-szeged
kotlin-website
kotlinacademy
kotlinbot
kotlinconf
kotlindl
kotlinforbeginners
kotlingforbeginners
kotlinlondon
kotlinmad
kotlinprogrammers
kotlinsu
kotlintest
kotlintest-devs
kotlintlv
kotlinultimatechallenge
kotlinx-datetime
kotlinx-files
kotlinx-html
kotrix
kotson
kovenant
kprompt
kraph
krawler
kroto-plus
ksp
ktcc
ktfmt
ktlint
ktor
ktp
kubed
kug-leads
kug-torino
kvision
kweb
lambdaworld_cadiz
lanark
language-evolution
language-proposals
latvia
leakcanary
leedskotlinusergroup
lets-have-fun
libgdx
libkgd
library-development
linkeddata
lithuania
london
losangeles
lottie
love
lychee
macedonia
machinelearningbawas
madrid
malaysia
mathematics
meetkotlin
memes
meta
metro-detroit
mexico
miami
micronaut
minnesota
minutest
mirror
mockk
moko
moldova
monsterpuzzle
montreal
moonbean
morocco
motionlayout
mpapt
mu
multiplatform
mumbai
munich
mvikotlin
mvrx
myndocs-oauth2-server
naming
navigation-architecture-component
nepal
new-mexico
new-zealand
newname
nigeria
nodejs
norway
npm-publish
nyc
oceania
ohio-kotlin-users
oldenburg
oolong
opensource
orbit-mvi
osgi
otpisani
package-search
pakistan
panamá
pattern-matching
pbandk
pdx
peru
philippines
phoenix
pinoy
pocketgitclient
polish
popkorn
portugal
practical-functional-programming
proguard
prozis-android-backup
pyhsikal
python
python-contributors
quasar
random
re
react
reaktive
realm
realworldkotlin
reductor
reduks
redux
redux-kotlin
refactoring-to-kotlin
reflect
refreshversions
reports
result
rethink
revolver
rhein-main
rocksdb
romania
room
rpi-pico
rsocket
russian
russian_feed
russian-kotlinasfirst
rx
rxjava
san-diego
science
scotland
scrcast
scrimage
script
scripting
seattle
serialization
server
sg-user-group
singapore
skia-wasm-interop-temp
skrape-it
slovak
snake
sofl-user-group
southafrica
spacemacs
spain
spanish
speaking
spek
spin
splitties
spotify-mobius
spring
spring-security
squarelibraries
stackoverflow
stacks
stayhungrystayfoolish
stdlib
stlouis
strife-discord-lib
strikt
students
stuttgart
sudan
swagger-gradle-codegen
swarm
sweden
swing
swiss-user-group
switzerland
talking-kotlin
tallinn
tampa
teamcity
tegal
tempe
tensorflow
terminal
test
testing
testtestest
texas
tgbotapi
thailand
tornadofx
touchlab-tools
training
tricity-kotlin-user-group
trójmiasto
truth
tunisia
turkey
turkiye
twitter-feed
uae
udacityindia
uk
ukrainian
uniflow
unkonf
uruguay
utah
uuid
vancouver
vankotlin
vertx
videos
vienna
vietnam
vim
vkug
vuejs
web-mpp
webassembly
webrtc
wimix_sentry
wwdc
zircon
Powered by Linen
anko
  • d

    david.bilik

    03/22/2018, 11:16 AM
    why should I use your lib instead of anko?
    l
    • 2
    • 3
  • j

    joseph_ivie

    03/26/2018, 9:54 PM
    @louiscad I thought of doing something similar. I ended up not doing so for a simple reason: I have to type fewer symbols with Anko. Seriously, that's the only reason. Your approach honestly makes more sense, and is simpler. It just involves more
    ::(),
    l
    • 2
    • 1
  • j

    joseph_ivie

    03/26/2018, 10:09 PM
    Question for channel: do you guys still use Anko? It just seems like very few people do.
    a
    p
    +3
    • 6
    • 6
  • j

    joseph_ivie

    03/26/2018, 11:06 PM
    Also, trick I found: You can preview Anko without using the plugin by creating a custom view, executing the Anko there, and then inserting that custom view into an XML and previewing the XML.
    l
    • 2
    • 2
  • j

    josephivie

    04/03/2018, 7:56 PM
    I'm thinking of building the unholy abomination... a DSL like Anko for Android/iOS (Multi-OS Engine)/Desktop/Maybe web. I plan on making it really easy to insert a new view type. Any thoughts?
    c
    j
    • 3
    • 4
  • a

    albertgao

    04/15/2018, 11:17 PM
    How to make
    indeterminateProgressDialog
    non cancellable? There is a
    isCancelable
    property for
    alert
    , but seems not the case for
    indeterminateProgressDialog
    , how to solve it?
    l
    s
    • 3
    • 5
  • j

    josephivie

    07/12/2018, 8:55 PM
    https://github.com/lightningkite/lk-kotlin-android
    h
    • 2
    • 3
  • l

    LeoColman

    08/01/2018, 12:32 AM
    How to add menu items to Anko's coordinator layout toolbar?
    l
    • 2
    • 1
  • l

    LeoColman

    08/10/2018, 1:45 PM
    I don't like using XML Ids. The main reason that I'm using Anko is to escape from dealing with all the xml shenanigans
    m
    l
    • 3
    • 2
  • g

    ghosalmartin

    08/13/2018, 1:43 PM
    so we wanna use anko in a production app thats coming up. itll be an app heavily focused on reusable components. also components that resize easily, components that animate nicely etc etc. which seems like we'll need constraint layout. does anyone have any experience of using anko and constraint layouts in general? any input would be appreciate with anko in general or anko and constraint layouts 🙂
    l
    • 2
    • 3
  • t

    tania

    08/30/2018, 7:06 PM
    I have an alert with a custom view that I created with Anko. The alert has a editText and a positive and negative button. I want the positive button to be disabled until there is text in the editText. Does anyone know how to do this? When the text changes in my editText, I'm listening to it with a textChangedListener and setting a property that can be accessed from outside the DSL. But I can't seem to get access to the positive button from anywhere to enable or disable it.
    m
    • 2
    • 4
  • b

    bryan

    09/04/2018, 6:42 PM
    private var instructionsView: DialogInterface? = null
    
        private fun showInstructionView() {
            instructionsView?.dismiss()
            instructionsView =
                context.alert {
                    customView {
                        include<View>(R.layout.instruction_view)
                    }
                    onCancelled { App.unwindToMainMenu() }
                }.show()
    Is there any way to animate this so it fades into/out of view?
    m
    l
    • 3
    • 7
  • a

    Allan Wang

    09/18/2018, 7:58 PM
    Is there any use case to have
    doAsync
    over general Android coroutines anymore? Especially if we only use
    doAsync
    and
    uiThread
    ?
    l
    • 2
    • 1
  • t

    tateisu

    09/28/2018, 5:58 AM
    When updating anko layout from 0.10.5 to 0.10.6, I have experience many error about "lparams" function.
    r
    • 2
    • 3
  • r

    ribesg

    09/28/2018, 9:00 AM
    Aw I wanted to migrate to AndroidX but Anko didn't do it 😞 AndroidX has now been released!
    m
    • 2
    • 1
  • c

    Christian Goldapp

    10/08/2018, 12:35 PM
    Does Anko offer a special mechanism to deal with requesting permissions at runtime? Implementing it the "regular way", as it would be done in pure Java, seems pretty clunky and un-Kotlin to me.
    m
    a
    • 3
    • 3
  • a

    andy.burdett

    10/10/2018, 9:18 AM
    I'm new to Anko and would like to know what is the best way of specifying the same layout params on more than one component?
    l
    a
    g
    • 4
    • 6
  • j

    Jean Mainguy

    11/02/2018, 9:59 AM
    With the new Kotlin coroutine release, Anko has deprecated the
    onClick{ }
    , any idea what to use instead?
    l
    n
    • 3
    • 6
  • h

    hallvard

    11/16/2018, 7:34 AM
    I can use
    delay()
    in any coroutine, but not when using Anko's
    doAsync { }
    . What am I missing? How should I handle it?
    l
    • 2
    • 5
  • n

    nickk

    12/19/2018, 6:03 PM
    Hi! Any idea why the themed version crashes, with
    UnsupportedOperationException
    ?
    themedEditText
    works fine, for instance.
    // fine
        textView("> Hello from code $count") {
        }
    
        // crashes
        themedTextView("> Hello from code $count", theme = R.style.TextLarge2) {
        }
    AS 3.2, anko 0.10.8
    m
    • 2
    • 9
  • l

    LeoColman

    01/09/2019, 6:00 PM
    Is it possible to set style?
    l
    • 2
    • 1
  • n

    nickk

    01/10/2019, 12:25 PM
    @david.bilik @louiscad Since themes and styles differ only in the scope they are applied to (as stated in the linked blog post), why am I getting different results?
    l
    • 2
    • 1
  • n

    nickk

    02/09/2019, 10:47 AM
    @hhariri I have built my app based on anko. Many people here feel it is abandoned. Is Anko going to be updated for AndroidX? Apart from words and personal impressions: Github reports the androidx branch under the “*stale*” tab. No branch is reported as active. Should I ditch months of work and stop using anko?
    l
    h
    +4
    • 7
    • 8
  • l

    LeoColman

    02/18/2019, 6:17 PM
    I think that many times good devs from Jetbrains work on a good community project. It gets very good and very big. After some time, the good JB dev is reassigned to do some more important work, and the project stays abandoned for a lot of time. This isn't the first project this kind of thing happened 😕
    m
    • 2
    • 1
  • r

    ribesg

    02/25/2019, 10:33 AM
    Is there any alternative to Anko? I can’t justify starting a new app without androidx...
    p
    l
    +3
    • 6
    • 40
  • b

    Benoît

    04/23/2019, 6:22 PM
    Hey guys, I’m working on a solution for building layouts using pure Kotlin. It’s more of a research kind of thing at the moment so bare with me. Here’s a quick demo, link to the repo in the video description. Let me know your thoughts!

    https://www.youtube.com/watch?v=MmUCau26tLg▾

    ❤️ 4
    m
    • 2
    • 5
  • t

    Tsvetozar Bonev

    05/29/2019, 6:11 AM
    Hello, I'm new to Android and Anko as a whole and am struggling to make the connection between my business logic, my activity and the layout. Does Anko have any data-binding sort of ordeal for it's layouts and what is the practice for returning that data back to the activity, a public function accessed from an onClick or something else?
    p
    m
    • 3
    • 2
  • n

    nickk

    07/26/2019, 1:46 PM
    @vyacheslav.gerasimov Hi there! What are your plans regarding AndroidX support in anko? 5 months ago I was told by @yan that you will complete work on AndroidX. I am about to start a new project, and I am puzzled. I want to reuse anko code from another project, and I am hesitating. @hhariri Don’t you feel that a 15.000 stars project deserves some love?
    h
    m
    +2
    • 5
    • 12
  • a

    amadeu01

    10/03/2019, 1:52 PM
    hi folks, I haven’t used anko, I’m trying to understand more. But, I got confused in the repository, I found this:
    implementation "org.jetbrains.anko:anko-sdk25:$anko_version" // sdk15, sdk19, sdk21, sdk23 are also available
    But, what is the difference between
    sdk25
    and others? I mean, if my android project is supporting a minimum target of sdk 19, I should import all the anko sdks from 19 to 25 ?
    r
    • 2
    • 1
  • y

    yan

    12/01/2019, 6:00 PM
    💬 Hello everyone! After some internal discussion, we decided to deprecate Anko. Some of you already knew about it, and now it’s official. You can find the details here: https://github.com/Kotlin/anko/blob/master/GOODBYE.md. Thank you for your continuous support throughout these years!
    😔 5
    👏 1
    😭 5
    👋 6
    l
    h
    +2
    • 5
    • 10
Powered by Linen
Title
y

yan

12/01/2019, 6:00 PM
💬 Hello everyone! After some internal discussion, we decided to deprecate Anko. Some of you already knew about it, and now it’s official. You can find the details here: https://github.com/Kotlin/anko/blob/master/GOODBYE.md. Thank you for your continuous support throughout these years!
😔 5
👏 1
😭 5
👋 6
l

louiscad

12/01/2019, 7:39 PM
Hello! Thanks for the update. Anko has been a good inspiration for me while I was getting started in Kotlin, and later when I worked on #splitties, so thank you for the effort, that definitely helped move the Kotlin ecosystem forward, and I'm pretty sure you inspired AndroidX KTX too. Now, I'm wondering what you've been and are working on at JetBrains! 🤔
h

hugo.matilla

12/02/2019, 3:41 PM
@yan I’m really sorry that Anko has to go, but I also understand why. I use
AnkoLogger
as my default Logger, is there something that you recommend in substitution like Timber? @louiscad I don’t see nothing in splitties. Is there something that I didn’t see? Any plans to add it? Finally I will just use this spot to thank you to both of you for your work and contribution to the Kotlin community 💯🥇❤️
l

louiscad

12/02/2019, 4:20 PM
@hugo.matilla I personally use
Timber
. Splitties is now headed multiplatform, so if I was to add a logger, I'd want to make a multiplatform API (making the task a little tougher). It's not my focus right now and it requires some time to think about how to do it right, so ideas and use cases are welcome. Feel free to open an issue in Splitties project or start a discussion in #splitties channel.
h

hugo.matilla

12/02/2019, 4:34 PM
I will think about it and if I came with a nice idea i will tell you. Thanks for the answer.
y

yan

12/03/2019, 9:21 AM
@hugo.matilla, you know, Anko is under Apache 2.0, it’s not that hard to move AnkoLogger out :)
➕ 3
h

hugo.matilla

12/03/2019, 9:44 AM
Sure, I will do. thanks 😉
t

thymecypher

12/09/2019, 8:45 PM
My first OS contribution. 😢
l

louiscad

12/09/2019, 9:27 PM
OS contribution? Edit: You probably meant OSS.
t

thymecypher

12/09/2019, 9:49 PM
Yes, that.
c

caelum19

09/09/2020, 6:42 PM
#compose
View count: 19