Skip to content

Instantly share code, notes, and snippets.

@beta
beta / design_bottom_sheet_dialog.xml
Last active August 18, 2016 08:02
res/layout/design_bottom_sheet_dialog.xml of Android Support Design Library 23.4.0
<android.support.design.widget.CoordinatorLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="match_parent">
<View
android:id="@+id/touch_outside"
android:layout_width="match_parent"
android:layout_height="match_parent"
<set
xmlns:android="http://schemas.android.com/apk/res/android"
android:interpolator="@android:interpolator/accelerate_decelerate">
<scale
android:duration="100"
android:pivotX="50%"
android:pivotY="50%"
android:fromXScale="1.0"
android:fromYScale="1.0"
<set
xmlns:android="http://schemas.android.com/apk/res/android"
android:interpolator="@android:interpolator/accelerate_decelerate"
android:ordering="sequentially"
android:repeatCount="infinite">
<scale
android:startOffset="1200"
android:duration="100"
android:pivotX="50%"
<set xmlns:android="http://schemas.android.com/apk/res/android"
android:ordering="sequentially"
android:interpolator="@android:interpolator/accelerate_decelerate">
<set>
<objectAnimator
android:propertyName="scaleX"
android:valueFrom="1.0"
android:valueTo="0.8"
android:duration="100" />
PropertyValuesHolder pvhIncreaseScaleX =
PropertyValuesHolder.ofFloat("scaleX", 1.0f, 0.8f);
PropertyValuesHolder pvhIncreaseScaleY =
PropertyValuesHolder.ofFloat("scaleY", 1.0f, 0.8f);
PropertyValuesHolder pvhDecreaseScaleX =
PropertyValuesHolder.ofFloat("scaleX", 0.8f, 1.0f);
PropertyValuesHolder pvhDecreaseScaleY =
PropertyValuesHolder.ofFloat("scaleY", 0.8f, 1.0f);
ObjectAnimator heartBeatIncreaseAnimator = ObjectAnimator.ofPropertyValuesHolder(
import android.animation.Animator;
import android.animation.AnimatorSet;
import android.animation.ObjectAnimator;
import android.animation.PropertyValuesHolder;
import android.view.View;
import android.view.animation.AccelerateDecelerateInterpolator;
/**
* An utility class for playing "heart beat" animation on a certain view object.
*/
HeartBeatAnimationUtil.with(mImageLogo).start();
HeartBeatAnimationUtil.with(mImageLogo)
.scaleFrom(1.0f)
.scaleTo(0.8f)
.in(100)
.after(1200)
.start();
<VirtualHost *:80>
ServerName kyouko.net
Redirect / https://kyouko.net
...
</VirtualHost>
android {
...
sourceSets {
main {
jni.srcDirs = []
}
}
}
JNIEXPORT jobject JNICALL Java_com_example_yourapp_CvUtil_processMat(
JNIEnv * env, jclass cls, jlong mat_addr, jfloat threshold) {