(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
/* | |
* Copyright (c) 2017 Emil Davtyan | |
* | |
* Permission is hereby granted, free of charge, to any person obtaining | |
* a copy of this software and associated documentation files (the | |
* "Software"), to deal in the Software without restriction, including | |
* without limitation the rights to use, copy, modify, merge, publish, | |
* distribute, sublicense, and/or sell copies of the Software, and to | |
* permit persons to whom the Software is furnished to do so, subject to | |
* the following conditions: |
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
/* | |
Copyright 2015 Michal Pawlowski | |
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 |
/* | |
* 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 | |
* | |
* Unless required by applicable law or agreed to in writing, software |
public class ImageSlider { | |
private String name; | |
//optional @DrawableRes | |
@DrawableRes | |
private int resId; | |
public ImageSlider(String name, int resId) { | |
this.name = name; | |
this.resId = resId; |
@file:Suppress("NOTHING_TO_INLINE") | |
import android.content.Context | |
import androidx.annotation.StringRes | |
import androidx.fragment.app.Fragment | |
import androidx.preference.* | |
/** | |
* DSL marker for restricting access scope when [PreferencesBuilder.preference] is nested. | |
*/ |
function gen-cfd-icon(){ | |
ICON_DIR="src/main/resources/drawables/launcher_icons" | |
mkdir -p $ICON_DIR | |
ORIGINAL_ICON="$ICON_DIR/original.png" | |
cp "$1" "$ORIGINAL_ICON" | |
# Linux | |
echo "🌀 Creating icon for Linux..." | |
convert -resize x128 "$ORIGINAL_ICON" "$ICON_DIR/linux.png" |