Search in sources :

Example 1 with NumberTextView

use of net.iGap.messenger.ui.toolBar.NumberTextView in project iGap-Android by KianIranian-STDG.

the class MainFragment method createActionMode.

private void createActionMode() {
    if (toolbar.isInActionMode(null)) {
        return;
    }
    toolbarItems = toolbar.createActionToolbar(null);
    toolbarItems.setBackground(null);
    moreItem = toolbarItems.addItemWithWidth(moreTag, R.string.icon_other_vertical_dots, 52);
    clearHistoryItem = moreItem.addSubItem(clearHistoryTag, R.string.icon_clear_history, getResources().getString(R.string.clear_history));
    markAsReadItem = moreItem.addSubItem(markAsReadTag, R.string.icon_mark_as_read, getResources().getString(R.string.mark_as_unread));
    readAllItem = moreItem.addSubItem(readAllTag, R.string.icon_mark_all_read, getResources().getString(R.string.read_all));
    deleteItem = toolbarItems.addItemWithWidth(leaveTag, R.string.icon_delete, 52);
    muteItem = toolbarItems.addItemWithWidth(muteTag, R.string.icon_mute, 52);
    pintItem = toolbarItems.addItemWithWidth(pinTag, R.string.icon_pin_to_top, 52).setCustomTypeFace(ResourcesCompat.getFont(context, R.font.font_icons));
    multiSelectCounter = new NumberTextView(toolbarItems.getContext());
    multiSelectCounter.setTextSize(18);
    multiSelectCounter.setTypeface(ResourcesCompat.getFont(toolbarItems.getContext(), R.font.main_font_bold));
    multiSelectCounter.setTextColor(Theme.getInstance().getPrimaryTextColor(getContext()));
    multiSelectCounter.setTag(selectCounter);
    toolbarItems.addView(multiSelectCounter, LayoutCreator.createLinear(0, LayoutCreator.MATCH_PARENT, 1.0f, 72, 0, 0, 0));
    actionModeViews.add(moreItem);
    actionModeViews.add(deleteItem);
    actionModeViews.add(muteItem);
    actionModeViews.add(pintItem);
}
Also used : NumberTextView(net.iGap.messenger.ui.toolBar.NumberTextView)

Example 2 with NumberTextView

use of net.iGap.messenger.ui.toolBar.NumberTextView in project iGap-Android by KianIranian-STDG.

the class RegisteredContactsFragment method createActionMode.

private void createActionMode() {
    if (contactsToolbar.isInActionMode())
        return;
    actionToolbar = contactsToolbar.createActionToolbar(null);
    deleteItem = actionToolbar.addItemWithWidth(deleteTag, R.string.icon_delete, 54);
    editItem = actionToolbar.addItemWithWidth(editTag, R.string.icon_edit, 54);
    multiSelectCounter = new NumberTextView(getContext());
    multiSelectCounter.setTextSize(18);
    multiSelectCounter.setTypeface(ResourcesCompat.getFont(getContext(), R.font.main_font_bold));
    multiSelectCounter.setTextColor(Theme.getInstance().getPrimaryTextColor(getContext()));
    multiSelectCounter.setTag(selectCounter);
    actionToolbar.addView(multiSelectCounter, LayoutCreator.createLinear(0, LayoutCreator.MATCH_PARENT, 1.0f, 72, 0, 0, 0));
    actionModeViews.add(deleteItem);
    actionModeViews.add(editItem);
}
Also used : NumberTextView(net.iGap.messenger.ui.toolBar.NumberTextView)

Example 3 with NumberTextView

use of net.iGap.messenger.ui.toolBar.NumberTextView in project iGap-Android by KianIranian-STDG.

the class FragmentShearedMedia method createActionMode.

