sudo apt install zsh-autosuggestions zsh-syntax-highlighting zsh
Following steps work for F29 for F31 look here
cat /etc/redhat-release
Fedora release 29 (Twenty Nine)
If you're familiar with Material Design, you've probably seen Chris Banes's Cheesesquare sample app. It illustrates the implementation of basic Material Design concepts using Material Components for Android (formerly known as the Design Support Library).
Download Android Studio 3.0 and use the wizard to create a new Android project. Be sure to select "Include Kotlin Support"! Then try to port the Cheesesquare app to Kotlin. I suggest trying to do so from scratch on your own, but you can use Android Studio to convert Java code to Kotlin. It does not always result in the most idiomatic Kotlin, so check the output and try to make it more idiomatic.
Get rid of the Navigation Drawer and use BottomNavigationView to handle the navigation in MainActivity.
public class RainbowLightsActivity extends Activity { | |
private static final String TAG = RainbowLightsActivity.class.getSimpleName(); | |
private List<Gpio> buttons = new ArrayList<>(); | |
private Map<Color, Gpio> leds = new HashMap<>(); | |
@Override | |
protected void onCreate(Bundle savedInstanceState) { | |
super.onCreate(savedInstanceState); |
import android.animation.TypeEvaluator; | |
import android.animation.ValueAnimator; | |
import static java.lang.Math.pow; | |
public class GammaEvaluator implements TypeEvaluator { | |
private static final GammaEvaluator instance = new GammaEvaluator(); | |
/** |
dependencies { | |
compile project(':core') | |
// Parser for scanRecord byte array returned from | |
// android.bluetooth.BluetoothAdapter.LeScanCallback.onLeScan() | |
// This is only needed for pre-Lollipop devices. | |
// https://github.com/TakahikoKawasaki/nv-bluetooth | |
// Apache 2.0 | |
compile 'com.neovisionaries:nv-bluetooth:1.7' |
package com.liberorignanese.android.gist; | |
import android.graphics.Canvas; | |
import android.graphics.Paint; | |
import android.text.style.ReplacementSpan; | |
/** | |
* Created by Libero Rignanese. | |
*/ |
package com.goeshow.barcodescanner.utils.objectReferenceMap; | |
import android.content.Context; | |
import android.support.v4.app.Fragment; | |
import java.util.HashMap; | |
/** | |
* Created by ekuivi on 8/24/16. | |
* |