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)| interface ApiInterface { | |
| @GET("User") | |
| fun getUser( | |
| @Query("user_id") userId: String | |
| ): Deferred<User> | |
| } |
| import java.text.SimpleDateFormat | |
| import java.util.* | |
| /** | |
| * Pattern: yyyy-MM-dd HH:mm:ss | |
| */ | |
| fun Date.formatToServerDateTimeDefaults(): String{ | |
| val sdf= SimpleDateFormat("yyyy-MM-dd HH:mm:ss", Locale.getDefault()) | |
| return sdf.format(this) | |
| } |
| <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" /> |
| import android.graphics.Canvas; | |
| import android.graphics.ColorFilter; | |
| import android.graphics.Matrix; | |
| import android.graphics.Rect; | |
| import android.graphics.RectF; | |
| import android.graphics.drawable.Drawable; | |
| import android.support.annotation.IntRange; | |
| import android.support.annotation.NonNull; | |
| import android.support.annotation.Nullable; |
| /* | |
| * 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 |
| Status | Type | Env Vars Change | Review App | Ticket |
|---|---|---|---|---|
| Ready/Hold | Feature/Bug/Tooling/Refactor/Hotfix | Yes/No | Link | Link |
⚠️ NOTE: use notes like this to emphasize something about the PR. This could include other PRs this PR is built on top of; new or removed environment variables; reasons for why the PR is on hold; or anything else you would like to draw attention to.
What problem are you trying to solve?
| <?xml version="1.0" encoding="utf-8"?> | |
| <android.support.v4.widget.DrawerLayout | |
| xmlns:android="http://schemas.android.com/apk/res/android" | |
| xmlns:app="http://schemas.android.com/apk/res-auto" | |
| xmlns:tools="http://schemas.android.com/tools" | |
| android:id="@+id/drawer" | |
| android:layout_width="match_parent" | |
| android:layout_height="match_parent" | |
| android:fitsSystemWindows="true" | |
| tools:openDrawer="start"> |
| // app module build.gradle | |
| apply plugin: 'com.android.application' | |
| android { | |
| compileSdkVersion rootProject.compileSdkVersion | |
| buildToolsVersion rootProject.buildToolsVersion | |
| defaultConfig { | |
| applicationId "com.segunfamisa.gradleextraproperties" | |
| minSdkVersion rootProject.minSdkVersion | |
| targetSdkVersion rootProject.targetSdkVersion |
| <?xml version="1.0" encoding="utf-8"?> | |
| <!-- | |
| Copyright 2016 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 |