blob: 90ed88f6c03053561a062bd5094fc006eebc3d8d [file] [log] [blame]
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="#ebeff0"
android:orientation="vertical"
tools:context=".client.ConversationActivity">
<android.support.v7.widget.Toolbar
android:id="@+id/main_toolbar"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:layout_alignParentStart="true"
android:layout_alignParentTop="true"
android:background="@color/color_primary_light"
android:elevation="4dp"
android:minHeight="?attr/actionBarSize"
android:popupTheme="@style/Theme.AppCompat.Light.NoActionBar"
android:theme="@style/ThemeOverlay.AppCompat.Dark.ActionBar"
android:titleTextAppearance="@style/ToolbarTitle"
app:contentInsetStart="72dp"
app:elevation="4dp"
app:titleTextAppearance="@style/ToolbarTitle" />
<android.support.v7.widget.RecyclerView
android:id="@+id/hist_list"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:layout_alignParentEnd="true"
android:layout_alignParentLeft="true"
android:layout_alignParentRight="true"
android:layout_alignParentStart="true"
android:layout_below="@id/main_toolbar"
android:clipToPadding="false"
android:divider="@null"
android:listSelector="@android:color/transparent"
android:paddingBottom="60dp"
android:paddingTop="8dp"
tools:listitem="@layout/item_conv_msg_peer" />
<RelativeLayout
android:id="@+id/ongoingcall_pane"
android:layout_width="match_parent"
android:layout_height="48dp"
android:layout_below="@id/main_toolbar"
android:background="#e3c1c1">
<TextView
android:id="@+id/textView2"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerHorizontal="true"
android:layout_centerVertical="true"
android:layout_margin="10dp"
android:text="@string/ongoing_call"
android:textAppearance="?android:attr/textAppearanceMedium"
android:textColor="@color/text_color_primary" />
</RelativeLayout>
<android.support.v7.widget.CardView xmlns:card_view="http://schemas.android.com/apk/res-auto"
android:id="@+id/userInputMessageCardView"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:layout_alignParentEnd="true"
android:layout_alignParentLeft="true"
android:layout_alignParentRight="true"
android:layout_alignParentStart="true"
android:layout_marginBottom="16dp"
android:layout_marginLeft="8dp"
android:layout_marginRight="8dp"
card_view:cardCornerRadius="2dp">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="horizontal">
<Spinner
android:id="@+id/number_selector"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:visibility="visible"
tools:listitem="@layout/item_number_selected" />
<EditText
android:id="@+id/msg_input_txt"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:background="@null"
android:hint="@string/write_a_message"
android:imeOptions="actionSend|flagNoExtractUi"
android:inputType="textShortMessage|textImeMultiLine|text|textMultiLine|textCapSentences"
android:maxLines="5"
android:padding="8dp" />
<ImageButton
android:id="@+id/msg_send"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:background="?selectableItemBackgroundBorderless"
android:contentDescription="@string/send_message"
android:padding="8dp"
android:src="@drawable/ic_send_black"
android:tint="@android:color/darker_gray" />
</LinearLayout>
</android.support.v7.widget.CardView>
</RelativeLayout>