nim_message_activity_text_layout.xml 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  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. <!--android:visibility="gone"/>-->
  24. <ImageView
  25. android:id="@+id/buttonTextMessage"
  26. android:layout_width="wrap_content"
  27. android:layout_height="wrap_content"
  28. android:layout_gravity="center_vertical"
  29. android:background="@drawable/nim_message_button_bottom_text_selector"
  30. android:contentDescription="@string/empty"
  31. android:scaleType="center"
  32. android:visibility="gone"/>
  33. </FrameLayout>
  34. <FrameLayout
  35. android:id="@+id/audioTextSwitchLayout"
  36. android:layout_width="0dip"
  37. android:layout_height="wrap_content"
  38. android:layout_alignBottom="@id/switchLayout"
  39. android:layout_marginRight="@dimen/bottom_component_margin_horizontal"
  40. android:layout_toLeftOf="@+id/emoji_button"
  41. android:layout_toRightOf="@+id/switchLayout">
  42. <Button
  43. android:id="@+id/audioRecord"
  44. android:layout_width="match_parent"
  45. android:layout_height="wrap_content"
  46. android:background="@drawable/nim_message_input_edittext_box"
  47. android:text="@string/record_audio"
  48. android:textColor="@color/color_black_333333"
  49. android:textSize="16sp"
  50. android:visibility="gone" />
  51. </FrameLayout>
  52. <EditText
  53. android:id="@+id/editTextMessage"
  54. android:textCursorDrawable="@null"
  55. android:textColor="@color/black"
  56. android:layout_width="match_parent"
  57. android:layout_height="wrap_content"
  58. android:layout_marginRight="@dimen/bottom_component_margin_horizontal"
  59. android:layout_toLeftOf="@+id/emoji_button"
  60. android:layout_toRightOf="@+id/switchLayout"
  61. android:autoLink="web|email|phone"
  62. android:background="@drawable/nim_message_input_edittext_box"
  63. android:maxHeight="72dip"
  64. android:maxLines="4"
  65. android:textSize="16sp" />
  66. <ImageView
  67. android:id="@+id/emoji_button"
  68. android:layout_width="wrap_content"
  69. android:layout_height="wrap_content"
  70. android:layout_alignBottom="@id/audioTextSwitchLayout"
  71. android:layout_marginRight="@dimen/bottom_component_margin_horizontal"
  72. android:layout_toLeftOf="@+id/sendLayout"
  73. android:background="@drawable/nim_message_button_bottom_emoji_selector"
  74. android:contentDescription="@string/empty"
  75. android:scaleType="center" />
  76. <FrameLayout
  77. android:id="@+id/sendLayout"
  78. android:layout_width="wrap_content"
  79. android:layout_height="wrap_content"
  80. android:layout_alignBottom="@id/audioTextSwitchLayout"
  81. android:layout_alignParentRight="true"
  82. android:layout_marginRight="@dimen/bottom_component_margin_horizontal">
  83. <ImageView
  84. android:id="@+id/buttonMoreFuntionInText"
  85. android:layout_width="wrap_content"
  86. android:layout_height="wrap_content"
  87. android:layout_gravity="center"
  88. android:background="@drawable/nim_message_button_bottom_add_selector"
  89. android:contentDescription="@string/empty"
  90. android:scaleType="center" />
  91. <TextView
  92. android:id="@+id/buttonSendMessage"
  93. android:layout_width="wrap_content"
  94. android:layout_height="wrap_content"
  95. android:layout_gravity="center"
  96. android:background="@drawable/nim_message_button_bottom_send_selector"
  97. android:contentDescription="@string/empty"
  98. android:gravity="center"
  99. android:text="@string/send"
  100. android:textColor="@color/white"
  101. android:textSize="14sp" />
  102. </FrameLayout>
  103. </RelativeLayout>