Update UI for compose bar

This commit is contained in:
Moez Bhatti
2017-12-16 22:19:20 -05:00
parent ddf1cc169f
commit 8adfce2ab7
5 changed files with 96 additions and 59 deletions
+74 -50
View File
@@ -4,7 +4,8 @@
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
android:orientation="vertical"
tools:background="@color/backgroundLight">
<include
layout="@layout/toolbar_chips"
@@ -13,7 +14,9 @@
<FrameLayout
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="1">
android:layout_weight="1"
android:clipChildren="false"
android:clipToPadding="false">
<android.support.v7.widget.RecyclerView
android:id="@+id/messageList"
@@ -21,9 +24,9 @@
android:layout_height="match_parent"
android:clipChildren="false"
android:clipToPadding="false"
android:paddingBottom="8dp"
android:paddingBottom="60dp"
android:paddingTop="8dp"
tools:listitem="@layout/message_list_item_out" />
tools:listitem="@layout/message_list_item_in" />
<android.support.v7.widget.RecyclerView
android:id="@+id/contacts"
@@ -41,52 +44,73 @@
android:layout_height="8dp"
android:background="@drawable/ab_shadow" />
<LinearLayout
android:id="@+id/composeBar"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="bottom"
android:gravity="center_vertical">
<LinearLayout
android:id="@+id/messageBackground"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginEnd="4dp"
android:layout_weight="1"
android:background="@drawable/rounded_rectangle_shadow"
android:gravity="center_vertical"
android:orientation="horizontal">
<ImageView
android:id="@+id/attach"
android:layout_width="44dp"
android:layout_height="44dp"
android:padding="10dp"
android:src="@drawable/ic_insert_photo_black_24dp"
tools:tint="@color/textSecondary" />
<com.moez.QKSMS.presentation.common.widget.Separator
android:layout_width="1dp"
android:layout_height="match_parent"
android:layout_marginBottom="8dp"
android:layout_marginTop="8dp" />
<com.moez.QKSMS.presentation.common.widget.QkEditText
android:id="@+id/message"
style="@style/TextPrimary"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:background="@null"
android:gravity="center_vertical"
android:hint="@string/compose_hint"
android:minHeight="44dp"
android:padding="12dp"
app:textColorHint="tertiary" />
</LinearLayout>
<FrameLayout
android:id="@+id/send"
android:layout_width="44dp"
android:layout_height="44dp"
android:layout_marginEnd="8dp"
android:background="@drawable/circle"
android:elevation="4dp"
tools:backgroundTint="@color/tools_theme">
<ImageView
android:id="@+id/sendIcon"
android:layout_width="24dp"
android:layout_height="24dp"
android:layout_gravity="center"
android:src="@drawable/ic_send_black_24dp"
tools:tint="@color/textPrimaryDark" />
</FrameLayout>
</LinearLayout>
</FrameLayout>
<com.moez.QKSMS.presentation.common.widget.Separator
android:layout_width="match_parent"
android:layout_height="1dp" />
<LinearLayout
android:id="@+id/composeBar"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="center_vertical">
<ImageView
android:id="@+id/attach"
android:layout_width="56dp"
android:layout_height="56dp"
android:background="@drawable/ripple"
android:padding="16dp"
android:src="@drawable/ic_add_circle_black_24dp" />
<com.moez.QKSMS.presentation.common.widget.QkEditText
android:id="@+id/message"
style="@style/TextPrimary"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginBottom="8dp"
android:layout_marginTop="8dp"
android:layout_weight="1"
android:background="@drawable/field_background"
android:gravity="center_vertical"
android:hint="@string/compose_hint"
android:minHeight="36dp"
android:paddingBottom="8dp"
android:paddingLeft="12dp"
android:paddingRight="12dp"
android:paddingTop="8dp"
app:textColorHint="tertiary" />
<ImageView
android:id="@+id/send"
android:layout_width="56dp"
android:layout_height="56dp"
android:background="@drawable/ripple"
android:padding="16dp"
android:src="@drawable/ic_send_black_24dp" />
</LinearLayout>
</LinearLayout>