Skip to content

Commit

Permalink
add readme
Browse files Browse the repository at this point in the history
  • Loading branch information
burntcookie90 committed Apr 17, 2015
1 parent 4385147 commit ccba419
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 6 deletions.
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#KotMeh

This application was written as a test application for using [Kotlin](kotlinlang.org) and [Anko](https://github.com/JetBrains/anko) in an MVP architecture alongside varous Java libraries.
The application uses [meh.com](meh.com)'s api for it's data source.

I've tried to utilize various Kotlin features that I found to be pretty useful.
You'll see examples of delegated properties, anko UI design, expression body syntax, as well as Java interoperations.

To use this in Android Studio, you're going to need to install the Kotlin [plugin](https://plugins.jetbrains.com/plugin/6954?pr=idea) as well as the Kotlin Extensions [plugin](https://plugins.jetbrains.com/plugin/7717?pr=idea).

8 changes: 2 additions & 6 deletions app/src/main/kotlin/io/dwak/meh/model/Theme.kt
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,8 @@ class Theme(
return accentColorDrawable
}

fun getParsedAccentColor() : Int {
return Color.parseColor(accentColor)
}
fun getParsedAccentColor() : Int = Color.parseColor(accentColor)

fun getParsedBackgroundColor() : Int {
return Color.parseColor(backgroundColor)
}
fun getParsedBackgroundColor() : Int = Color.parseColor(backgroundColor)

}
1 change: 1 addition & 0 deletions meh.properties.example
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
api_key="srrgvNoUiZzL4xj0mZy7Cahv6ndH-SyD"

0 comments on commit ccba419

Please sign in to comment.