質問編集履歴

1

コメントありがとうございます。現在の編集画面のコードを記載しました。

2017/08/03 04:54

投稿

jonny441d3
jonny441d3

スコア9

test CHANGED
File without changes
test CHANGED
@@ -43,3 +43,73 @@
43
43
  AndroidStudio バージョン2.3.2
44
44
 
45
45
  OS Windows 10 pro
46
+
47
+
48
+
49
+ 現在のコードはこんな感じです。
50
+
51
+ Edittextにlayout_to〇〇of= という項目に値を入れたら、
52
+
53
+ 見た目は理想に近づきました。
54
+
55
+ (プログラムとして正しいかは分かりません・・・)
56
+
57
+ ```
58
+
59
+ <RelativeLayout
60
+
61
+ android:layout_width="match_parent"
62
+
63
+ android:layout_height="match_parent">
64
+
65
+
66
+
67
+ <TextView
68
+
69
+ android:id="@+id/textView3"
70
+
71
+ android:layout_width="wrap_content"
72
+
73
+ android:layout_height="50dp"
74
+
75
+ android:gravity="center_vertical"
76
+
77
+ android:text="名前"
78
+
79
+ android:textSize="25sp" />
80
+
81
+
82
+
83
+ <Button
84
+
85
+ android:id="@+id/button5"
86
+
87
+ android:layout_width="wrap_content"
88
+
89
+ android:layout_height="50dp"
90
+
91
+ android:layout_alignParentRight="true"
92
+
93
+ android:text="入力" />
94
+
95
+
96
+
97
+ <EditText
98
+
99
+ android:id="@+id/editText3"
100
+
101
+ android:layout_width="wrap_content"
102
+
103
+ android:layout_height="50dp"
104
+
105
+ android:layout_toLeftOf="@+id/button5"
106
+
107
+ android:layout_toRightOf="@+id/textView3"
108
+
109
+ android:ems="10"
110
+
111
+ android:inputType="textPersonName" />
112
+
113
+ </RelativeLayout>
114
+
115
+ ```