You may need to configure a proxy server if you're having trouble cloning
or fetching from a remote repository or getting an error
like unable to access '...' Couldn't resolve host '...'
.
Consider something like:
## I just ran into this after initializing a Visual Studio project _before_ adding a .gitignore file (like an idiot). | |
## I felt real dumb commiting a bunch of files I didn't need to, so the commands below should do the trick. The first two commands | |
## came from the second answer on this post: http://stackoverflow.com/questions/7527982/applying-gitignore-to-committed-files | |
# See the unwanted files: | |
git ls-files -ci --exclude-standard | |
# Remove the unwanted files: | |
git ls-files -ci --exclude-standard -z | xargs -0 git rm --cached |
# delete local tag '12345' | |
git tag -d 12345 | |
# delete remote tag '12345' (eg, GitHub version too) | |
git push origin :refs/tags/12345 | |
# alternative approach | |
git push --delete origin tagName | |
git tag -d tagName |
package com.betvictor.casino.presentation.views | |
/* | |
* Copyright 2019 The Android Open Source Project | |
* | |
* 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 |
import android.animation.AnimatorSet; | |
import android.animation.ObjectAnimator; | |
import android.animation.TimeInterpolator; | |
import android.graphics.Canvas; | |
import android.graphics.drawable.Drawable; | |
import android.os.Build; | |
import android.support.v7.graphics.drawable.DrawableWrapper; | |
import android.util.Property; | |
import android.view.animation.BounceInterpolator; | |
import android.view.animation.LinearInterpolator; |
import android.animation.Animator | |
import android.animation.AnimatorListenerAdapter | |
import android.annotation.SuppressLint | |
import android.annotation.TargetApi | |
import android.app.FragmentTransaction | |
import android.app.Activity | |
import android.app.AlertDialog | |
import android.app.Fragment | |
import android.app.NotificationManager | |
import android.app.ProgressDialog |
import android.content.Context | |
import android.util.AttributeSet | |
import android.view.View | |
import androidx.coordinatorlayout.widget.CoordinatorLayout | |
import androidx.core.view.NestedScrollingChild3 | |
import androidx.core.view.NestedScrollingChildHelper | |
class NestedCoordinatorLayout @JvmOverloads constructor( | |
context: Context, attrs: AttributeSet? = null, defStyleAttr: Int = 0 | |
) : CoordinatorLayout(context, attrs, defStyleAttr), NestedScrollingChild3 { |
/* | |
* Copyright 2019 Google LLC | |
* | |
* 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 |
// ============================================================================================ | |
// Code | |
// | |
// Example showing how to set a View's background to a tiled bitmap. | |
// assumes: res/drawable/pattern01.png - The bitmap representing an individual tile | |
public void setViewTiledBackground(View view, Resources resources) { | |
Bitmap tile = BitmapFactory.decodeResource(resources, R.drawable.pattern02); | |
BitmapDrawable tiledBitmapDrawable = new BitmapDrawable(resources, tile); | |
tiledBitmapDrawable.setTileModeX(Shader.TileMode.REPEAT); |
package com.example.api; | |
import java.util.Map; | |
import retrofit.Call; | |
import retrofit.http.Body; | |
import retrofit.http.GET; | |
import retrofit.http.POST; | |
public interface Api { |