質問編集履歴

1

修正依頼に対応

2022/09/29 09:53

投稿

m-mega
m-mega

スコア56

test CHANGED
File without changes
test CHANGED
@@ -11,7 +11,7 @@
11
11
  - LinearLayoutの中に入れ子になったViewのIDを指定する方法がわかりません。
12
12
 
13
13
  下記のように、squareView(入れ子になったView)をLinearLayoutの外から指定しようとするとエラーが発生してしまいます。
14
- ```kotlin
14
+ ```xml
15
15
  app:layout_constraintEnd_toEndOf="@+id/squareView"
16
16
  app:layout_constraintStart_toStartOf="@+id/squareView"
17
17
  ```
@@ -21,7 +21,7 @@
21
21
  ```
22
22
  ### 該当のソースコード
23
23
 
24
- ```kotlin
24
+ ```xml
25
25
  <?xml version="1.0" encoding="utf-8"?>
26
26
  <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
27
27
  xmlns:app="http://schemas.android.com/apk/res-auto"