If you are annoyed that "Sources for Android 26" are not yet available via SDK manager, this might be for you:
- Collect source files
mkdir android-sdk-source-build
cd android-sdk-source-build
mkdir -p frameworks/base| package be.digitalia.common.services | |
| import android.app.Service | |
| import android.content.Intent | |
| import android.os.Message | |
| import kotlinx.coroutines.experimental.android.UI | |
| import kotlinx.coroutines.experimental.channels.Channel | |
| import kotlinx.coroutines.experimental.channels.LinkedListChannel | |
| import kotlinx.coroutines.experimental.launch |
| import android.content.Context | |
| import android.graphics.Canvas | |
| import android.graphics.Paint | |
| import android.graphics.RectF | |
| import android.support.annotation.ColorRes | |
| import android.support.v4.content.res.ResourcesCompat | |
| import android.support.v4.view.ViewCompat | |
| import android.support.v7.widget.RecyclerView | |
| import org.jetbrains.anko.dip |
If you are annoyed that "Sources for Android 26" are not yet available via SDK manager, this might be for you:
mkdir android-sdk-source-build
cd android-sdk-source-build
mkdir -p frameworks/base| /* | |
| * Copyright (C) 2017 The Android Open Source Project | |
| * | |
| * Licensed under the Apache License, Version 2.0 (the "License"); | |
| * you may not use this file except in compliance with the License. | |
| * You may obtain a copy of the License at | |
| * | |
| * http://www.apache.org/licenses/LICENSE-2.0 | |
| * | |
| * Unless required by applicable law or agreed to in writing, software |
| <scheme name="Material Dark" version="142" parent_scheme="Darcula"> | |
| <!-- | |
| 1. Install the Roboto Mono Regular font - https://fonts.google.com/specimen/Roboto+Mono?selection.family=Roboto+Mono | |
| 2. Copy `Material Dark.icls` to `~/Library/Preferences/AndroidStudio3.0/colors/` | |
| 3. Restart AS | |
| 4. Preferences > Editor > Color and Fonts > select Material Dark and press OK | |
| --> | |
| <option name="FONT_SCALE" value="1.0" /> |
| /* | |
| * Copyright 2017 Google, Inc. | |
| * | |
| * Licensed under the Apache License, Version 2.0 (the "License"); | |
| * you may not use this file except in compliance with the License. | |
| * You may obtain a copy of the License at | |
| * | |
| * http://www.apache.org/licenses/LICENSE-2.0 | |
| * | |
| * Unless required by applicable law or agreed to in writing, software |
| /** | |
| * An approximate port of https://github.com/s-macke/VoxelSpace | |
| * using Kotlin and JavaFX. | |
| * | |
| * Run with : kotlinc -script voxel.kts | |
| * | |
| * Click on the panel to "fly". | |
| * | |
| * Twitter: @CedricChampeau | |
| */ |
If you're trying to do this, you came to the right place!
Watch this code work in real time: https://twitter.com/CodingDoug/status/940022568089554944
See also this gist for copying in the other direction: https://gist.github.com/CodingDoug/44ad12f4836e79ca9fa11ba5af6955f7
| package browser | |
| import org.w3c.dom.Element | |
| import org.w3c.dom.events.UIEvent | |
| typealias TouchId = Int | |
| external interface Touch { | |
| val identifier: TouchId | |
| val target: Element |