質問編集履歴

1

レイアウトファイルの内容を追加。

2017/06/30 12:31

投稿

退会済みユーザー
test CHANGED
File without changes
test CHANGED
@@ -5,3 +5,103 @@
5
5
  何かしら設定があるのでしょうか。
6
6
 
7
7
  詳しい方がおられましたらご教授願えればと思います。
8
+
9
+
10
+
11
+ 以下追記になります。
12
+
13
+ ご指摘のあった通りレイアウトファイルを載せます。
14
+
15
+ 載せ忘れていて申し訳ありませんでした。
16
+
17
+
18
+
19
+ ```XML
20
+
21
+ <?xml version="1.0" encoding="utf-8"?>
22
+
23
+ <android.support.constraint.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
24
+
25
+ xmlns:app="http://schemas.android.com/apk/res-auto"
26
+
27
+ xmlns:tools="http://schemas.android.com/tools"
28
+
29
+ android:layout_width="match_parent"
30
+
31
+ android:layout_height="match_parent"
32
+
33
+ tools:context="com.alpcsr.voicenotepad.MainActivity">
34
+
35
+
36
+
37
+ <LinearLayout
38
+
39
+ android:layout_width="344dp"
40
+
41
+ android:layout_height="495dp"
42
+
43
+ app:layout_constraintLeft_toLeftOf="parent"
44
+
45
+ app:layout_constraintRight_toRightOf="parent"
46
+
47
+ app:layout_constraintTop_toTopOf="parent"
48
+
49
+ app:layout_constraintBottom_toBottomOf="parent">
50
+
51
+
52
+
53
+
54
+
55
+ <EditText
56
+
57
+ android:id="@+id/editText"
58
+
59
+ android:layout_width="match_parent"
60
+
61
+ android:layout_height="405dp"
62
+
63
+ android:inputType="textMultiLine"
64
+
65
+ tools:layout_editor_absoluteX="16dp"
66
+
67
+ tools:layout_editor_absoluteY="16dp"
68
+
69
+ android:gravity="top"/>
70
+
71
+
72
+
73
+ </LinearLayout>
74
+
75
+
76
+
77
+ <Button
78
+
79
+ android:id="@+id/buttonRecord"
80
+
81
+ android:layout_width="350dp"
82
+
83
+ android:layout_height="62dp"
84
+
85
+ android:text="@string/RecordButtonTextStart"
86
+
87
+ android:layout_marginBottom="26dp"
88
+
89
+ app:layout_constraintLeft_toLeftOf="parent"
90
+
91
+ app:layout_constraintBottom_toBottomOf="parent"
92
+
93
+ app:layout_constraintRight_toRightOf="parent"
94
+
95
+ android:onClick="OnBnRecord"/>
96
+
97
+
98
+
99
+
100
+
101
+ </android.support.constraint.ConstraintLayout>
102
+
103
+ ```
104
+
105
+ 「LinearLayout」や「EditText」の「android:layout_width」を「match_parent」にしたいのですが、もしかすると出来ないのでしょうか。
106
+
107
+ その場合横幅いっぱいに表示するにはどのようにすればよいかなど教えて頂きたく思います。