Java Code Examples for de.hdodenhof.circleimageview.CircleImageView#setBorderColor()

The following examples show how to use de.hdodenhof.circleimageview.CircleImageView#setBorderColor() . 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: RowProfileView.java    From HeaderView with MIT License 6 votes vote down vote up
@SuppressLint("RtlHardcoded")
private void addViews() {
    LayoutParams avatarLayoutParams = new LayoutParams(hvAvatarRowDimen, hvAvatarRowDimen);
    LayoutParams checkLayoutParams = new LayoutParams(hvRowCheckDimen, hvRowCheckDimen);
    avatar = new CircleImageView(getContext());
    avatar.setBorderColor(accent);
    avatar.setBorderWidth(hvRowAvatarBorderDimen);
    check = new ImageView(getContext());
    check.setImageResource(R.drawable.hv_profile_check);
    check.setColorFilter(accent);
    username = new TextView(getContext());
    username.setTextColor(Utils.getTextColorPrimary(getContext()));
    username.setGravity(Gravity.CENTER_VERTICAL | (hvIsRTL ? Gravity.RIGHT : Gravity.LEFT));
    username.setMaxLines(1);
    username.setEllipsize(TextUtils.TruncateAt.END);
    email = new TextView(getContext());
    email.setTextColor(Utils.getTextColorSecondary(getContext()));
    email.setGravity(Gravity.CENTER_VERTICAL | (hvIsRTL ? Gravity.RIGHT : Gravity.LEFT));
    email.setMaxLines(1);
    email.setEllipsize(TextUtils.TruncateAt.END);
    addView(avatar, avatarLayoutParams);
    addView(check, checkLayoutParams);
    addView(username);
    addView(email);
}
 
Example 2
Source File: FlowerViewList.java    From Zen with GNU General Public License v2.0 4 votes vote down vote up
private void setSelected(CircleImageView circleImageView) {
    unselectAll();
    circleImageView.setBorderColor(ACCENT.color());
    circleImageView.setBorderWidth(SELECTED_BORDER_SIZE);
}
 
Example 3
Source File: ColorListView.java    From Zen with GNU General Public License v2.0 4 votes vote down vote up
private void setSelected(CircleImageView circleImageView) {
    deselectAll();
    circleImageView.setBorderColor(BrushColor.ACCENT.color());
    circleImageView.setBorderWidth(SELECTED_BORDER_SIZE);
}
 
Example 4
Source File: ColorListView.java    From Zen with GNU General Public License v2.0 4 votes vote down vote up
private void setSelectedWithColor(CircleImageView circleImageView, int color) {
    deselectAll();
    circleImageView.setBorderColor(color);
    circleImageView.setBorderWidth(SELECTED_BORDER_SIZE);
}