File tree Expand file tree Collapse file tree 5 files changed +58
-21
lines changed Expand file tree Collapse file tree 5 files changed +58
-21
lines changed Original file line number Diff line number Diff line change 8080 android : layout_width =" 300dp"
8181 android : layout_height =" 48dp"
8282 app : radiusFactor =" 1"
83+ android : clickable =" true"
8384 android : layout_gravity =" center_horizontal"
85+ android : stateListAnimator =" @animator/sl_state_animator"
8486 app : layout_behavior =" iammert.com.view.scalinglib.ScalingLayoutBehavior" >
8587
8688 <LinearLayout
Original file line number Diff line number Diff line change 11<?xml version =" 1.0" encoding =" utf-8" ?>
22<RelativeLayout xmlns : android =" http://schemas.android.com/apk/res/android"
33 xmlns : app =" http://schemas.android.com/apk/res-auto"
4+ android : id =" @+id/rootLayout"
45 android : layout_width =" match_parent"
56 android : layout_height =" match_parent"
67 android : background =" #ffffff"
7- android : orientation =" vertical"
8- android : id =" @+id/rootLayout" >
8+ android : orientation =" vertical" >
99
1010 <iammert .com.view.scalinglib.ScalingLayout
1111 android : id =" @+id/scalingLayout"
1212 android : layout_width =" 56dp"
1313 android : layout_height =" 56dp"
14- android : layout_margin =" 16dp"
1514 android : layout_centerInParent =" true"
16- android : elevation =" 4dp"
17- android : foreground =" @drawable/sl_state_drawable"
15+ android : layout_margin =" 16dp"
16+ android : elevation =" 6dp"
17+ android : stateListAnimator =" @animator/sl_state_animator"
1818 app : radiusFactor =" 1" >
1919
2020 <RelativeLayout
Original file line number Diff line number Diff line change 1515 android : layout_marginLeft =" 16dp"
1616 android : layout_marginRight =" 16dp"
1717 android : layout_marginTop =" 8dp"
18+ android : clickable =" true"
19+ android : stateListAnimator =" @animator/sl_state_animator"
1820 app : radiusFactor =" 0.2" >
1921
2022 <RelativeLayout
Original file line number Diff line number Diff line change 1+ <?xml version =" 1.0" encoding =" utf-8" ?>
2+ <selector xmlns : android =" http://schemas.android.com/apk/res/android" >
3+
4+ <item android : state_pressed =" true" >
5+ <set >
6+ <objectAnimator
7+ android : duration =" 200"
8+ android : propertyName =" translationZ"
9+ android : valueTo =" 6dp"
10+ android : valueType =" floatType" />
11+
12+ <objectAnimator
13+ android : duration =" 200"
14+ android : propertyName =" scaleX"
15+ android : valueTo =" 1.1"
16+ android : valueType =" floatType" />
17+
18+ <objectAnimator
19+ android : duration =" 200"
20+ android : propertyName =" scaleY"
21+ android : valueTo =" 1.1"
22+ android : valueType =" floatType" />
23+
24+ </set >
25+ </item >
26+
27+ <item >
28+ <set >
29+ <objectAnimator
30+ android : duration =" 200"
31+ android : propertyName =" translationZ"
32+ android : valueTo =" 0dp"
33+ android : valueType =" floatType" />
34+
35+ <objectAnimator
36+ android : duration =" 200"
37+ android : propertyName =" scaleX"
38+ android : valueTo =" 1"
39+ android : valueType =" floatType" />
40+
41+ <objectAnimator
42+ android : duration =" 200"
43+ android : propertyName =" scaleY"
44+ android : valueTo =" 1"
45+ android : valueType =" floatType" />
46+ </set >
47+ </item >
48+
49+ </selector >
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments