| 5 | android:id="@+id/chat_layout"> |
| 6 |
| 7 | <org.telegram.ui.Views.FrameLayoutFixed |
| 8 | android:layout_height="fill_parent" |
| 9 | android:layout_width="fill_parent" |
| 10 | android:paddingBottom="48dp"> |
| 11 |
| 12 | <TextView |
| 13 | android:layout_width="wrap_content" |
| 14 | android:layout_height="wrap_content" |
| 15 | android:textColor="#ffffff" |
| 16 | android:gravity="center" |
| 17 | android:paddingTop="2dp" |
| 18 | android:paddingBottom="2dp" |
| 19 | android:paddingLeft="7dp" |
| 20 | android:paddingRight="7dp" |
| 21 | android:textSize="14dp" |
| 22 | android:id="@+id/searchEmptyView" |
| 23 | android:visibility="gone" |
| 24 | android:layout_gravity="center"/> |
| 25 |
| 26 | <include |
| 27 | layout="@layout/encrypted_chat_placeholder" |
| 28 | android:layout_gravity="center"/> |
| 29 |
| 30 | </org.telegram.ui.Views.FrameLayoutFixed> |
| 31 |
| 32 | <org.telegram.ui.Views.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 | <FrameLayout |
| 81 | android:layout_width="fill_parent" |
| 82 | android:layout_height="48dp" |
| 83 | android:id="@+id/top_panel"> |
| 84 |
| 85 | <TextView |
| 86 | android:layout_height="wrap_content" |
| 87 | android:layout_width="wrap_content" |
| 88 | android:layout_gravity="center" |
| 89 | android:id="@+id/top_panel_text" |
| 90 | android:textAllCaps="true" |
| 91 | android:textSize="12dp" |
| 92 | android:textStyle="bold" |
| 93 | android:textColor="#ffffff"/> |
| 94 |
| 95 | <ImageView |
| 96 | android:layout_width="30dp" |
| 97 | android:layout_height="30dp" |
| 98 | android:scaleType="centerInside" |
| 99 | android:layout_marginRight="4dp" |
| 100 | android:layout_gravity="right|center" |
| 101 | android:id="@+id/top_plane_close" |
| 102 | android:clickable="true"/> |
| 103 |
| 104 | </FrameLayout> |
| 105 |
| 106 | <RelativeLayout |
| 107 | android:layout_width="match_parent" |
| 108 | android:layout_height="wrap_content" |
| 109 | android:background="@drawable/compose_panel" |
| 110 | android:id="@+id/chat_compose_panel" |
| 111 | android:focusable="true" |
| 112 | android:focusableInTouchMode="true" |
| 113 | android:gravity="bottom" |
| 114 | android:layout_alignParentBottom="true"> |
| 115 |
| 116 | <ImageView |
| 117 | android:src="@drawable/ic_msg_panel_smiles" |
| 118 | android:layout_width="48dp" |
| 119 | android:layout_height="48dp" |
| 120 | android:layout_marginTop="2dp" |
| 121 | android:paddingTop="1dp" |
| 122 | android:scaleType="centerInside" |
| 123 | android:paddingLeft="4dp" |
| 124 | android:id="@+id/chat_smile_button" |
| 125 | android:layout_alignBottom="@+id/chat_text_edit"/> |
| 126 |
| 127 | <ImageButton |
| 128 | android:layout_width="48dp" |
| 129 | android:layout_height="48dp" |
| 130 | android:layout_marginTop="2dp" |
| 131 | android:scaleType="centerInside" |
| 132 | android:id="@+id/chat_send_button" |
| 133 | android:layout_alignParentRight="true" |
| 134 | android:layout_alignBottom="@+id/chat_text_edit" |
| 135 | android:enabled="false" |
| 136 | android:src="@drawable/send_button_states" |
| 137 | android:background="@android:color/transparent"/> |
| 138 |
| 139 | <EditText |
| 140 | android:layout_width="match_parent" |
| 141 | android:layout_height="wrap_content" |
| 142 | android:id="@+id/chat_text_edit" |
| 143 | android:layout_toRightOf="@id/chat_smile_button" |
| 144 | android:layout_toLeftOf="@id/chat_send_button" |
| 145 | android:layout_marginTop="2dp" |
| 146 | android:maxLines="4" |
| 147 | android:minHeight="48dp" |
| 148 | android:textSize="18dp" |
| 149 | android:textColorHint="#909090" |
| 150 | android:ems="10" |
| 151 | android:imeOptions="flagNoExtractUi" |
| 152 | android:inputType="textCapSentences|textMultiLine" |
| 153 | android:layout_alignParentTop="true" |
| 154 | android:paddingBottom="12dp" |
| 155 | android:maxLength="16384" |
| 156 | android:textCursorDrawable="@null" |
| 157 | android:textColor="#000000"/> |
| 158 |
| 159 | <org.telegram.ui.Views.FrameLayoutFixed |
| 160 | android:layout_height="48dp" |
| 161 | android:layout_width="fill_parent" |
| 162 | android:layout_marginTop="2dp" |
| 163 | android:layout_marginRight="48dp" |
| 164 | android:background="#ffffff" |
| 165 | android:id="@+id/record_panel" |
| 166 | android:visibility="gone"> |
| 167 |
| 168 | <LinearLayout |
| 169 | android:layout_height="wrap_content" |
| 170 | android:layout_width="wrap_content" |
| 171 | android:layout_gravity="center" |
| 172 | android:layout_marginLeft="30dp" |
| 173 | android:orientation="horizontal" |
| 174 | android:id="@+id/slideText"> |
| 175 |
| 176 | <ImageView |
| 177 | android:layout_height="wrap_content" |
| 178 | android:layout_width="wrap_content" |
| 179 | android:src="@drawable/slidearrow" |
| 180 | android:layout_gravity="center_vertical" |
| 181 | android:layout_marginTop="1dp"/> |
| 182 |
| 183 | <TextView |
| 184 | android:layout_width="wrap_content" |
| 185 | android:layout_height="wrap_content" |
| 186 | android:textColor="#999999" |
| 187 | android:textSize="12dp" |
| 188 | android:layout_marginLeft="6dp" |
| 189 | android:id="@+id/slideToCancelTextView" |
| 190 | android:layout_gravity="center_vertical"/> |
| 191 |
| 192 | </LinearLayout> |
| 193 |
| 194 | <LinearLayout |
| 195 | android:layout_height="wrap_content" |
| 196 | android:layout_width="wrap_content" |
| 197 | android:layout_gravity="center_vertical" |
| 198 | android:paddingLeft="13dp" |
| 199 | android:orientation="horizontal" |
| 200 | android:background="#ffffffff"> |
| 201 |
| 202 | <ImageView |
| 203 | android:layout_height="wrap_content" |
| 204 | android:layout_width="wrap_content" |
| 205 | android:src="@drawable/rec" |
| 206 | android:layout_gravity="center_vertical" |
| 207 | android:layout_marginTop="1dp"/> |
| 208 |
| 209 | <TextView |
| 210 | android:layout_width="wrap_content" |
| 211 | android:layout_height="wrap_content" |
| 212 | android:id="@+id/recording_time_text" |
| 213 | android:text="00:00" |
| 214 | android:textColor="#4d4c4b" |
| 215 | android:textSize="16dp" |
| 216 | android:layout_gravity="center_vertical" |
| 217 | android:layout_marginLeft="6dp"/> |
| 218 |
| 219 | </LinearLayout> |
| 220 |
| 221 | </org.telegram.ui.Views.FrameLayoutFixed> |
| 222 |
| 223 | <ImageButton |
| 224 | android:layout_width="48dp" |
| 225 | android:layout_height="48dp" |
| 226 | android:layout_marginTop="2dp" |
| 227 | android:scaleType="centerInside" |
| 228 | android:id="@+id/chat_audio_send_button" |
| 229 | android:layout_alignParentRight="true" |
| 230 | android:layout_alignBottom="@+id/chat_text_edit" |
| 231 | android:enabled="false" |
| 232 | android:src="@drawable/mic_button_states" |
| 233 | android:paddingRight="4dp" |
| 234 | android:background="@android:color/white"/> |
| 235 |
| 236 | </RelativeLayout> |
| 237 |
| 238 | <FrameLayout |
| 239 | android:layout_height="48dp" |
| 240 | android:layout_width="fill_parent" |
| 241 | android:layout_alignParentBottom="true" |
| 242 | android:background="#ffffff" |
| 243 | android:id="@+id/bottom_overlay" |
| 244 | android:visibility="gone" |
| 245 | android:focusable="true" |
| 246 | android:focusableInTouchMode="true" |
| 247 | android:clickable="true"> |
| 248 |
| 249 | <TextView |
| 250 | android:layout_width="wrap_content" |
| 251 | android:layout_height="wrap_content" |
| 252 | android:id="@+id/bottom_overlay_text" |
| 253 | android:textColor="#7f7f7f" |
| 254 | android:textSize="16dp" |
| 255 | android:layout_gravity="center"/> |
| 256 |
| 257 | </FrameLayout> |
| 258 |
| 259 | <FrameLayout |
| 260 | android:layout_height="48dp" |
| 261 | android:layout_width="fill_parent" |
| 262 | android:layout_alignParentBottom="true" |
| 263 | android:background="#fbfcfd" |
| 264 | android:id="@+id/bottom_overlay_chat" |
| 265 | android:visibility="gone" |
| 266 | android:focusable="true" |
| 267 | android:focusableInTouchMode="true" |
| 268 | android:clickable="true"> |
| 269 |
| 270 | <TextView |
| 271 | android:layout_width="wrap_content" |
| 272 | android:layout_height="wrap_content" |
| 273 | android:id="@+id/bottom_overlay_chat_text" |
| 274 | android:textColor="#3e6fa1" |
| 275 | android:textSize="18dp" |
| 276 | android:layout_gravity="center"/> |
| 277 |
| 278 | </FrameLayout> |
| 279 |
| 280 | <ImageView |
| 281 | android:layout_width="wrap_content" |
| 282 | android:layout_height="wrap_content" |
| 283 | android:src="@drawable/pagedown" |
| 284 | android:layout_above="@id/chat_compose_panel" |
| 285 | android:layout_alignParentRight="true" |
| 286 | android:layout_marginRight="4dp" |
| 287 | android:layout_marginBottom="4dp" |
| 288 | android:id="@+id/pagedown_button"/> |
| 289 |
| 290 | </org.telegram.ui.Views.SizeNotifierRelativeLayout> |