1
+ <?xml version =" 1.0" encoding =" utf-8" ?>
2
+ <androidx .constraintlayout.widget.ConstraintLayout xmlns : android =" http://schemas.android.com/apk/res/android"
3
+ xmlns : app =" http://schemas.android.com/apk/res-auto"
4
+ xmlns : tools =" http://schemas.android.com/tools"
5
+ android : layout_width =" match_parent"
6
+ android : layout_height =" match_parent" >
7
+
8
+
9
+ <TextView
10
+ android : id =" @+id/tvInfo"
11
+ android : layout_width =" match_parent"
12
+ android : layout_height =" wrap_content"
13
+ android : layout_marginStart =" 8dp"
14
+ android : layout_marginTop =" 8dp"
15
+ android : textColor =" #f00"
16
+ app : layout_constraintStart_toStartOf =" parent"
17
+ app : layout_constraintTop_toTopOf =" parent"
18
+ tools : text =" TX:0, TY:0, TZ: 0 Top:0, Left:0, Right:0, Bottom:0, X:0, Y:0, Z:0" />
19
+
20
+ <!-- Rotate -->
21
+
22
+ <ImageView
23
+ android : id =" @+id/imageView"
24
+ android : layout_width =" 75dp"
25
+ android : layout_height =" 75dp"
26
+ app : layout_constraintBottom_toBottomOf =" parent"
27
+ app : layout_constraintEnd_toEndOf =" parent"
28
+ app : layout_constraintStart_toStartOf =" parent"
29
+ app : layout_constraintTop_toTopOf =" parent"
30
+ app : layout_constraintVertical_bias =" 0.443"
31
+ app : srcCompat =" @drawable/ic_baseline_sports_basketball_24"
32
+ app : tint =" #FFA000" />
33
+
34
+ <com .google.android.material.button.MaterialButton
35
+ android : id =" @+id/buttonRotate"
36
+ style =" @style/Widget.MaterialComponents.Button.OutlinedButton"
37
+ android : layout_width =" wrap_content"
38
+ android : layout_height =" wrap_content"
39
+ android : layout_marginBottom =" 16dp"
40
+ android : text =" Rotate"
41
+ app : layout_constraintBottom_toTopOf =" @+id/buttonRotateY"
42
+ app : layout_constraintStart_toStartOf =" @id/buttonRotateX"
43
+ app : layout_goneMarginBottom =" 16dp"
44
+ app : strokeColor =" @color/design_default_color_primary" />
45
+
46
+
47
+ <com .google.android.material.button.MaterialButton
48
+ android : id =" @+id/buttonRotateY"
49
+ style =" @style/Widget.MaterialComponents.Button.OutlinedButton"
50
+ android : layout_width =" wrap_content"
51
+ android : layout_height =" wrap_content"
52
+ android : layout_marginBottom =" 16dp"
53
+ android : text =" RotateY"
54
+ app : layout_constraintBottom_toTopOf =" @+id/buttonRotateX"
55
+ app : layout_constraintStart_toStartOf =" @id/buttonRotateX"
56
+ app : layout_goneMarginBottom =" 16dp"
57
+ app : strokeColor =" @color/design_default_color_primary" />
58
+
59
+
60
+ <com .google.android.material.button.MaterialButton
61
+ android : id =" @+id/buttonRotateX"
62
+ style =" @style/Widget.MaterialComponents.Button.OutlinedButton"
63
+ android : layout_width =" wrap_content"
64
+ android : layout_height =" wrap_content"
65
+ android : layout_marginStart =" 8dp"
66
+ android : layout_marginBottom =" 16dp"
67
+ android : text =" RotateX"
68
+ app : layout_constraintBottom_toBottomOf =" parent"
69
+ app : layout_constraintEnd_toStartOf =" @+id/buttonTranslateX"
70
+ app : layout_constraintHorizontal_bias =" 0.5"
71
+ app : layout_constraintStart_toStartOf =" parent"
72
+ app : layout_goneMarginBottom =" 48dp"
73
+ app : strokeColor =" @color/design_default_color_primary" />
74
+
75
+ <!-- Translate -->
76
+
77
+ <com .google.android.material.button.MaterialButton
78
+ android : id =" @+id/buttonTranslateZ"
79
+ style =" @style/Widget.MaterialComponents.Button.OutlinedButton"
80
+ android : layout_width =" wrap_content"
81
+ android : layout_height =" wrap_content"
82
+ android : layout_marginBottom =" 16dp"
83
+ android : text =" TranslateZ"
84
+ app : layout_constraintBottom_toTopOf =" @+id/buttonTranslateY"
85
+ app : layout_constraintStart_toStartOf =" @id/buttonTranslateX"
86
+ app : layout_goneMarginBottom =" 16dp"
87
+ app : strokeColor =" @color/design_default_color_primary" />
88
+
89
+ <com .google.android.material.button.MaterialButton
90
+ android : id =" @+id/buttonTranslateY"
91
+ style =" @style/Widget.MaterialComponents.Button.OutlinedButton"
92
+ android : layout_width =" wrap_content"
93
+ android : layout_height =" wrap_content"
94
+ android : layout_marginBottom =" 16dp"
95
+ android : text =" TranslateY"
96
+ app : layout_constraintBottom_toTopOf =" @+id/buttonTranslateX"
97
+ app : layout_constraintStart_toStartOf =" @id/buttonTranslateX"
98
+ app : layout_goneMarginBottom =" 16dp"
99
+ app : strokeColor =" @color/design_default_color_primary" />
100
+
101
+ <com .google.android.material.button.MaterialButton
102
+ android : id =" @+id/buttonTranslateX"
103
+ style =" @style/Widget.MaterialComponents.Button.OutlinedButton"
104
+ android : layout_width =" wrap_content"
105
+ android : layout_height =" wrap_content"
106
+ android : text =" TranslateX"
107
+ app : layout_constraintBottom_toBottomOf =" @+id/buttonRotateX"
108
+ app : layout_constraintEnd_toStartOf =" @+id/buttonPositionX"
109
+ app : layout_constraintHorizontal_bias =" 0.5"
110
+ app : layout_constraintStart_toEndOf =" @+id/buttonRotateX"
111
+ app : layout_constraintTop_toTopOf =" @+id/buttonRotateX"
112
+ app : layout_goneMarginBottom =" 48dp"
113
+ app : strokeColor =" @color/design_default_color_primary" />
114
+
115
+ <!-- Position -->
116
+
117
+ <com .google.android.material.button.MaterialButton
118
+ android : id =" @+id/buttonPositionZ"
119
+ style =" @style/Widget.MaterialComponents.Button.OutlinedButton"
120
+ android : layout_width =" wrap_content"
121
+ android : layout_height =" wrap_content"
122
+ android : layout_marginBottom =" 16dp"
123
+ android : text =" PosZ"
124
+ app : layout_constraintBottom_toTopOf =" @+id/buttonPositionY"
125
+ app : layout_constraintStart_toStartOf =" @id/buttonPositionX"
126
+ app : layout_goneMarginBottom =" 16dp"
127
+ app : strokeColor =" @color/design_default_color_primary" />
128
+
129
+ <com .google.android.material.button.MaterialButton
130
+ android : id =" @+id/buttonPositionY"
131
+ style =" @style/Widget.MaterialComponents.Button.OutlinedButton"
132
+ android : layout_width =" wrap_content"
133
+ android : layout_height =" wrap_content"
134
+ android : layout_marginBottom =" 16dp"
135
+ android : text =" PosY"
136
+ app : layout_constraintBottom_toTopOf =" @+id/buttonPositionX"
137
+ app : layout_constraintStart_toStartOf =" @id/buttonPositionX"
138
+ app : layout_goneMarginBottom =" 16dp"
139
+ app : strokeColor =" @color/design_default_color_primary" />
140
+
141
+ <com .google.android.material.button.MaterialButton
142
+ android : id =" @+id/buttonPositionX"
143
+ style =" @style/Widget.MaterialComponents.Button.OutlinedButton"
144
+ android : layout_width =" wrap_content"
145
+ android : layout_height =" wrap_content"
146
+ android : text =" PosX"
147
+ app : layout_constraintBottom_toBottomOf =" @+id/buttonRotateX"
148
+ app : layout_constraintEnd_toEndOf =" parent"
149
+ app : layout_constraintHorizontal_bias =" 0.5"
150
+ app : layout_constraintStart_toEndOf =" @+id/buttonTranslateX"
151
+ app : layout_constraintTop_toTopOf =" @+id/buttonRotateX"
152
+ app : layout_goneMarginBottom =" 48dp"
153
+ app : strokeColor =" @color/design_default_color_primary" />
154
+
155
+ </androidx .constraintlayout.widget.ConstraintLayout>
0 commit comments