- Install GPG tools
- Install GPG tools and setup pin entry by running:
brew install gnupg pinentry-mac mkdir -m 700 -p ~/.gnupg echo "pinentry-program /usr/local/bin/pinentry-mac" >> ~/.gnupg/gpg-agent.conf killall gpg-agent
The Material Components Library introduced with the 1.2.0-alpha03 the new ShapeableImageView.
In your layout you can use:
<com.google.android.material.imageview.ShapeableImageView
android:id="@+id/image_view"
app:srcCompat="@drawable/..." />
Then in your code apply the ShapeAppearanceModel to define your custom corners:
Note: This gist may be outdated, thanks to all contributors in comments.
adb is the Android CLI tool with which you can interact with your android device, from your PC
You must enable developer mode (tap 7 times on the build version in parameters) and install adb on your PC.
Don't hesitate to read comments, there is useful tips, thanks guys for this !
| package com.satya.arcoresample | |
| import android.content.Context | |
| import android.hardware.Sensor | |
| import android.hardware.SensorEvent | |
| import android.hardware.SensorEventListener | |
| import android.hardware.SensorManager | |
| import android.location.Location | |
| import android.os.Build | |
| import android.os.Bundle |
| class AwsDataFetcher(private val s3Client: AmazonS3Client, private val awsImage: AwsImage) : DataFetcher<InputStream> { | |
| override fun getDataClass() = InputStream::class.java | |
| override fun loadData(priority: Priority, callback: DataFetcher.DataCallback<in InputStream>) { | |
| callback.onDataReady( | |
| s3Client.getObject( | |
| GetObjectRequest( | |
| awsImage.bucket, |
| #!/usr/bin/env bash | |
| set -e | |
| build_dir=$(pwd) | |
| echo "Curren build dir:" | |
| echo $build_dir | |
| cd $ANDROID_HOME/emulator | |
| echo "Creating sdcard image" |
Develop > Hosting > Connect Domain.Domain List > Manage > Advanced DNS.Host Records, add a new record with:| class SingleViewTouchableMotionLayout(context: Context, attributeSet: AttributeSet? = null) : | |
| MotionLayout(context, attributeSet) { | |
| private val viewToDetectTouch by lazy { | |
| if (resourceId != -1) | |
| return@lazy findViewById<View>(resourceId) | |
| else | |
| return@lazy null | |
| } | |
| private val viewRect = Rect() |
| /** | |
| * need call setFitsSystemWindows(false) on view that need it | |
| * | |
| * @param activity | |
| */ | |
| public static void setStatusBarTransparent(@NonNull Activity activity) { | |
| if (Build.VERSION.SDK_INT >= 19 && Build.VERSION.SDK_INT < 21) { | |
| setWindowFlag(activity, WindowManager.LayoutParams.FLAG_TRANSLUCENT_STATUS, true); | |
| } | |
| if (Build.VERSION.SDK_INT >= 19) { |
| const rp = require('request-promise'); | |
| const cheerio = require('cheerio'); | |
| const functions = require('firebase-functions'); | |
| const admin = require('firebase-admin'); | |
| admin.initializeApp(); | |
| const db = admin.firestore(); | |
| exports.allyPallyFarmersMarket = functions.https.onRequest((request, response) => { |