mirror of
https://github.com/ArcaneChat/android.git
synced 2026-07-03 14:05:24 +02:00
Add a hint on empty chat list.
This commit is contained in:
@@ -104,7 +104,11 @@ public class DrawerLayoutAdapter extends BaseAdapter {
|
||||
} else if (i == iNewGroup) {
|
||||
actionCell.setTextAndIcon(LocaleController.getString("NewGroup", R.string.NewGroup), R.drawable.menu_empty);
|
||||
} else if (i == iDeaddrop) {
|
||||
actionCell.setTextAndIcon(LocaleController.getString("Deaddrop", R.string.Deaddrop), R.drawable.menu_empty); // we do not want an icon beside the mailbox: 1. We do not want to give it much attention, 2. if the mailbox is show in the chatlist, it gets the chat icon (KISS), but we should not use this icon in the drawer for the mailbox. 3. Simplicity
|
||||
actionCell.setTextAndIcon(LocaleController.getString("Deaddrop", R.string.Deaddrop), R.drawable.menu_empty);
|
||||
// we do not want an icon beside the mailbox:
|
||||
// 1. We do not want to give it much attention,
|
||||
// 2. If the mailbox is shown in the chatlist, it gets the chat icon (KISS), but we should not use this icon in the drawer for the mailbox.
|
||||
// 3. Simplicity - we have two sections, "Add" and "Tools" - Mailbox belongs to the latter
|
||||
} else if (i == iSettings) {
|
||||
actionCell.setTextAndIcon(LocaleController.getString("Settings", R.string.Settings), R.drawable.menu_settings);
|
||||
} else if (i == iFaq) {
|
||||
|
||||
@@ -437,6 +437,16 @@ public class DialogsActivity extends BaseFragment implements NotificationCenter.
|
||||
textView.setTextSize(TypedValue.COMPLEX_UNIT_DIP, 20);
|
||||
emptyView.addView(textView, LayoutHelper.createLinear(LayoutHelper.WRAP_CONTENT, LayoutHelper.WRAP_CONTENT));
|
||||
|
||||
textView = new TextView(context);
|
||||
String help = LocaleController.getString("NoChatsHelp", R.string.NoChatsHelp);
|
||||
textView.setText(help);
|
||||
textView.setTextColor(0xff959595);
|
||||
textView.setTextSize(TypedValue.COMPLEX_UNIT_DIP, 15);
|
||||
textView.setGravity(Gravity.CENTER);
|
||||
textView.setPadding(AndroidUtilities.dp(8), AndroidUtilities.dp(8), AndroidUtilities.dp(8), AndroidUtilities.dp(64) /*move the whole stuff a little bit up*/);
|
||||
textView.setLineSpacing(AndroidUtilities.dp(2), 1);
|
||||
emptyView.addView(textView, LayoutHelper.createLinear(LayoutHelper.WRAP_CONTENT, LayoutHelper.WRAP_CONTENT));
|
||||
|
||||
floatingButton = new ImageView(context);
|
||||
floatingButton.setVisibility(onlySelect ? View.GONE : View.VISIBLE);
|
||||
floatingButton.setScaleType(ImageView.ScaleType.CENTER);
|
||||
|
||||
@@ -723,4 +723,5 @@
|
||||
<string name="ContactCreated">Benutzer angelegt.</string>
|
||||
<string name="ViewProfile">Profil anzeigen</string>
|
||||
<string name="OneMomentPlease">Einen Moment, bitte...</string>
|
||||
<string name="NoChatsHelp">Um einen Chat zu starten, unten auf das Plussymbol tippen; das Menü bietet weitere Opitonen.</string>
|
||||
</resources>
|
||||
|
||||
@@ -724,4 +724,5 @@
|
||||
<string name="ViewProfile">View profile</string>
|
||||
<string name="OneMomentPlease">One moment, please...</string>
|
||||
<string name="CannotDeleteChat">Cannot delete chat.</string>
|
||||
<string name="NoChatsHelp">Start messaging by pressing the new chat button in the bottom right corner or tap the menu button for more options.</string>
|
||||
</resources>
|
||||
|
||||
Reference in New Issue
Block a user