teratail header banner
teratail header banner
質問するログイン新規登録

質問編集履歴

1

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

2017/08/03 04:54

投稿

jonny441d3
jonny441d3

スコア9

title CHANGED
File without changes
body CHANGED
@@ -20,4 +20,39 @@
20
20
 
21
21
  ###補足情報(言語/FW/ツール等のバージョンなど)
22
22
  AndroidStudio バージョン2.3.2
23
- OS Windows 10 pro
23
+ OS Windows 10 pro
24
+
25
+ 現在のコードはこんな感じです。
26
+ Edittextにlayout_to〇〇of= という項目に値を入れたら、
27
+ 見た目は理想に近づきました。
28
+ (プログラムとして正しいかは分かりません・・・)
29
+ ```
30
+ <RelativeLayout
31
+ android:layout_width="match_parent"
32
+ android:layout_height="match_parent">
33
+
34
+ <TextView
35
+ android:id="@+id/textView3"
36
+ android:layout_width="wrap_content"
37
+ android:layout_height="50dp"
38
+ android:gravity="center_vertical"
39
+ android:text="名前"
40
+ android:textSize="25sp" />
41
+
42
+ <Button
43
+ android:id="@+id/button5"
44
+ android:layout_width="wrap_content"
45
+ android:layout_height="50dp"
46
+ android:layout_alignParentRight="true"
47
+ android:text="入力" />
48
+
49
+ <EditText
50
+ android:id="@+id/editText3"
51
+ android:layout_width="wrap_content"
52
+ android:layout_height="50dp"
53
+ android:layout_toLeftOf="@+id/button5"
54
+ android:layout_toRightOf="@+id/textView3"
55
+ android:ems="10"
56
+ android:inputType="textPersonName" />
57
+ </RelativeLayout>
58
+ ```