質問編集履歴

1

コードの追加

2019/02/13 11:20

投稿

harumi
harumi

スコア407

test CHANGED
File without changes
test CHANGED
@@ -15,3 +15,47 @@
15
15
  参考になるサイトなどご存知でしたら教えていただきたいです。
16
16
 
17
17
  よろしくお願いします。
18
+
19
+
20
+
21
+ 重ねたいviewの現状の制約は下記のように設定しています。2つ目のものを重ねて設定したいと考えています。
22
+
23
+ ```
24
+
25
+ <ImageView
26
+
27
+ android:layout_width="@dimen/update_battery_icon_width"
28
+
29
+ android:layout_height="@dimen/update_battery_icon_height"
30
+
31
+ app:srcCompat="@drawable/ic_battery_3"
32
+
33
+ android:visibility="visible"
34
+
35
+ android:id="@+id/update_battery"
36
+
37
+ app:layout_constraintTop_toBottomOf="@+id/firmware_name"
38
+
39
+ app:layout_constraintStart_toEndOf="@+id/firmware_version"
40
+
41
+ app:layout_constraintEnd_toStartOf="@+id/firmware_battery_value" android:layout_marginTop="11dp"
42
+
43
+ android:layout_marginEnd="4dp"/>
44
+
45
+ <ImageView
46
+
47
+ android:layout_width="wrap_content"
48
+
49
+ android:layout_height="wrap_content" app:srcCompat="@drawable/ic_alert_small"
50
+
51
+ android:id="@+id/general_error"
52
+
53
+ app:layout_constraintStart_toEndOf="@+id/imageView" android:layout_marginStart="8dp"
54
+
55
+ app:layout_constraintEnd_toEndOf="@+id/imageView"
56
+
57
+ app:layout_constraintTop_toBottomOf="@+id/firmware_version"
58
+
59
+ app:layout_constraintBottom_toBottomOf="@+id/imageView"/>
60
+
61
+ ```