V
Size: a a a
V
АЕ
A
AA
ГЗ
try {
startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse("market://details?id=" + appPackageName)));
} catch (android.content.ActivityNotFoundException anfe) {
startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse("https://play.google.com/store/apps/details?id=" + appPackageName)));
}
А
A
ГЗ
view.setOnTouchListener(new View.OnTouchListener() {
@Override
public boolean onTouch(View v, MotionEvent event) {
if(event.getAction() == MotionEvent.ACTION_UP)
// your action
}
});
N
v
N
v
F
RS
A
А
like_image.animate().apply {
interpolator = LinearInterpolator()
duration = 300
scaleXBy(0.1f)
scaleYBy(0.1f)
alpha(1f)
withEndAction{
translationY(-story_like_image.height.toFloat())
scaleXBy(-0.1f)
scaleYBy(-0.1f)
alpha(0f)
}
start()
}
КЧ
like_image.animate().apply {
interpolator = LinearInterpolator()
duration = 300
scaleXBy(0.1f)
scaleYBy(0.1f)
alpha(1f)
withEndAction{
translationY(-story_like_image.height.toFloat())
scaleXBy(-0.1f)
scaleYBy(-0.1f)
alpha(0f)
}
start()
}
ВК
t
clearAnimation()
не помогает?AG