AnimatorSet animatorSet = new AnimatorSet();
ObjectAnimator elevationDownAnimator = ObjectAnimator
.ofFloat(mRadioView1, "elevation", 5, 0)
.setDuration(3000);
ObjectAnimator elevationUpAnimator = ObjectAnimator
.ofFloat(mRadioView2, "elevation", 0, 5)
.setDuration(3000);
animatorSet
.play(elevationDownAnimator)
.with(elevationUpAnimator)
animatorSet.start();
from copy import deepcopy
def copy_instance_state(src_obj, dst_obj, field_map={}):
for src_field_name in dir(src_obj):
if src_field_name.startswith('__'):
continue
dst_field_name = src_field_name if src_field_name not in field_map else field_map[src_field_name]
setattr(dst_obj, dst_field_name, deepcopy(getattr(src_obj, src_field_name)))
class A:
a = 1
b = 2
c = 3
class B:
a = 0
b = 0
z = 0
a = A()
b = B()
copy_instance_state(a, b, {'c': 'z'})
with recursive r as (
select
id, parent_id, name
from catalog_category
where id = 8
union
select
cc.id, cc.parent_id, cc.name
from catalog_category as cc
join r
on cc.parent_id = r.id
)
select id, name from r where id <> 8;
<!-- Статический импорт с помощью директивы -->
<%@ include file="filename" %>
<!-- Динамический импорт с помощью тега -->
<jsp:include page="filename"/>
<!-- Импорт с помощью JSTL -->
<c:import url="filename" />
{{ post1.body|safe }}