diff --git a/android/app/src/main/res/layout/fragment_bot.xml b/android/app/src/main/res/layout/fragment_bot.xml index a9d3cdbbde765239a4d43710c87b45445b8c200f..5fbb2b7107b1962a2e9b029f68ef6a58bec0603f 100644 --- a/android/app/src/main/res/layout/fragment_bot.xml +++ b/android/app/src/main/res/layout/fragment_bot.xml @@ -9,7 +9,7 @@ <android.support.v7.widget.RecyclerView android:id="@+id/chat_bot_room_rv" android:layout_width="match_parent" - android:layout_height="match_parent" + android:layout_height="wrap_content" android:layout_marginBottom="56dp" app:layout_constraintTop_toTopOf="parent" app:layout_constraintLeft_toLeftOf="parent" @@ -17,13 +17,18 @@ </android.support.v7.widget.RecyclerView> - <LinearLayout + <android.support.constraint.ConstraintLayout android:layout_width="match_parent" - android:layout_height="56dp" - app:layout_constraintTop_toBottomOf="@id/chat_bot_room_rv" + android:layout_height="wrap_content" + android:minHeight="56dp" + app:layout_constraintBottom_toBottomOf="parent" android:orientation="horizontal"> <EditText + app:layout_constraintLeft_toLeftOf="parent" + app:layout_constraintTop_toTopOf="parent" + app:layout_constraintBottom_toBottomOf="parent" + app:layout_constraintRight_toLeftOf="@id/chat_bot_room_send" android:id="@+id/chat_bot_room_et" android:layout_width="0dip" android:layout_height="wrap_content" @@ -36,28 +41,25 @@ android:maxLength ="2000" android:scrollHorizontally="false"/> - <LinearLayout - android:layout_width="0dp" - android:layout_height="match_parent" - android:layout_weight="2"> - - <ImageButton - android:id="@+id/chat_bot_room_send" - android:layout_width="match_parent" - android:layout_height="match_parent" - android:scaleType="fitCenter" - android:clickable="true" - android:focusable="true" - android:background="@drawable/my_custom_selector" - android:contentDescription="@string/send_message_button" - android:layout_marginStart="15dp" - android:layout_marginEnd="15dp" - android:layout_marginTop="10dp" - android:layout_marginBottom="10dp"/> - - </LinearLayout> - - - </LinearLayout> + + <ImageButton + app:layout_constraintBottom_toBottomOf="parent" + app:layout_constraintRight_toRightOf="parent" + android:id="@+id/chat_bot_room_send" + android:layout_width="36dp" + android:layout_height="36dp" + android:scaleType="fitCenter" + android:clickable="true" + android:focusable="true" + android:background="@drawable/my_custom_selector" + android:contentDescription="@string/send_message_button" + android:layout_marginBottom="10dp" + android:layout_marginRight="10dp" + /> + + + + + </android.support.constraint.ConstraintLayout> </android.support.constraint.ConstraintLayout> \ No newline at end of file