private void createActionMode() {
    if (sharedMediaToolbar.isInActionMode(null)) {
        return;
    }
    actionToolbar = sharedMediaToolbar.createActionToolbar(null);
    actionToolbar.setBackground(null);
    ToolbarItem deleteItem = actionToolbar.addItemWithWidth(deleteTag, R.string.icon_delete, 54);
    ToolbarItem forwardItem = actionToolbar.addItemWithWidth(forwardTag, R.string.icon_forward, 54);
    seeInChatItem = actionToolbar.addItemWithWidth(seeInChatTag, R.string.icon_eye, 54);
    multiSelectCounter = new NumberTextView(getContext());
    multiSelectCounter.setTextSize(18);
    multiSelectCounter.setTypeface(ResourcesCompat.getFont(getContext(), R.font.main_font_bold));
    multiSelectCounter.setTextColor(Theme.getInstance().getPrimaryTextColor(getContext()));
    multiSelectCounter.setTag(selectCounter);
    actionToolbar.addView(multiSelectCounter, LayoutCreator.createLinear(0, LayoutCreator.MATCH_PARENT, 1.0f, 72, 0, 0, 0));
    actionModeViews.add(deleteItem);
    actionModeViews.add(forwardItem);
    actionModeViews.add(seeInChatItem);
}
Also used : ToolbarItem(net.iGap.messenger.ui.toolBar.ToolbarItem) NumberTextView(net.iGap.messenger.ui.toolBar.NumberTextView)

Example 4 with NumberTextView

use of net.iGap.messenger.ui.toolBar.NumberTextView in project iGap-Android by KianIranian-STDG.

the class FragmentChat method createActionMode.

private void createActionMode() {
    if (mToolbar.isInActionMode(null))
        return;
    toolbarItems = mToolbar.createActionToolbar(null);
    toolbarItems.setBackground(null);
    deleteMessageItem = toolbarItems.addItemWithWidth(deleteMessageTag, R.string.icon_delete, 52);
    forwardMessageItem = toolbarItems.addItemWithWidth(forwardMessageTag, R.string.icon_forward, 52);
    copyMessageItem = toolbarItems.addItemWithWidth(copyMessageTag, R.string.icon_copy, 52);
    replyMessageItem = toolbarItems.addItemWithWidth(replyMessageTag, R.string.icon_reply, 52);
    multiSelectCounter = new NumberTextView(toolbarItems.getContext());
    multiSelectCounter.setTextSize(18);
    multiSelectCounter.setTypeface(ResourcesCompat.getFont(toolbarItems.getContext(), R.font.main_font_bold));
    multiSelectCounter.setTextColor(Theme.getInstance().getPrimaryTextColor(getContext()));
    multiSelectCounter.setTag(selectCounter);
    toolbarItems.addView(multiSelectCounter, LayoutCreator.createLinear(0, LayoutCreator.MATCH_PARENT, 1.0f, 72, 0, 0, 0));
    actionModeViews.add(deleteMessageItem);
    actionModeViews.add(forwardMessageItem);
    actionModeViews.add(copyMessageItem);
    actionModeViews.add(replyMessageItem);
}
Also used : NumberTextView(net.iGap.messenger.ui.toolBar.NumberTextView)

Example 5 with NumberTextView

use of net.iGap.messenger.ui.toolBar.NumberTextView in project iGap-Android by KianIranian-STDG.

the class FragmentCall method createToolbarActions.

private void createToolbarActions() {
    if (callToolbar.isInActionMode())
        return;
    ToolbarItems actionToolbar = callToolbar.createActionToolbar(null);
    actionToolbar.setBackground(null);
    deleteItem = actionToolbar.addItemWithWidth(deleteTag, R.string.icon_delete, 54);
    deleteAllItem = actionToolbar.addItemWithWidth(deleteAllTag, R.string.icon_delete_all, 54);
    multiSelectCounter = new NumberTextView(getContext());
    multiSelectCounter.setTextSize(18);
    multiSelectCounter.setTypeface(ResourcesCompat.getFont(getContext(), R.font.main_font_bold));
    multiSelectCounter.setTextColor(Theme.getInstance().getPrimaryTextColor(getContext()));
    multiSelectCounter.setTag(selectCounter);
    actionToolbar.addView(multiSelectCounter, LayoutCreator.createLinear(0, LayoutCreator.MATCH_PARENT, 1.0f, 72, 0, 0, 0));
    actionModeViews.add(deleteItem);
    actionModeViews.add(deleteAllItem);
}
Also used : ToolbarItems(net.iGap.messenger.ui.toolBar.ToolbarItems) NumberTextView(net.iGap.messenger.ui.toolBar.NumberTextView)

Aggregations

NumberTextView (net.iGap.messenger.ui.toolBar.NumberTextView)5 ToolbarItem (net.iGap.messenger.ui.toolBar.ToolbarItem)1 ToolbarItems (net.iGap.messenger.ui.toolBar.ToolbarItems)1