com.makeramen.roundedimageview.RoundedTransformationBuilder Java Examples
The following examples show how to use
com.makeramen.roundedimageview.RoundedTransformationBuilder.
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: CommentsAdapter.java From dtube-mobile-unofficial with Apache License 2.0 | 5 votes |
CommentsAdapter(CommentsList comments, Context c, boolean loggedIn, boolean tvMode){ this.comments = comments; this.c = c; this.loggedIn = loggedIn; this.tvMode = tvMode; transformation = new RoundedTransformationBuilder() .cornerRadiusDp(30) .oval(false) .build(); }
Example #2
Source File: MainActivity.java From dtube-mobile-unofficial with Apache License 2.0 | 5 votes |
private void setProfileInfoUI(){ String accountName = DtubeAPI.getAccountName(this); if (accountName!=null){ accountInfo = new Person(); accountInfo.userName = accountName; steemWebView.login(DtubeAPI.getAccountName(MainActivity.this),DtubeAPI.getUserPrivateKey(MainActivity.this),false, false); } if (accountInfo!=null) { Transformation transformation = new RoundedTransformationBuilder() .cornerRadiusDp(30) .oval(false) .build(); Picasso.get().load(accountInfo.getImageURL()).placeholder(R.drawable.login).transform(transformation).into( ((ImageView) findViewById(R.id.profile_image))); Picasso.get().load(DtubeAPI.PROFILE_IMAGE_MEDIUM_URL.replace("username",accountInfo.userName)).placeholder(R.drawable.login).transform(transformation).into( (ImageView)navigationHeader.findViewById(R.id.header_icon)); ((TextView)navigationHeader.findViewById(R.id.header_name)).setText(accountInfo.userName); ((TextView)navigationHeader.findViewById(R.id.header_status)).setText(""); navigationHeader.findViewById(R.id.header_login_iv).setVisibility(View.GONE); steemWebView.getSubscriberCount(accountInfo.userName); steemWebView.getSubscriptions(accountInfo.userName); } }
Example #3
Source File: ImageUtil.java From overscroll-bouncy-android with MIT License | 5 votes |
/** * Get circle transformation * @param borderWidth in dp * @param borderColor color of the border */ public static Transformation getCircleTransformation(int borderWidth, int borderColor) { return new RoundedTransformationBuilder() .oval(true) .borderWidthDp(borderWidth) .borderColor(borderColor) .build(); }
Example #4
Source File: GooglePlusAdapter.java From QuickReturn with Apache License 2.0 | 5 votes |
public GooglePlusAdapter(Context context, ArrayList<GooglePlusPost> googlePlusPosts) { mContext = context; mGooglePlusPosts = googlePlusPosts; mTransformation = new RoundedTransformationBuilder() // .borderColor(getContext().getResources().getColor(R.color.white)) .cornerRadius(QuickReturnUtils.dp2px(mContext, 50)) .build(); mTransformation2 = new RoundedTransformationBuilder() // .borderColor(getContext().getResources().getColor(R.color.white)) .cornerRadius(QuickReturnUtils.dp2px(mContext, 2)) .build(); }
Example #5
Source File: ImageUtil.java From overscroll-bouncy-android with MIT License | 4 votes |
/** * Get circle transformation without border */ public static Transformation getCircleTransformationNoBorder() { return new RoundedTransformationBuilder() .oval(true) .build(); }
Example #6
Source File: PicassoHelper.java From Qiitanium with MIT License | 4 votes |
public RoundedTransformationBuilder roundedTransformation() { return new RoundedTransformationBuilder(); }