|
5 | 5 | android:background="@color/aurora_bg_input_default" |
6 | 6 | android:orientation="vertical"> |
7 | 7 |
|
| 8 | + <View |
| 9 | + android:layout_width="match_parent" |
| 10 | + android:layout_height="1px" |
| 11 | + android:background="@color/line_bg" /> |
| 12 | + |
8 | 13 | <LinearLayout |
9 | 14 | android:id="@+id/aurora_ll_input_container" |
10 | 15 | android:layout_width="match_parent" |
11 | 16 | android:layout_height="48dp" |
12 | | - android:layout_marginBottom="8dp" |
13 | | - android:layout_marginTop="8dp" |
| 17 | + android:layout_marginBottom="2dp" |
| 18 | + android:layout_marginTop="2dp" |
14 | 19 | android:orientation="horizontal"> |
15 | 20 |
|
16 | 21 | <android.support.v4.widget.Space |
17 | 22 | android:id="@+id/aurora_input_margin_left" |
18 | | - android:layout_width="0dp" |
| 23 | + android:layout_width="@dimen/imui_chat_space" |
19 | 24 | android:layout_height="match_parent" /> |
20 | 25 |
|
21 | 26 | <FrameLayout |
22 | 27 | android:id="@+id/imui_layout_voice" |
23 | | - android:layout_width="48dp" |
24 | | - android:layout_height="48dp"> |
| 28 | + android:layout_width="wrap_content" |
| 29 | + android:layout_height="match_parent"> |
25 | 30 |
|
26 | 31 | <ImageButton |
27 | 32 | android:id="@+id/imui_item_voice" |
28 | 33 | style="@style/ChatInputIcon" |
29 | | - android:scaleType="fitCenter" |
30 | 34 | android:layout_gravity="center" |
31 | 35 | android:background="@android:color/transparent" |
32 | 36 | android:clickable="false" |
| 37 | + android:scaleType="fitCenter" |
33 | 38 | android:src="@drawable/nim_message_button_bottom_audio_selector" /> |
34 | 39 | </FrameLayout> |
35 | | - |
| 40 | + <android.support.v4.widget.Space |
| 41 | + android:layout_width="@dimen/imui_chat_space" |
| 42 | + android:layout_height="match_parent" /> |
36 | 43 | <FrameLayout |
37 | 44 | android:layout_width="0dp" |
38 | 45 | android:layout_height="match_parent" |
39 | | - android:layout_weight="1"> |
| 46 | + android:layout_weight="1" |
| 47 | + android:paddingBottom="5dp" |
| 48 | + android:paddingTop="5dp"> |
40 | 49 |
|
41 | 50 | <EditText |
42 | 51 | android:id="@+id/imui_chat_input" |
| 52 | + android:layout_height="@dimen/imui_chat_width" |
43 | 53 | android:layout_width="match_parent" |
44 | | - android:layout_height="match_parent" |
45 | 54 | android:background="@drawable/aurora_edittext_bg" |
46 | 55 | android:cursorVisible="true" |
47 | 56 | android:inputType="textMultiLine" |
|
52 | 61 | android:textSize="18sp" /> |
53 | 62 |
|
54 | 63 | <Button |
55 | | - android:background="@drawable/voice_bg" |
56 | 64 | android:id="@+id/imui_chat_voice" |
57 | 65 | android:layout_width="match_parent" |
58 | | - android:layout_height="match_parent" |
| 66 | + style="?android:attr/borderlessButtonStyle" |
| 67 | + android:layout_height="@dimen/imui_chat_width" |
| 68 | + android:background="@drawable/voice_bg" |
59 | 69 | android:text="按住 说话" |
60 | | - android:visibility="visible" /> |
| 70 | + android:visibility="invisible" /> |
61 | 71 | </FrameLayout> |
62 | | - |
| 72 | + <android.support.v4.widget.Space |
| 73 | + android:layout_width="@dimen/imui_chat_space" |
| 74 | + android:layout_height="match_parent" /> |
63 | 75 | <FrameLayout |
64 | 76 | android:id="@+id/imui_layout_emoji" |
65 | | - android:layout_width="48dp" |
66 | | - android:layout_height="48dp"> |
| 77 | + android:layout_width="wrap_content" |
| 78 | + android:layout_height="match_parent"> |
67 | 79 |
|
68 | 80 | <ImageButton |
69 | 81 | android:id="@+id/imui_item_emoji" |
70 | 82 | style="@style/ChatInputIcon" |
71 | | - android:scaleType="fitCenter" |
72 | 83 | android:layout_gravity="center" |
73 | 84 | android:background="@android:color/transparent" |
74 | 85 | android:clickable="false" |
| 86 | + android:scaleType="fitCenter" |
75 | 87 | android:src="@drawable/nim_message_button_bottom_emoji_selector" /> |
76 | 88 | </FrameLayout> |
77 | | - |
| 89 | + <android.support.v4.widget.Space |
| 90 | + android:layout_width="@dimen/imui_chat_space" |
| 91 | + android:layout_height="match_parent" /> |
78 | 92 | <RelativeLayout |
79 | | - android:layout_width="48dp" |
| 93 | + android:layout_width="wrap_content" |
80 | 94 | android:layout_height="match_parent"> |
81 | 95 |
|
82 | 96 | <FrameLayout |
83 | 97 | android:id="@+id/imui_layout_send" |
84 | | - android:layout_width="48dp" |
| 98 | + android:layout_width="wrap_content" |
85 | 99 | android:layout_height="match_parent" |
86 | 100 | android:visibility="invisible"> |
87 | 101 |
|
88 | 102 | <ImageButton |
89 | 103 | android:id="@+id/imui_item_send" |
90 | | - android:layout_width="32dp" |
91 | | - android:layout_height="32dp" |
92 | | - android:clickable="false" |
| 104 | + style="@style/ChatInputIcon" |
93 | 105 | android:layout_gravity="center" |
94 | 106 | android:adjustViewBounds="true" |
95 | 107 | android:background="@drawable/aurora_menuitem_send" |
96 | | - android:scaleType="fitCenter" /> |
| 108 | + android:clickable="false" /> |
97 | 109 |
|
98 | 110 | <TextView |
99 | 111 | android:id="@+id/imui_receive_count" |
|
106 | 118 | android:elevation="4dp" |
107 | 119 | android:ems="1" |
108 | 120 | android:gravity="center" |
109 | | - android:visibility="gone" |
110 | 121 | android:maxLines="1" |
111 | 122 | android:textColor="@android:color/black" |
112 | 123 | android:textSize="12sp" |
| 124 | + android:visibility="gone" |
113 | 125 | tools:text="11" /> |
114 | 126 | </FrameLayout> |
115 | 127 |
|
116 | 128 | <FrameLayout |
117 | 129 | android:id="@+id/imui_layout_action" |
118 | | - android:layout_width="48dp" |
| 130 | + android:layout_width="wrap_content" |
119 | 131 | android:layout_height="match_parent"> |
120 | 132 |
|
121 | 133 | <ImageButton |
122 | 134 | android:id="@+id/imui_item_action" |
123 | | - android:layout_width="32dp" |
124 | | - android:layout_height="32dp" |
| 135 | + style="@style/ChatInputIcon" |
125 | 136 | android:layout_gravity="center" |
126 | | - android:clickable="false" |
127 | 137 | android:adjustViewBounds="true" |
128 | 138 | android:background="@drawable/nim_message_button_bottom_add_selector" |
129 | | - android:scaleType="fitCenter" /> |
| 139 | + android:clickable="false" /> |
130 | 140 | </FrameLayout> |
131 | 141 | </RelativeLayout> |
132 | 142 |
|
133 | 143 | <android.support.v4.widget.Space |
134 | 144 | android:id="@+id/aurora_input_margin_right" |
135 | | - android:layout_width="0dp" |
| 145 | + android:layout_width="@dimen/imui_chat_space" |
136 | 146 | android:layout_height="match_parent" /> |
137 | 147 | </LinearLayout> |
138 | 148 |
|
| 149 | + <View |
| 150 | + android:visibility="gone" |
| 151 | + android:layout_width="match_parent" |
| 152 | + android:layout_height="1px" |
| 153 | + android:background="@color/line_bg" /> |
| 154 | + |
139 | 155 | <cn.jiguang.imui.chatinput.record.ActionLayout |
140 | 156 | android:id="@+id/aurora_fl_menu_container" |
141 | 157 | android:layout_width="match_parent" |
|
146 | 162 | <dowin.com.emoji.emoji.EmoticonPickerView |
147 | 163 | android:id="@+id/emoticon_picker_view" |
148 | 164 | android:layout_width="match_parent" |
149 | | - android:layout_height="match_parent"/> |
| 165 | + android:layout_height="match_parent" /> |
150 | 166 |
|
151 | 167 | <LinearLayout |
152 | 168 | android:id="@+id/aurora_view_action_layout" |
|
0 commit comments