Java Code Examples for org.telegram.ui.ActionBar.Theme#createDialogsResources()

The following examples show how to use org.telegram.ui.ActionBar.Theme#createDialogsResources() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: DialogCell.java    From TelePlus-Android with GNU General Public License v2.0 6 votes vote down vote up
public DialogCell(Context context, boolean needCheck)
{
    super(context);

    Theme.createDialogsResources(context);
    avatarImage.setRoundRadius(AndroidUtilities.dp(26));

    if (needCheck)
    {
        checkBox = new GroupCreateCheckBox(context);
        checkBox.setVisibility(VISIBLE);
        addView(checkBox);
    }

    statusBG = new GradientDrawable();
    statusBG.setCornerRadius(AndroidUtilities.dp(16));
}
 
Example 2
Source File: DialogCell.java    From TelePlus-Android with GNU General Public License v2.0 6 votes vote down vote up
public DialogCell(Context context, boolean needCheck)
{
    super(context);

    Theme.createDialogsResources(context);
    avatarImage.setRoundRadius(AndroidUtilities.dp(26));

    if (needCheck)
    {
        checkBox = new GroupCreateCheckBox(context);
        checkBox.setVisibility(VISIBLE);
        addView(checkBox);
    }

    statusBG = new GradientDrawable();
    statusBG.setCornerRadius(AndroidUtilities.dp(16));
}
 
Example 3
Source File: DialogCell.java    From Telegram-FOSS with GNU General Public License v2.0 6 votes vote down vote up
public DialogCell(Context context, boolean needCheck, boolean forceThreeLines) {
    super(context);

    Theme.createDialogsResources(context);
    avatarImage.setRoundRadius(AndroidUtilities.dp(28));
    thumbImage.setRoundRadius(AndroidUtilities.dp(2));
    useForceThreeLines = forceThreeLines;

    if (needCheck) {
        checkBox = new CheckBox2(context, 21);
        checkBox.setColor(null, Theme.key_windowBackgroundWhite, Theme.key_checkboxCheck);
        checkBox.setDrawUnchecked(false);
        checkBox.setDrawBackgroundAsArc(3);
        addView(checkBox);
    }
}
 
Example 4
Source File: DialogCell.java    From Telegram with GNU General Public License v2.0 6 votes vote down vote up
public DialogCell(Context context, boolean needCheck, boolean forceThreeLines) {
    super(context);

    Theme.createDialogsResources(context);
    avatarImage.setRoundRadius(AndroidUtilities.dp(28));
    thumbImage.setRoundRadius(AndroidUtilities.dp(2));
    useForceThreeLines = forceThreeLines;

    if (needCheck) {
        checkBox = new CheckBox2(context, 21);
        checkBox.setColor(null, Theme.key_windowBackgroundWhite, Theme.key_checkboxCheck);
        checkBox.setDrawUnchecked(false);
        checkBox.setDrawBackgroundAsArc(3);
        addView(checkBox);
    }
}
 
Example 5
Source File: DrawerLayoutAdapter.java    From TelePlus-Android with GNU General Public License v2.0 5 votes vote down vote up
public DrawerLayoutAdapter(Context context)
{
    mContext = context;
    accountsShowed = UserConfig.getActivatedAccountsCount() > 1 && MessagesController.getGlobalMainSettings().getBoolean("accountsShowed", true);
    Theme.createDialogsResources(context);
    resetItems();
}
 
Example 6
Source File: DrawerLayoutAdapter.java    From TelePlus-Android with GNU General Public License v2.0 5 votes vote down vote up
public DrawerLayoutAdapter(Context context)
{
    mContext = context;
    accountsShowed = UserConfig.getActivatedAccountsCount() > 1 && MessagesController.getGlobalMainSettings().getBoolean("accountsShowed", true);
    Theme.createDialogsResources(context);
    resetItems();
}
 
Example 7
Source File: DrawerLayoutAdapter.java    From Telegram-FOSS with GNU General Public License v2.0 5 votes vote down vote up
public DrawerLayoutAdapter(Context context, SideMenultItemAnimator animator) {
    mContext = context;
    itemAnimator = animator;
    accountsShown = UserConfig.getActivatedAccountsCount() > 1 && MessagesController.getGlobalMainSettings().getBoolean("accountsShown", true);
    Theme.createDialogsResources(context);
    resetItems();
}
 
Example 8
Source File: DrawerLayoutAdapter.java    From Telegram with GNU General Public License v2.0 5 votes vote down vote up
public DrawerLayoutAdapter(Context context, SideMenultItemAnimator animator) {
    mContext = context;
    itemAnimator = animator;
    accountsShown = UserConfig.getActivatedAccountsCount() > 1 && MessagesController.getGlobalMainSettings().getBoolean("accountsShown", true);
    Theme.createDialogsResources(context);
    resetItems();
}
 
Example 9
Source File: DialogMeUrlCell.java    From TelePlus-Android with GNU General Public License v2.0 4 votes vote down vote up
public DialogMeUrlCell(Context context) {
    super(context);

    Theme.createDialogsResources(context);
    avatarImage.setRoundRadius(AndroidUtilities.dp(26));
}
 
Example 10
Source File: DialogMeUrlCell.java    From TelePlus-Android with GNU General Public License v2.0 4 votes vote down vote up
public DialogMeUrlCell(Context context) {
    super(context);

    Theme.createDialogsResources(context);
    avatarImage.setRoundRadius(AndroidUtilities.dp(26));
}
 
Example 11
Source File: DialogMeUrlCell.java    From Telegram-FOSS with GNU General Public License v2.0 4 votes vote down vote up
public DialogMeUrlCell(Context context) {
    super(context);

    Theme.createDialogsResources(context);
    avatarImage.setRoundRadius(AndroidUtilities.dp(26));
}
 
Example 12
Source File: DialogMeUrlCell.java    From Telegram with GNU General Public License v2.0 4 votes vote down vote up
public DialogMeUrlCell(Context context) {
    super(context);

    Theme.createDialogsResources(context);
    avatarImage.setRoundRadius(AndroidUtilities.dp(26));
}