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

質問編集履歴

1

現状のコード

2019/12/09 16:41

投稿

m_s
m_s

スコア51

title CHANGED
File without changes
body CHANGED
@@ -85,4 +85,81 @@
85
85
  </android.support.constraint.ConstraintLayout>
86
86
 
87
87
  </android.support.constraint.ConstraintLayout>
88
+ ```
89
+
90
+ 12/10 1:40 最新↓
91
+ ![イメージ説明](1a5aa620bfbf91e6003ceed4b668bfe2.png)
92
+ ```XML
93
+ <?xml version="1.0" encoding="utf-8"?>
94
+
95
+ <android.support.constraint.ConstraintLayout
96
+ xmlns:android="http://schemas.android.com/apk/res/android"
97
+ xmlns:app="http://schemas.android.com/apk/res-auto"
98
+ xmlns:tools="http://schemas.android.com/tools"
99
+ android:id="@+id/layout_main"
100
+ android:layout_width="match_parent"
101
+ android:layout_height="match_parent"
102
+ tools:context=".TalkFragment">
103
+
104
+ <android.support.v7.widget.RecyclerView
105
+ android:id="@+id/my_recycler_view"
106
+ android:layout_width="wrap_content"
107
+ android:layout_height="wrap_content"
108
+ android:scrollbars="vertical"
109
+ app:layout_constraintTop_toTopOf="parent"
110
+ app:layout_constraintLeft_toLeftOf="parent"/>
111
+
112
+ <android.support.constraint.ConstraintLayout
113
+ xmlns:android="http://schemas.android.com/apk/res/android"
114
+ xmlns:app="http://schemas.android.com/apk/res-auto"
115
+ xmlns:tools="http://schemas.android.com/tools"
116
+ android:id="@+id/layout_sub"
117
+ android:layout_width="wrap_content"
118
+ android:layout_height="wrap_content"
119
+ app:layout_constraintTop_toBottomOf="@+id/my_recycler_view"
120
+ app:layout_constraintLeft_toLeftOf="parent"
121
+ app:layout_constraintBottom_toTopOf="parent"
122
+ app:layout_constraintVertical_chainStyle="packed" >
123
+
124
+ <Button
125
+ android:id="@+id/button1"
126
+ android:layout_width="55dp"
127
+ android:layout_height="54dp"
128
+ android:text="カメラ"
129
+ app:layout_constraintBottom_toBottomOf="parent"
130
+ app:layout_constraintLeft_toLeftOf="parent"
131
+ app:layout_constraintTop_toTopOf="parent"
132
+ app:layout_constraintVertical_bias="1.0" />
133
+
134
+ <Button
135
+ android:id="@+id/button2"
136
+ android:layout_width="55dp"
137
+ android:layout_height="54dp"
138
+ android:text="画像"
139
+ app:layout_constraintBottom_toBottomOf="parent"
140
+ app:layout_constraintLeft_toRightOf="@+id/button1"
141
+ app:layout_constraintTop_toTopOf="parent"
142
+ app:layout_constraintVertical_bias="1.0" />
143
+
144
+ <Button
145
+ android:id="@+id/button3"
146
+ android:layout_width="wrap_content"
147
+ android:layout_height="wrap_content"
148
+ android:text="送信"
149
+ app:layout_constraintBottom_toBottomOf="parent"
150
+ app:layout_constraintVertical_bias="0.994"
151
+ app:layout_constraintLeft_toRightOf="@+id/edittext" />
152
+
153
+ <EditText
154
+ android:id="@+id/edittext"
155
+ android:layout_width="180dp"
156
+ android:layout_height="54dp"
157
+ android:background="@drawable/edittext_background"
158
+ app:layout_constraintBottom_toBottomOf="parent"
159
+ app:layout_constraintLeft_toRightOf="@+id/button2"
160
+ app:layout_constraintTop_toTopOf="parent"
161
+ app:layout_constraintVertical_bias="1.0" />
162
+ </android.support.constraint.ConstraintLayout>
163
+
164
+ </android.support.constraint.ConstraintLayout>
88
165
  ```