nim_message_activity_text_layout.xml 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3. android:id="@+id/textMessageLayout"
  4. android:layout_width="match_parent"
  5. android:layout_height="wrap_content"
  6. android:background="@drawable/nim_message_view_bottom"
  7. android:paddingBottom="@dimen/bottom_component_margin_vertical"
  8. android:paddingTop="@dimen/bottom_component_margin_vertical">
  9. <FrameLayout
  10. android:id="@+id/switchLayout"
  11. android:layout_width="wrap_content"
  12. android:layout_height="wrap_content"
  13. android:layout_alignBottom="@+id/editTextMessage"
  14. android:layout_marginLeft="@dimen/bottom_component_margin_horizontal"
  15. android:layout_marginRight="@dimen/bottom_component_margin_horizontal">
  16. <ImageView
  17. android:id="@+id/buttonAudioMessage"
  18. android:layout_width="wrap_content"
  19. android:layout_height="wrap_content"
  20. android:background="@drawable/nim_message_button_bottom_audio_selector"
  21. android:contentDescription="@string/empty"
  22. android:scaleType="center" />
  23. <ImageView
  24. android:id="@+id/buttonTextMessage"
  25. android:layout_width="wrap_content"
  26. android:layout_height="wrap_content"
  27. android:layout_gravity="center_vertical"
  28. android:background="@drawable/nim_message_button_bottom_text_selector"
  29. android:contentDescription="@string/empty"
  30. android:scaleType="center" />
  31. </FrameLayout>
  32. <FrameLayout
  33. android:id="@+id/audioTextSwitchLayout"
  34. android:layout_width="0dip"
  35. android:layout_height="wrap_content"
  36. android:layout_alignBottom="@id/switchLayout"
  37. android:layout_marginRight="@dimen/bottom_component_margin_horizontal"
  38. android:layout_toLeftOf="@+id/emoji_button"
  39. android:layout_toRightOf="@+id/switchLayout">
  40. <Button
  41. android:id="@+id/audioRecord"
  42. android:layout_width="match_parent"
  43. android:layout_height="wrap_content"
  44. android:background="@drawable/nim_message_input_edittext_box"
  45. android:text="@string/record_audio"
  46. android:textColor="@color/color_black_333333"
  47. android:textSize="16sp"
  48. android:visibility="gone" />
  49. </FrameLayout>
  50. <EditText
  51. android:id="@+id/editTextMessage"
  52. android:textCursorDrawable="@null"
  53. android:textColor="@color/black"
  54. android:layout_width="match_parent"
  55. android:layout_height="wrap_content"
  56. android:layout_marginRight="@dimen/bottom_component_margin_horizontal"
  57. android:layout_toLeftOf="@+id/emoji_button"
  58. android:layout_toRightOf="@+id/switchLayout"
  59. android:autoLink="web|email|phone"
  60. android:background="@drawable/nim_message_input_edittext_box"
  61. android:maxHeight="72dip"
  62. android:maxLines="4"
  63. android:textSize="16sp" />
  64. <ImageView
  65. android:id="@+id/emoji_button"
  66. android:layout_width="wrap_content"
  67. android:layout_height="wrap_content"
  68. android:layout_alignBottom="@id/audioTextSwitchLayout"
  69. android:layout_marginRight="@dimen/bottom_component_margin_horizontal"
  70. android:layout_toLeftOf="@+id/sendLayout"
  71. android:background="@drawable/nim_message_button_bottom_emoji_selector"
  72. android:contentDescription="@string/empty"
  73. android:scaleType="center" />
  74. <FrameLayout
  75. android:id="@+id/sendLayout"
  76. android:layout_width="wrap_content"
  77. android:layout_height="wrap_content"
  78. android:layout_alignBottom="@id/audioTextSwitchLayout"
  79. android:layout_alignParentRight="true"
  80. android:layout_marginRight="@dimen/bottom_component_margin_horizontal">
  81. <ImageView
  82. android:id="@+id/buttonMoreFuntionInText"
  83. android:layout_width="wrap_content"
  84. android:layout_height="wrap_content"
  85. android:layout_gravity="center"
  86. android:background="@drawable/nim_message_button_bottom_add_selector"
  87. android:contentDescription="@string/empty"
  88. android:scaleType="center" />
  89. <TextView
  90. android:id="@+id/buttonSendMessage"
  91. android:layout_width="wrap_content"
  92. android:layout_height="wrap_content"
  93. android:layout_gravity="center"
  94. android:background="@drawable/nim_message_button_bottom_send_selector"
  95. android:contentDescription="@string/empty"
  96. android:gravity="center"
  97. android:text="@string/send"
  98. android:textColor="@color/white"
  99. android:textSize="14sp" />
  100. </FrameLayout>
  101. </RelativeLayout>