| 5 | android:id="@+id/chat_layout"> |
| 6 |
| 7 | <org.telegram.ui.Components.FrameLayoutFixed |
| 8 | android:layout_height="fill_parent" |
| 9 | android:layout_width="fill_parent" |
| 10 | android:paddingBottom="48dp" |
| 11 | android:id="@+id/empty_view"> |
| 12 |
| 13 | <TextView |
| 14 | android:layout_width="wrap_content" |
| 15 | android:layout_height="wrap_content" |
| 16 | android:textColor="#ffffff" |
| 17 | android:gravity="center" |
| 18 | android:paddingTop="2dp" |
| 19 | android:paddingBottom="2dp" |
| 20 | android:paddingLeft="7dp" |
| 21 | android:paddingRight="7dp" |
| 22 | android:textSize="16dp" |
| 23 | android:id="@+id/searchEmptyView" |
| 24 | android:layout_gravity="center"/> |
| 25 |
| 26 | <include |
| 27 | layout="@layout/encrypted_chat_placeholder" |
| 28 | android:layout_gravity="center"/> |
| 29 |
| 30 | </org.telegram.ui.Components.FrameLayoutFixed> |
| 31 |
| 32 | <org.telegram.ui.Components.LayoutListView |
| 33 | android:layout_width="fill_parent" |
| 34 | android:layout_height="fill_parent" |
| 35 | android:id="@+id/chat_list_view" |
| 36 | android:layout_alignParentTop="true" |
| 37 | android:layout_alignParentLeft="true" |
| 38 | android:clipToPadding="false" |
| 39 | android:layout_marginBottom="-3dp" |
| 40 | android:layout_above="@+id/chat_compose_panel" |
| 41 | android:divider="@null" |
| 42 | android:dividerHeight="0dp" |
| 43 | android:listSelector="@android:color/transparent" |
| 44 | android:fadingEdge="none" |
| 45 | android:fadingEdgeLength="0dp" |
| 46 | android:stackFromBottom="true" |
| 47 | android:paddingBottom="3dp" |
| 48 | android:paddingTop="4dp" |
| 49 | android:cacheColorHint="#00000000"/> |
| 50 |
| 51 | <FrameLayout |
| 52 | android:layout_width="wrap_content" |
| 53 | android:layout_height="wrap_content" |
| 54 | android:layout_centerInParent="true" |
| 55 | android:id="@+id/progressLayout" |
| 56 | android:visibility="gone"> |
| 57 |
| 58 | <FrameLayout |
| 59 | android:id="@+id/progressLayoutInner" |
| 60 | android:layout_width="36dp" |
| 61 | android:layout_height="36dp" |
| 62 | android:gravity="center" |
| 63 | android:layout_marginBottom="48dp"> |
| 64 |
| 65 | <ProgressBar |
| 66 | android:layout_width="32dp" |
| 67 | android:layout_height="32dp" |
| 68 | android:id="@+id/center_progress" |
| 69 | android:indeterminateDrawable="@drawable/loading_animation" |
| 70 | android:indeterminate="true" |
| 71 | android:layout_gravity="center" |
| 72 | android:indeterminateBehavior="repeat" |
| 73 | android:indeterminateDuration="1500"> |
| 74 | </ProgressBar> |
| 75 |
| 76 | </FrameLayout> |
| 77 |
| 78 | </FrameLayout> |
| 79 |
| 80 | <LinearLayout |
| 81 | android:layout_height="wrap_content" |
| 82 | android:layout_width="match_parent" |
| 83 | android:layout_alignParentBottom="true" |
| 84 | android:focusable="true" |
| 85 | android:focusableInTouchMode="true" |
| 86 | android:id="@+id/chat_compose_panel" |
| 87 | android:background="@drawable/compose_panel" |
| 88 | android:orientation="horizontal"> |
| 89 |
| 90 | <org.telegram.ui.Components.FrameLayoutFixed |
| 91 | android:layout_height="wrap_content" |
| 92 | android:layout_width="0dp" |
| 93 | android:layout_weight="1"> |
| 94 |
| 95 | <ImageView |
| 96 | android:src="@drawable/ic_msg_panel_smiles" |
| 97 | android:layout_width="48dp" |
| 98 | android:layout_height="48dp" |
| 99 | android:layout_marginTop="2dp" |
| 100 | android:paddingTop="1dp" |
| 101 | android:paddingLeft="4dp" |
| 102 | android:scaleType="centerInside" |
| 103 | android:layout_gravity="bottom" |
| 104 | android:id="@+id/chat_smile_button"/> |
| 105 |
| 106 | <EditText |
| 107 | android:layout_width="match_parent" |
| 108 | android:layout_height="wrap_content" |
| 109 | android:layout_gravity="bottom" |
| 110 | android:id="@+id/chat_text_edit" |
| 111 | android:maxLines="4" |
| 112 | android:textSize="18dp" |
| 113 | android:textColorHint="#b2b2b2" |
| 114 | android:imeOptions="flagNoExtractUi" |
| 115 | android:inputType="textCapSentences|textMultiLine" |
| 116 | android:maxLength="16384" |
| 117 | android:gravity="bottom" |
| 118 | android:layout_marginLeft="52dp" |
| 119 | android:layout_marginRight="2dp" |
| 120 | android:background="@null" |
| 121 | android:paddingBottom="12dp" |
| 122 | android:paddingTop="11dp" |
| 123 | android:textCursorDrawable="@null" |
| 124 | android:textColor="#000000"/> |
| 125 |
| 126 | <FrameLayout |
| 127 | android:layout_width="48dp" |
| 128 | android:layout_height="48dp" |
| 129 | android:layout_marginTop="2dp" |
| 130 | android:id="@+id/chat_attach_button" |
| 131 | android:enabled="false" |
| 132 | android:layout_gravity="bottom|right"/> |
| 133 |
| 134 | <org.telegram.ui.Components.FrameLayoutFixed |
| 135 | android:layout_height="48dp" |
| 136 | android:layout_width="fill_parent" |
| 137 | android:layout_marginTop="2dp" |
| 138 | android:layout_gravity="bottom" |
| 139 | android:background="#ffffff" |
| 140 | android:id="@+id/record_panel" |
| 141 | android:visibility="gone"> |
| 142 |
| 143 | <LinearLayout |
| 144 | android:layout_height="wrap_content" |
| 145 | android:layout_width="wrap_content" |
| 146 | android:layout_gravity="center" |
| 147 | android:layout_marginLeft="30dp" |
| 148 | android:orientation="horizontal" |
| 149 | android:id="@+id/slideText"> |
| 150 |
| 151 | <ImageView |
| 152 | android:layout_height="wrap_content" |
| 153 | android:layout_width="wrap_content" |
| 154 | android:src="@drawable/slidearrow" |
| 155 | android:layout_gravity="center_vertical" |
| 156 | android:layout_marginTop="1dp"/> |
| 157 |
| 158 | <TextView |
| 159 | android:layout_width="wrap_content" |
| 160 | android:layout_height="wrap_content" |
| 161 | android:textColor="#999999" |
| 162 | android:textSize="12dp" |
| 163 | android:layout_marginLeft="6dp" |
| 164 | android:id="@+id/slideToCancelTextView" |
| 165 | android:layout_gravity="center_vertical"/> |
| 166 |
| 167 | </LinearLayout> |
| 168 |
| 169 | <LinearLayout |
| 170 | android:layout_height="wrap_content" |
| 171 | android:layout_width="wrap_content" |
| 172 | android:layout_gravity="center_vertical" |
| 173 | android:paddingLeft="13dp" |
| 174 | android:orientation="horizontal" |
| 175 | android:background="#ffffffff"> |
| 176 |
| 177 | <ImageView |
| 178 | android:layout_height="wrap_content" |
| 179 | android:layout_width="wrap_content" |
| 180 | android:src="@drawable/rec" |
| 181 | android:layout_gravity="center_vertical" |
| 182 | android:layout_marginTop="1dp"/> |
| 183 |
| 184 | <TextView |
| 185 | android:layout_width="wrap_content" |
| 186 | android:layout_height="wrap_content" |
| 187 | android:id="@+id/recording_time_text" |
| 188 | android:text="00:00" |
| 189 | android:textColor="#4d4c4b" |
| 190 | android:textSize="16dp" |
| 191 | android:layout_gravity="center_vertical" |
| 192 | android:layout_marginLeft="6dp"/> |
| 193 |
| 194 | </LinearLayout> |
| 195 |
| 196 | </org.telegram.ui.Components.FrameLayoutFixed> |
| 197 |
| 198 | </org.telegram.ui.Components.FrameLayoutFixed> |
| 199 |
| 200 | <FrameLayout |
| 201 | android:layout_width="48dp" |
| 202 | android:layout_height="48dp" |
| 203 | android:layout_gravity="bottom" |
| 204 | android:layout_marginTop="2dp"> |
| 205 |
| 206 | <ImageButton |
| 207 | android:layout_width="48dp" |
| 208 | android:layout_height="48dp" |
| 209 | android:scaleType="centerInside" |
| 210 | android:id="@+id/chat_audio_send_button" |
| 211 | android:enabled="false" |
| 212 | android:src="@drawable/mic_button_states" |
| 213 | android:paddingRight="4dp" |
| 214 | android:background="@android:color/white"/> |
| 215 |
| 216 | <ImageButton |
| 217 | android:layout_width="48dp" |
| 218 | android:layout_height="48dp" |
| 219 | android:scaleType="centerInside" |
| 220 | android:id="@+id/chat_send_button" |
| 221 | android:enabled="false" |
| 222 | android:src="@drawable/ic_send" |
| 223 | android:background="@android:color/transparent"/> |
| 224 |
| 225 | </FrameLayout> |
| 226 |
| 227 | </LinearLayout> |
| 228 |
| 229 | <FrameLayout |
| 230 | android:layout_width="wrap_content" |
| 231 | android:layout_height="81.5dp" |
| 232 | android:id="@+id/stickers_panel" |
| 233 | android:layout_marginBottom="38dp" |
| 234 | android:layout_alignBottom="@+id/chat_compose_panel"> |
| 235 |
| 236 | <org.telegram.ui.Components.RecyclerListView |
| 237 | android:layout_width="match_parent" |
| 238 | android:layout_height="78dp" |
| 239 | android:id="@+id/stickers_listview"/> |
| 240 |
| 241 | <ImageView |
| 242 | android:layout_height="wrap_content" |
| 243 | android:layout_width="wrap_content" |
| 244 | android:layout_gravity="bottom" |
| 245 | android:layout_marginLeft="53dp" |
| 246 | android:src="@drawable/stickers_back_arrow"/> |
| 247 |
| 248 | </FrameLayout> |
| 249 |
| 250 | <FrameLayout |
| 251 | android:layout_height="48dp" |
| 252 | android:layout_width="fill_parent" |
| 253 | android:layout_alignParentBottom="true" |
| 254 | android:background="#ffffff" |
| 255 | android:id="@+id/bottom_overlay" |
| 256 | android:visibility="gone" |
| 257 | android:focusable="true" |
| 258 | android:focusableInTouchMode="true" |
| 259 | android:clickable="true"> |
| 260 |
| 261 | <TextView |
| 262 | android:layout_width="wrap_content" |
| 263 | android:layout_height="wrap_content" |
| 264 | android:id="@+id/bottom_overlay_text" |
| 265 | android:textColor="#7f7f7f" |
| 266 | android:textSize="16dp" |
| 267 | android:layout_gravity="center"/> |
| 268 |
| 269 | </FrameLayout> |
| 270 |
| 271 | <FrameLayout |
| 272 | android:layout_height="48dp" |
| 273 | android:layout_width="fill_parent" |
| 274 | android:layout_alignParentBottom="true" |
| 275 | android:background="#fbfcfd" |
| 276 | android:id="@+id/bottom_overlay_chat" |
| 277 | android:visibility="gone"> |
| 278 |
| 279 | <TextView |
| 280 | android:layout_width="wrap_content" |
| 281 | android:layout_height="wrap_content" |
| 282 | android:id="@+id/bottom_overlay_chat_text" |
| 283 | android:textColor="#3e6fa1" |
| 284 | android:textSize="18dp" |
| 285 | android:layout_gravity="center"/> |
| 286 |
| 287 | </FrameLayout> |
| 288 |
| 289 | <ImageView |
| 290 | android:layout_width="wrap_content" |
| 291 | android:layout_height="wrap_content" |
| 292 | android:src="@drawable/pagedown" |
| 293 | android:layout_above="@id/chat_compose_panel" |
| 294 | android:layout_alignParentRight="true" |
| 295 | android:layout_marginRight="6dp" |
| 296 | android:layout_marginBottom="4dp" |
| 297 | android:id="@+id/pagedown_button"/> |
| 298 |
| 299 | </org.telegram.ui.Components.SizeNotifierRelativeLayout> |