質問編集履歴

2

文書編集

2019/05/02 09:41

投稿

kaokaokaoka
kaokaokaoka

スコア11

test CHANGED
File without changes
test CHANGED
@@ -11,6 +11,10 @@
11
11
 
12
12
 
13
13
  よろしくお願いします。
14
+
15
+
16
+
17
+ 現XML
14
18
 
15
19
  <?xml version="1.0" encoding="utf-8"?>
16
20
 

1

現状のレイアウトです。ただimagebuttonを一つ中心に配置したのみです。

2019/05/02 09:41

投稿

kaokaokaoka
kaokaokaoka

スコア11

test CHANGED
File without changes
test CHANGED
@@ -11,3 +11,51 @@
11
11
 
12
12
 
13
13
  よろしくお願いします。
14
+
15
+ <?xml version="1.0" encoding="utf-8"?>
16
+
17
+ <android.support.constraint.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
18
+
19
+ xmlns:app="http://schemas.android.com/apk/res-auto"
20
+
21
+ xmlns:tools="http://schemas.android.com/tools"
22
+
23
+ android:layout_width="match_parent"
24
+
25
+ android:layout_height="match_parent"
26
+
27
+ tools:context=".Machiuke">
28
+
29
+
30
+
31
+ <ImageButton
32
+
33
+ android:id="@+id/buttonA"
34
+
35
+ android:layout_width="wrap_content"
36
+
37
+ android:layout_height="wrap_content"
38
+
39
+ android:layout_marginTop="8dp"
40
+
41
+ android:layout_marginBottom="8dp"
42
+
43
+ android:adjustViewBounds="true"
44
+
45
+ android:background="@null"
46
+
47
+ android:scaleType="fitXY"
48
+
49
+ app:layout_constraintBottom_toBottomOf="parent"
50
+
51
+ app:layout_constraintTop_toTopOf="parent"
52
+
53
+ app:srcCompat="@drawable/buttonA"
54
+
55
+ tools:ignore="MissingConstraints"
56
+
57
+ tools:layout_editor_absoluteX="0dp" />
58
+
59
+
60
+
61
+ </android.support.constraint.ConstraintLayout>