https://github.com/slideclimb/anko-xml
Collection of Android XML layout(s) with Anko equivalent
https://github.com/slideclimb/anko-xml
android ankolayouts kotlin
Last synced: 2 months ago
JSON representation
Collection of Android XML layout(s) with Anko equivalent
- Host: GitHub
- URL: https://github.com/slideclimb/anko-xml
- Owner: slideclimb
- Created: 2018-07-16T14:04:14.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2018-07-17T13:22:58.000Z (almost 7 years ago)
- Last Synced: 2025-02-04T22:25:15.330Z (4 months ago)
- Topics: android, ankolayouts, kotlin
- Language: Kotlin
- Size: 126 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Anko vs. XML
A collection of Android layouts in both XML and Anko.
As there is very little Anko documentation, I have found it is often easiest to search for a solution in XML and translate that to Anko...
Collecting things here to be able to find them back later and skip the XML step.+ Layout
+ `TableLayout`
+ View element
+ `Switch`
+ `Spinner`# Kotlin and Anko
A collection of other Kotlin and Anko things.## UI
+ **Menu** The menu and menu items need to be created using *XML*.
Then use Kotlin to inflate the menu and set the `onClickListener`.## Little Anko things that make life a bit easier
+ Starting an Activity: `startActivity()`.
+ Creating a Toast: `toast("text")`.