Skip to content

Instantly share code, notes, and snippets.

View ViktorMatskevich's full-sized avatar

Viktor Matskevich ViktorMatskevich

View GitHub Profile
org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':app:compileDebugJavaWithJavac'.
at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:100)
at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.execute(ExecuteActionsTaskExecuter.java:70)
at org.gradle.api.internal.tasks.execution.OutputDirectoryCreatingTaskExecuter.execute(OutputDirectoryCreatingTaskExecuter.java:51)
at org.gradle.api.internal.tasks.execution.SkipUpToDateTaskExecuter.execute(SkipUpToDateTaskExecuter.java:62)
at org.gradle.api.internal.tasks.execution.ResolveTaskOutputCachingStateExecuter.execute(ResolveTaskOutputCachingStateExecuter.java:54)
at org.gradle.api.internal.tasks.execution.ValidatingTaskExecuter.execute(ValidatingTaskExecuter.java:60)
at org.gradle.api.internal.tasks.execution.SkipEmptySourceFilesTaskExecuter.execute(SkipEmptySourceFilesTaskExecuter.java:97)
at org.gradle.api.internal.tasks.execution.CleanupStaleOutputsExe
{
"main": "node_modules/expo/AppEntry.js",
"private": true,
"dependencies": {
"expo": "^27.0.1",
"moment": "^2.22.1",
"moment-timezone": "^0.5.21",
"moment-with-locales-es6": "^1.0.1",
"parse": "^1.11.0",
"react": "16.3.1",

ParseProxyObject-Kotlin

Class ParseHelper wraps ParseObject so it can be passed to new intent or bundle as serializable extra.

How to use it?

Everything is very simple. Follow next steps.

Step 1

You have any ParseObject subclass. You must pass it into ParseHelper.create() method.

val user = ParseUser()
user.put(KEY_LOCATION, ParseGeoPoint(0.121, 0.4454)
package com.qoob.helpers.custom_views.menu;
import android.app.Activity;
import android.content.Context;
import android.support.v4.content.ContextCompat;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
import android.widget.ImageView;
/**
* Created by Viktor Matskevich on 15.03.17.
* Company: Bytepace
* EMAIL: viktor.matskevich@bytepace.com
*/
public class BadgeDelegate extends UtilityBaseClass {
private static WeakReference<NavigationActivity> activity;
public static synchronized WeakReference<NavigationActivity> getActivity() {
public static void setColorText(final TextView target, int colorFrom, int colorTo, AnimationCallBack callBack) {
ValueAnimator colorAnimation = ValueAnimator.ofObject(new ArgbEvaluator(), colorFrom, colorTo);
colorAnimation.addUpdateListener(new ValueAnimator.AnimatorUpdateListener() {
@Override
public void onAnimationUpdate(ValueAnimator animator) {
target.setTextColor((Integer)animator.getAnimatedValue());
}
});
public class BlockContactFragment extends BaseFragment {
private final static String COLOR_TEXT = "COLOR_TEXT";
private final static String COLOR_BACKGROUND = "COLOR_BACKGROUND";
private final static String TEXT_TITLE = "TEXT_TITLE";
private final static String TEXT_DESCRIPTION = "TEXT_DESCRIPTION";
private View mMainContainer;
private TextView mTitleTextView;
private TextView mDescriptionTextView;
public static void setBackgroundToView(final View target, final int color,
final float x, final float y,
final long duration, final boolean revers, final AnimationCallBack callBack) {
float X = getAccurateValue(x, target.getWidth());
float Y = getAccurateValue(y, target.getHeight());
final float maxSize =
new BigDecimal(Math.sqrt(Math.pow(X, 2) + Math.pow(Y, 2))).floatValue();
mSwitchSync.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
float x = mSwitcherBar.getX() + v.getX() + (mSwitchSync.isChecked() ? 70 : 40);
float y = mSwitcherBar.getY() + v.getY() + v.getHeight() / 2;
AnimationsUtil.setBackgroundToView(mMainContainer,
mFillBackgroundColor,
x, y,
500, !mSwitchSync.isChecked(), null);
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="match_parent">
<LinearLayout android:id="@+id/main_container"
android:orientation="vertical"
android:gravity="center"