| 4 |
| android:windowSoftInputMode="adjustResize" |
| 5 | android:id="@+id/chat_layout"> |
| 6 |
| 7 | <ImageView android:layout_height="fill_parent" |
| 8 | android:layout_width="fill_parent" |
| 9 | android:id="@+id/background_image" |
| 10 | android:scaleType="centerCrop"/> |
| 11 |
| 12 | <org.telegram.ui.Views.LayoutListView |
| 13 | android:layout_width="fill_parent" |
| 14 | android:layout_height="fill_parent" |
| 15 | android:id="@+id/chat_list_view" |
| 16 | android:layout_alignParentTop="true" |
| 17 | android:layout_alignParentLeft="true" |
| 18 | android:clipToPadding="false" |
| 19 | android:layout_marginBottom="-3dp" |
| 20 | android:layout_above="@+id/chat_compose_panel" |
| 21 | android:divider="@null" |
| 22 | android:dividerHeight="0dp" |
| 23 | android:listSelector="@android:color/transparent" |
| 24 | android:fadingEdge="none" |
| 25 | android:fadingEdgeLength="0dp" |
| 26 | android:stackFromBottom="true" |
| 27 | android:paddingBottom="5dp" |
| 28 | android:cacheColorHint="#00000000"/> |
| 29 |
| 30 | <TextView android:layout_width="164dp" |
| 31 | android:layout_height="164dp" |
| 32 | android:textColor="#ffffff" |
| 33 | android:gravity="center" |
| 34 | android:text="@string/NoMessages" |
| 35 | android:paddingTop="26dp" |
| 36 | android:paddingLeft="10dp" |
| 37 | android:paddingRight="10dp" |
| 38 | android:textSize="19dp" |
| 39 | android:id="@+id/searchEmptyView" |
| 40 | android:visibility="gone" |
| 41 | android:layout_centerInParent="true" |
| 42 | android:drawableTop="@drawable/no_messages_placeholder"/> |
| 43 |
| 44 | <include layout="@layout/encrypted_chat_placeholder" |
| 45 | android:layout_gravity="center"/> |
| 46 |
| 47 | <LinearLayout |
| 48 | android:id="@+id/progressLayout" |
| 49 | android:layout_width="fill_parent" |
| 50 | android:layout_height="fill_parent" |
| 51 | android:gravity="center" |
| 52 | android:orientation="vertical" |
| 53 | android:visibility="gone" > |
| 54 |
| 55 | <ProgressBar |
| 56 | android:layout_width="wrap_content" |
| 57 | android:layout_height="wrap_content" |
| 58 | android:id="@+id/center_progress" |
| 59 | android:indeterminate="true" |
| 60 | android:indeterminateBehavior="repeat" |
| 61 | android:indeterminateDuration="1500"> |
| 62 | </ProgressBar> |
| 63 | </LinearLayout> |
| 64 |
| 65 | <FrameLayout android:layout_width="fill_parent" |
| 66 | android:layout_height="48dp" |
| 67 | android:id="@+id/top_panel"> |
| 68 |
| 69 | <TextView android:layout_height="wrap_content" |
| 70 | android:layout_width="wrap_content" |
| 71 | android:layout_gravity="center" |
| 72 | android:id="@+id/top_panel_text" |
| 73 | android:textAllCaps="true" |
| 74 | android:textSize="12dp" |
| 75 | android:textStyle="bold" |
| 76 | android:textColor="#ffffff"/> |
| 77 |
| 78 | <ImageView android:layout_width="30dp" |
| 79 | android:layout_height="30dp" |
| 80 | android:scaleType="centerInside" |
| 81 | android:layout_marginRight="4dp" |
| 82 | android:layout_gravity="right|center" |
| 83 | android:id="@+id/top_plane_close" |
| 84 | android:clickable="true"/> |
| 85 |
| 86 | </FrameLayout> |
| 87 |
| 88 | <RelativeLayout android:layout_width="match_parent" |
| 89 | android:layout_height="wrap_content" |
| 90 | android:background="@drawable/compose_panel" |
| 91 | android:id="@+id/chat_compose_panel" |
| 92 | android:focusable="true" |
| 93 | android:focusableInTouchMode="true" |
| 94 | android:gravity="bottom" |
| 95 | android:layout_alignParentBottom="true"> |
| 96 |
| 97 | <ImageView android:src="@drawable/ic_msg_panel_smiles" |
| 98 | android:layout_width="48dp" |
| 99 | android:layout_height="48dp" |
| 100 | android:layout_marginTop="2dp" |
| 101 | android:paddingTop="1dp" |
| 102 | android:scaleType="centerInside" |
| 103 | android:paddingLeft="4dp" |
| 104 | android:id="@+id/chat_smile_button" |
| 105 | android:layout_alignBottom="@+id/chat_text_edit"/> |
| 106 |
| 107 | <ImageButton |
| 108 | android:layout_width="70dp" |
| 109 | android:layout_height="48dp" |
| 110 | android:layout_marginTop="2dp" |
| 111 | android:scaleType="centerInside" |
| 112 | android:id="@+id/chat_send_button" |
| 113 | android:layout_alignParentRight="true" |
| 114 | android:layout_alignBottom="@+id/chat_text_edit" |
| 115 | android:enabled="false" |
| 116 | android:background="@android:color/transparent"/> |
| 117 |
| 118 | <EditText android:layout_width="match_parent" |
| 119 | android:layout_height="wrap_content" |
| 120 | android:id="@+id/chat_text_edit" |
| 121 | android:layout_toRightOf="@id/chat_smile_button" |
| 122 | android:layout_toLeftOf="@id/chat_send_button" |
| 123 | android:layout_marginTop="2dp" |
| 124 | android:maxLines="4" |
| 125 | android:minHeight="48dp" |
| 126 | android:textSize="18dp" |
| 127 | android:textColorHint="#909090" |
| 128 | android:ems="10" |
| 129 | android:hint="@string/TypeMessage" |
| 130 | android:inputType="textCapSentences|textMultiLine" |
| 131 | android:layout_alignParentTop="true" |
| 132 | android:imeOptions="flagNoExtractUi" |
| 133 | android:paddingBottom="12dp" |
| 134 | android:maxLength="16384"/> |
| 135 |
| 136 | </RelativeLayout> |
| 137 |
| 138 | <FrameLayout android:layout_height="48dp" |
| 139 | android:layout_width="fill_parent" |
| 140 | android:layout_alignParentBottom="true" |
| 141 | android:background="#ffffff" |
| 142 | android:id="@+id/bottom_overlay" |
| 143 | android:visibility="gone" |
| 144 | android:focusable="true" |
| 145 | android:focusableInTouchMode="true" |
| 146 | android:clickable="true"> |
| 147 |
| 148 | <TextView android:layout_width="wrap_content" |
| 149 | android:layout_height="wrap_content" |
| 150 | android:id="@+id/bottom_overlay_text" |
| 151 | android:textColor="#7f7f7f" |
| 152 | android:textSize="16dp" |
| 153 | android:layout_gravity="center"/> |
| 154 |
| 155 | </FrameLayout> |
| 156 |
| 157 | </org.telegram.ui.Views.SizeNotifierRelativeLayout> |