Instead of the verbose setOnClickListener:
RxView.clicks(submitButton).subscribe(o -> log("submit button clicked!"));Observable
.just(1, 2, 3, 4, 5, 6, 7, 8, 9, 10)| fun String.encodeBase64ToString(): String = String(this.toByteArray().encodeBase64()) | |
| fun String.encodeBase64ToByteArray(): ByteArray = this.toByteArray().encodeBase64() | |
| fun ByteArray.encodeBase64ToString(): String = String(this.encodeBase64()) | |
| fun String.decodeBase64(): String = String(this.toByteArray().decodeBase64()) | |
| fun String.decodeBase64ToByteArray(): ByteArray = this.toByteArray().decodeBase64() | |
| fun ByteArray.decodeBase64ToString(): String = String(this.decodeBase64()) | |
| fun ByteArray.encodeBase64(): ByteArray { | |
| val table = (CharRange('A', 'Z') + CharRange('a', 'z') + CharRange('0', '9') + '+' + '/').toCharArray() |
| package com.exmample.utils; | |
| import android.app.Dialog; | |
| import android.content.Context; | |
| import android.graphics.Color; | |
| import android.graphics.drawable.ColorDrawable; | |
| import android.view.Gravity; | |
| import android.view.Window; | |
| import android.view.WindowManager.LayoutParams; |
| // | |
| // KeyboardController.swift | |
| // | |
| // Created by Bruno Guerios on 2017-02-13. | |
| // | |
| import Foundation | |
| import UIKit | |
| class KeyboardController: NSObject { |
| i386 : iPhone Simulator | |
| x86_64 : iPhone Simulator | |
| arm64 : iPhone Simulator | |
| iPhone1,1 : iPhone | |
| iPhone1,2 : iPhone 3G | |
| iPhone2,1 : iPhone 3GS | |
| iPhone3,1 : iPhone 4 | |
| iPhone3,2 : iPhone 4 GSM Rev A | |
| iPhone3,3 : iPhone 4 CDMA | |
| iPhone4,1 : iPhone 4S |