GithubHelp home page GithubHelp logo

mcxiaoke / kotlin-koi Goto Github PK

View Code? Open in Web Editor NEW
515.0 22.0 54.0 210 KB

Koi, a lightweight kotlin library for Android Development.

Home Page: https://github.com/mcxiaoke/kotlin-koi

License: Apache License 2.0

Kotlin 99.39% Shell 0.61%
kotlin kotlin-android kotlin-library

kotlin-koi's People

Contributors

antoniovj1 avatar emansih avatar mcxiaoke avatar rostopira avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

kotlin-koi's Issues

Error with Gradle

If I try to use (like documented)

compile 'com.mcxiaoke.koi:core:0.5.1'
compile 'com.mcxiaoke.koi:async:0.5.1'

I got this error:

Error:Module 'com.mcxiaoke.koi:core:0.5.1' depends on one or more Android Libraries but is a jar

Thread pools

Please can you explain me how can I solve my problem:
I need to downloadload ListView items images into an async task and I think that creating a some like this can work:

asyncSafe {
  val image = downloadImage(myUrl)

  mainThreadSafe {
            assignImageToImageView(image)
  }
}

and call this into onBindViewHolder.

My problem is that this method can create hundreds threads and degrade the performance :(

I want to make a list of threads with an execution limit (like 5 for example) at a time.

Can be this with your fantastic utils?

v0.5.5

Hi, there is a mistake. v0.5.4 is on maven instead of v0.5.5, are you able to fix it? thank you

AndroidX issues

I just updated to the androidX package and some methods like "toast", "longToast", "startActivityForResult" can't be find by the compiler.

This is caused because the Fragment class from the old support library has changed its package to androidx.fragment.app.Fragment, this way the compiler can't find the extension functions to the old android.support.v4.app.Fragment.

Extensions/DSL for SharedPreferences?

Would be great to see extension functions or DSL for SharedPreferences. This library has almost everything else needed to boost Android Development using Kotlin!

getActivity from view

Would be nice to be able to specify a class in order to avoid a cast to AppCompatActivity or any custom activity class.

Something like getActivity<AppCompatActivity>()

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.