|
@@ -1,202 +1,259 @@
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
<layout>
|
|
|
-<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
|
- android:layout_width="match_parent"
|
|
|
- android:layout_height="match_parent"
|
|
|
- >
|
|
|
-
|
|
|
-
|
|
|
- <LinearLayout
|
|
|
+ <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
|
android:id="@+id/ll_message_view"
|
|
|
android:layout_width="match_parent"
|
|
|
- android:layout_height="wrap_content"
|
|
|
- android:background="@color/white"
|
|
|
+ android:layout_height="match_parent"
|
|
|
+ android:background="@drawable/shape_other_item_bg"
|
|
|
android:gravity="center_horizontal"
|
|
|
- android:padding="10dp"
|
|
|
android:orientation="vertical"
|
|
|
- >
|
|
|
-
|
|
|
+ android:padding="10dp">
|
|
|
|
|
|
- <LinearLayout
|
|
|
- android:layout_width="wrap_content"
|
|
|
- android:layout_height="wrap_content"
|
|
|
- android:layout_marginTop="10dp"
|
|
|
- android:paddingLeft="20dp"
|
|
|
- android:paddingRight="20dp"
|
|
|
- android:orientation="horizontal">
|
|
|
-
|
|
|
- <TextView
|
|
|
- android:layout_width="wrap_content"
|
|
|
- android:layout_height="wrap_content"
|
|
|
- android:layout_gravity="center_vertical"
|
|
|
- android:text="@string/str_message_type"
|
|
|
- android:textColor="#000000"
|
|
|
- android:textSize="24sp" />
|
|
|
-
|
|
|
- <RadioGroup
|
|
|
- android:id="@+id/group_message_type"
|
|
|
+ <LinearLayout
|
|
|
android:layout_width="wrap_content"
|
|
|
android:layout_height="wrap_content"
|
|
|
- android:layout_marginStart="20dp"
|
|
|
- android:orientation="horizontal">
|
|
|
+ android:orientation="horizontal"
|
|
|
+ android:layout_marginTop="6dp"
|
|
|
+ android:paddingLeft="20dp"
|
|
|
+ android:paddingRight="20dp">
|
|
|
|
|
|
- <RadioButton
|
|
|
- android:id="@+id/radio_text_msg"
|
|
|
+ <TextView
|
|
|
android:layout_width="wrap_content"
|
|
|
android:layout_height="wrap_content"
|
|
|
- android:text="@string/str_text_message"
|
|
|
+ android:layout_gravity="center_vertical"
|
|
|
+ android:text="@string/str_message_type"
|
|
|
android:textColor="#000000"
|
|
|
- android:textSize="24sp"
|
|
|
- android:button="@null"
|
|
|
- android:drawableLeft="@drawable/radio_button_selector_bg2"
|
|
|
- android:drawablePadding="@dimen/d5"
|
|
|
- android:checked="true"/>
|
|
|
-
|
|
|
- <RadioButton
|
|
|
- android:id="@+id/radio_voice_msg"
|
|
|
+ android:textSize="24sp" />
|
|
|
+
|
|
|
+ <RadioGroup
|
|
|
+ android:id="@+id/group_message_type"
|
|
|
android:layout_width="wrap_content"
|
|
|
android:layout_height="wrap_content"
|
|
|
android:layout_marginStart="20dp"
|
|
|
- android:text="@string/str_voice_message"
|
|
|
- android:textColor="#000000"
|
|
|
- android:button="@null"
|
|
|
- android:drawableLeft="@drawable/radio_button_selector_bg2"
|
|
|
- android:drawablePadding="@dimen/d5"
|
|
|
- android:textSize="24sp" />
|
|
|
- </RadioGroup>
|
|
|
+ android:orientation="horizontal">
|
|
|
|
|
|
- </LinearLayout>
|
|
|
+ <RadioButton
|
|
|
+ android:id="@+id/radio_text_msg"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:button="@null"
|
|
|
+ android:checked="true"
|
|
|
+ android:drawableLeft="@drawable/radio_button_selector_bg2"
|
|
|
+ android:drawablePadding="@dimen/d5"
|
|
|
+ android:text="@string/str_text_message"
|
|
|
+ android:textColor="#000000"
|
|
|
+ android:textSize="24sp" />
|
|
|
|
|
|
- <LinearLayout
|
|
|
- android:layout_width="wrap_content"
|
|
|
- android:layout_height="60dp"
|
|
|
- android:layout_marginTop="5dp"
|
|
|
- android:paddingLeft="20dp"
|
|
|
- android:paddingRight="20dp">
|
|
|
- <TextView
|
|
|
- android:layout_width="wrap_content"
|
|
|
- android:layout_height="match_parent"
|
|
|
- android:gravity="center_vertical"
|
|
|
- android:text="@string/str_message_creator"
|
|
|
- android:textColor="#000000"
|
|
|
- android:textSize="24sp"/>
|
|
|
- <Spinner
|
|
|
- android:id="@+id/spinner_creator"
|
|
|
- android:layout_width="wrap_content"
|
|
|
- android:layout_height="match_parent"
|
|
|
- android:layout_marginStart="10dp"
|
|
|
- android:gravity="center_vertical"
|
|
|
- android:spinnerMode="dropdown"/>
|
|
|
+ <RadioButton
|
|
|
+ android:id="@+id/radio_voice_msg"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_marginStart="20dp"
|
|
|
+ android:button="@null"
|
|
|
+ android:drawableLeft="@drawable/radio_button_selector_bg2"
|
|
|
+ android:drawablePadding="@dimen/d5"
|
|
|
+ android:text="@string/str_voice_message"
|
|
|
+ android:textColor="#000000"
|
|
|
+ android:textSize="24sp" />
|
|
|
|
|
|
- </LinearLayout>
|
|
|
+ <RadioButton
|
|
|
+ android:id="@+id/radio_video_msg"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_marginStart="20dp"
|
|
|
+ android:button="@null"
|
|
|
+ android:drawableLeft="@drawable/radio_button_selector_bg2"
|
|
|
+ android:drawablePadding="@dimen/d5"
|
|
|
+ android:text="@string/str_video_message"
|
|
|
+ android:textColor="#000000"
|
|
|
+ android:textSize="24sp" />
|
|
|
+ </RadioGroup>
|
|
|
|
|
|
- <FrameLayout
|
|
|
- android:layout_width="match_parent"
|
|
|
- android:layout_height="210dp"
|
|
|
- android:paddingTop="10dp"
|
|
|
- >
|
|
|
-
|
|
|
- <EditText
|
|
|
- android:id="@+id/edit_text_message"
|
|
|
- android:layout_width="match_parent"
|
|
|
- android:layout_height="match_parent"
|
|
|
- android:textColor="#000000"
|
|
|
- android:textSize="28sp"
|
|
|
- android:gravity="left|top"
|
|
|
- android:padding="@dimen/d10"
|
|
|
- android:hint="@string/str_message_hint"
|
|
|
- android:background="@drawable/shape_n_login_ed_bg2"
|
|
|
- android:visibility="visible"/>
|
|
|
+ </LinearLayout>
|
|
|
|
|
|
<LinearLayout
|
|
|
- android:id="@+id/ll_voice_message"
|
|
|
- android:layout_width="match_parent"
|
|
|
- android:layout_height="wrap_content"
|
|
|
- android:gravity="center"
|
|
|
- android:orientation="vertical"
|
|
|
- android:visibility="gone"
|
|
|
- >
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="60dp"
|
|
|
+ android:layout_marginTop="5dp"
|
|
|
+ android:paddingLeft="20dp"
|
|
|
+ android:paddingRight="20dp">
|
|
|
|
|
|
- <Chronometer
|
|
|
- android:id="@+id/voice_record_timer"
|
|
|
+ <TextView
|
|
|
android:layout_width="wrap_content"
|
|
|
- android:layout_height="wrap_content"
|
|
|
- android:layout_marginTop="10dp"
|
|
|
+ android:layout_height="match_parent"
|
|
|
+ android:gravity="center_vertical"
|
|
|
+ android:text="@string/str_message_creator"
|
|
|
android:textColor="#000000"
|
|
|
- android:textSize="18sp"
|
|
|
- android:text="00:00" />
|
|
|
-
|
|
|
- <Button
|
|
|
- android:id="@+id/btn_voice_record"
|
|
|
- android:layout_width="80dp"
|
|
|
- android:layout_height="80dp"
|
|
|
- android:layout_marginTop="10dp"
|
|
|
- android:layout_gravity="center"
|
|
|
- android:background="@drawable/selector_record_btn" />
|
|
|
+ android:textSize="24sp" />
|
|
|
|
|
|
- <TextView
|
|
|
- android:id="@+id/tv_voice_record"
|
|
|
+ <Spinner
|
|
|
+ android:id="@+id/spinner_creator"
|
|
|
android:layout_width="wrap_content"
|
|
|
- android:layout_height="wrap_content"
|
|
|
- android:layout_marginTop="10dp"
|
|
|
- android:gravity="center"
|
|
|
- android:text="@string/str_voice_msg_btn_text"
|
|
|
+ android:layout_height="match_parent"
|
|
|
+ android:layout_marginStart="10dp"
|
|
|
+ android:gravity="center_vertical"
|
|
|
+ android:popupBackground="@color/white"
|
|
|
+ android:spinnerMode="dropdown" />
|
|
|
+
|
|
|
+ </LinearLayout>
|
|
|
+
|
|
|
+ <FrameLayout
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="240dp"
|
|
|
+ android:paddingTop="4dp">
|
|
|
+
|
|
|
+ <EditText
|
|
|
+ android:id="@+id/edit_text_message"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="match_parent"
|
|
|
+ android:background="@drawable/shape_n_login_ed_bg2"
|
|
|
+ android:gravity="top"
|
|
|
+ android:hint="@string/str_message_hint"
|
|
|
+ android:padding="@dimen/d10"
|
|
|
android:textColor="#000000"
|
|
|
- android:textSize="20sp"/>
|
|
|
+ android:textSize="28sp"
|
|
|
+ android:visibility="visible" />
|
|
|
|
|
|
- <TextView
|
|
|
- android:id="@+id/tv_voice_msg_state"
|
|
|
- android:layout_width="wrap_content"
|
|
|
+ <LinearLayout
|
|
|
+ android:id="@+id/ll_voice_message"
|
|
|
+ android:layout_width="match_parent"
|
|
|
android:layout_height="wrap_content"
|
|
|
- android:layout_marginTop="8dp"
|
|
|
android:gravity="center"
|
|
|
- android:text="@string/str_empty_voice_msg"
|
|
|
- android:textColor="#ff0000"
|
|
|
- android:textSize="20sp"/>
|
|
|
- </LinearLayout>
|
|
|
+ android:orientation="vertical"
|
|
|
+ android:visibility="gone">
|
|
|
|
|
|
- </FrameLayout>
|
|
|
+ <Chronometer
|
|
|
+ android:id="@+id/voice_record_timer"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_marginTop="10dp"
|
|
|
+ android:text="00:00"
|
|
|
+ android:textColor="#000000"
|
|
|
+ android:textSize="18sp" />
|
|
|
|
|
|
- <LinearLayout
|
|
|
- android:layout_width="wrap_content"
|
|
|
- android:layout_height="wrap_content"
|
|
|
- android:layout_marginTop="10dp"
|
|
|
- android:layout_marginBottom="20dp">
|
|
|
- <Button
|
|
|
- android:id="@+id/btn_add_save"
|
|
|
- android:layout_width="wrap_content"
|
|
|
- android:layout_height="wrap_content"
|
|
|
- android:paddingLeft="40dp"
|
|
|
- android:paddingRight="40dp"
|
|
|
- android:paddingTop="10dp"
|
|
|
- android:paddingBottom="10dp"
|
|
|
- android:background="@drawable/shape_main_hos_txt_bg"
|
|
|
- android:textColor="@drawable/selector_bottom_btn_text_color"
|
|
|
- android:text="@string/str_save"
|
|
|
- android:textSize="20sp"
|
|
|
- style="?android:attr/buttonBarButtonStyle" />
|
|
|
-
|
|
|
- <View
|
|
|
- android:layout_width="60dp"
|
|
|
- android:layout_height="60dp"/>
|
|
|
-
|
|
|
- <Button
|
|
|
- android:id="@+id/btn_add_cancel"
|
|
|
+ <Button
|
|
|
+ android:id="@+id/btn_voice_record"
|
|
|
+ android:layout_width="80dp"
|
|
|
+ android:layout_height="80dp"
|
|
|
+ android:layout_gravity="center"
|
|
|
+ android:layout_marginTop="10dp"
|
|
|
+ android:background="@drawable/selector_record_btn" />
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/tv_voice_record"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_marginTop="10dp"
|
|
|
+ android:gravity="center"
|
|
|
+ android:text="@string/str_voice_msg_btn_text"
|
|
|
+ android:textColor="#000000"
|
|
|
+ android:textSize="20sp" />
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/tv_voice_msg_state"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_marginTop="8dp"
|
|
|
+ android:gravity="center"
|
|
|
+ android:text="@string/str_empty_voice_msg"
|
|
|
+ android:textColor="#ff0000"
|
|
|
+ android:textSize="20sp" />
|
|
|
+ </LinearLayout>
|
|
|
+
|
|
|
+ <LinearLayout
|
|
|
+ android:id="@+id/ll_video_record"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="match_parent"
|
|
|
+ android:gravity="center"
|
|
|
+ android:orientation="vertical"
|
|
|
+ android:visibility="gone">
|
|
|
+
|
|
|
+ <SurfaceView
|
|
|
+ android:id="@+id/surface_view"
|
|
|
+ android:layout_width="320dp"
|
|
|
+ android:layout_height="180dp" />
|
|
|
+
|
|
|
+ <LinearLayout
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_marginTop="6dp"
|
|
|
+ android:gravity="center">
|
|
|
+ <Button
|
|
|
+ android:id="@+id/btn_video_record"
|
|
|
+ style="?android:attr/buttonBarButtonStyle"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:padding="4dp"
|
|
|
+ android:background="@drawable/shape_mom_txt_bg"
|
|
|
+ android:text="@string/str_video_record"
|
|
|
+ android:textColor="@drawable/selector_bottom_btn_text_color"
|
|
|
+ android:textSize="16sp" />
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/tv_record_time"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_marginLeft="30dp"
|
|
|
+ android:layout_marginRight="30dp"
|
|
|
+ android:textColor="#000000"
|
|
|
+ android:text="--"
|
|
|
+ android:textSize="22sp" />
|
|
|
+
|
|
|
+ <Button
|
|
|
+ android:id="@+id/btn_video_upload"
|
|
|
+ style="?android:attr/buttonBarButtonStyle"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:padding="4dp"
|
|
|
+ android:background="@drawable/shape_mom_txt_bg"
|
|
|
+ android:text="@string/str_upload"
|
|
|
+ android:textColor="@drawable/selector_bottom_btn_text_color"
|
|
|
+ android:textSize="16sp" />
|
|
|
+ </LinearLayout>
|
|
|
+
|
|
|
+ </LinearLayout>
|
|
|
+
|
|
|
+ </FrameLayout>
|
|
|
+
|
|
|
+ <LinearLayout
|
|
|
android:layout_width="wrap_content"
|
|
|
android:layout_height="wrap_content"
|
|
|
- android:paddingLeft="40dp"
|
|
|
- android:paddingRight="40dp"
|
|
|
- android:paddingTop="10dp"
|
|
|
- android:paddingBottom="10dp"
|
|
|
- android:background="@drawable/shape_main_hos_txt_bg"
|
|
|
- android:textColor="@drawable/selector_bottom_btn_text_color"
|
|
|
- android:text="@string/str_cancel"
|
|
|
- android:textSize="20sp"
|
|
|
- style="?android:attr/buttonBarButtonStyle" />
|
|
|
- </LinearLayout>
|
|
|
+ android:layout_marginTop="20dp"
|
|
|
+ android:layout_marginBottom="10dp">
|
|
|
|
|
|
- </LinearLayout>
|
|
|
+ <Button
|
|
|
+ android:id="@+id/btn_add_save"
|
|
|
+ style="?android:attr/buttonBarButtonStyle"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:background="@drawable/shape_main_hos_txt_bg"
|
|
|
+ android:paddingLeft="40dp"
|
|
|
+ android:paddingTop="10dp"
|
|
|
+ android:paddingRight="40dp"
|
|
|
+ android:paddingBottom="10dp"
|
|
|
+ android:text="@string/str_save"
|
|
|
+ android:textColor="@drawable/selector_bottom_btn_text_color"
|
|
|
+ android:textSize="20sp" />
|
|
|
+
|
|
|
+ <View
|
|
|
+ android:layout_width="60dp"
|
|
|
+ android:layout_height="60dp" />
|
|
|
+
|
|
|
+ <Button
|
|
|
+ android:id="@+id/btn_add_cancel"
|
|
|
+ style="?android:attr/buttonBarButtonStyle"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:background="@drawable/shape_main_hos_txt_bg"
|
|
|
+ android:paddingLeft="40dp"
|
|
|
+ android:paddingTop="10dp"
|
|
|
+ android:paddingRight="40dp"
|
|
|
+ android:paddingBottom="10dp"
|
|
|
+ android:text="@string/str_cancel"
|
|
|
+ android:textColor="@drawable/selector_bottom_btn_text_color"
|
|
|
+ android:textSize="20sp" />
|
|
|
+ </LinearLayout>
|
|
|
|
|
|
+ </LinearLayout>
|
|
|
|
|
|
-</LinearLayout>
|
|
|
</layout>
|