Created
August 3, 2019 07:44
-
-
Save elktros/5d64207421ceec69470099621280479d to your computer and use it in GitHub Desktop.
Quadruped_Robot_Chat_Layout
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8"?> | |
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" | |
xmlns:tools="http://schemas.android.com/tools" | |
android:layout_width="match_parent" | |
android:layout_height="match_parent" | |
android:orientation="vertical" | |
android:clipToPadding="false" | |
android:focusableInTouchMode="true" | |
tools:context="com.example.scaledrone.chat.MainActivity"> | |
<ListView | |
android:layout_width="match_parent" | |
android:id="@+id/messages_view" | |
android:layout_weight="2" | |
android:divider="#fff" | |
android:layout_height="wrap_content" | |
/> | |
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" | |
android:layout_width="match_parent" | |
android:layout_height="wrap_content" | |
android:background="#fff" | |
android:orientation="horizontal"> | |
<EditText | |
android:id="@+id/editText" | |
android:layout_width="match_parent" | |
android:layout_height="wrap_content" | |
android:layout_weight="2" | |
android:ems="10" | |
android:hint="Write a message" | |
android:inputType="text" | |
android:paddingHorizontal="10dp" | |
android:text="" /> | |
<ImageButton | |
android:layout_width="wrap_content" | |
android:layout_height="wrap_content" | |
android:layout_gravity="center" | |
android:scaleType="fitCenter" | |
android:padding="20dp" | |
android:layout_marginHorizontal="10dp" | |
android:background="@drawable/ic_send_black_24dp" | |
android:onClick="sendMessage"/> | |
</LinearLayout> | |
</LinearLayout> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment