GithubHelp home page GithubHelp logo

linecode / currency Goto Github PK

View Code? Open in Web Editor NEW

This project forked from yiyuanliu/currency

0.0 2.0 0.0 22.07 MB

A beautiful currency conversion app written in Kotlin and using Anko. Supports multi-theme with dynamic switching effect.

License: Apache License 2.0

Java 15.70% Kotlin 84.30%

currency's Introduction

Currency

download apk中文 README

💸A beautiful currency conversion app written in Kotlin and using Anko. Supports multi-theme with dynamic switching effect.

screenshot

Kotlin

Kotlin is a statically typed language targeting the JVM. It's created by JetBrains. Kotlin is concise, safe, versatile and interoperable. Go to kotlinlang.org to learn more about Kotlin.

fun main(args: Array<String>) {
    println("hello world")
}

Anko

By default, UI in Android is written using XML. But with Anko there is a new way. I used Anko to make a beautiful UI in this project.

override fun createView(ui: AnkoContext<MainActivity>): View = with(ui) {
    verticalLayout {
        val toolbar = toolBar {
            //init
        }.lparams {
            //init layout params
        }

        // other views...
    }
}

gif

About me

A student of UESTC.

Email: [email protected]


中文

一个美观的汇率转换软件,使用 Kotlin 编写,通过 Anko 框架编写 UI 并实现漂亮的主题动态切换效果。

screenshot

Kotlin

JetBrains 维护的 JVM 语言。和 Java6 相比,kotlin 表达更为简洁,提供 Lambda 表达式、类型推断、null 安全等特性。

fun main(args: Array<String>) {
    println("hello world")
}

Anko

Anko 是 Kotlin 提供的 ui 框架,通过 Anko 我们可以在代码中定义布局。Anko 比 xml 的使用更加强大,在 Anko 中可以方便的设置 listener ,也可以引用已有的 layout 文件。本项目中 ui 的主要部分使用 anko 框架编写,实现了很好的主题切换效果。

override fun createView(ui: AnkoContext<MainActivity>): View = with(ui) {
    verticalLayout {
        toolBar {
            //init
        }.lparams {
            //init layout params
        }

        // other views...
    }
}

gif

汇率数据

汇率数据通过雅虎财经提供的 Api 获得,网络请求部分使用 retrofit 框架。

About me

电子科技大学学生, Android 开发者。  

email: [email protected]

currency's People

Contributors

yiyuanliu avatar

Watchers

 avatar  avatar

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.